/* ==========================================================================
   unfollowers — neo-brutalist design system
   paper + ink, 2px borders, hard offset shadows, no gradients, no rounded
   corners except pills. type: Archivo Black / Space Grotesk / JetBrains Mono.
   ========================================================================== */

/* Fonts are bundled (subset, woff2) so the app never depends on the network:
   it has to render identically offline and inside an Android WebView. */
@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/ArchivoBlack.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The design is a printed page: never let the WebView auto-darken it.
     `only light` is the explicit opt-out of Chrome's auto dark theme. */
  color-scheme: only light;
  --ink: #131215;
  --paper: #f4f8ee;
  --card: #ffffff;
  --lime: #95e629;
  --green: #a3e635;
  --yellow: #fce146;
  --magenta: #e05af7;
  --blue: #2e6af3;
  --teal: #2ccdb2;
  --orange: #f4794d;
  --muted: #6f776b;
  --line: #131215;
  --bw: 2px;
  --radius: 2px;

  --display: 'Archivo Black', 'Arial Black', 'Helvetica Neue', sans-serif;
  --text: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: #e6ebdd;
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* nothing in this app scrolls sideways; on iOS that also kills the rubber-band */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

button, input, select {
  font-family: inherit;
  color: inherit;
}

::selection { background: var(--lime); color: var(--ink); }

/* ---------------------------------------------------------------- shell */

.app {
  position: relative;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  border-left: var(--bw) solid var(--ink);
  border-right: var(--bw) solid var(--ink);
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.view { animation: fadein 0.18s ease-out; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.pad { padding: 0 14px; }

/* ---------------------------------------------------------------- type */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.86;
  margin: 0;
}

.h1 { font-size: 34px; }
.h2 { font-size: 27px; }
.h3 { font-size: 19px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.body {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

.muted { color: var(--muted); }
.tiny { font-size: 11px; }

/* ---------------------------------------------------------------- atoms */

.card {
  background: var(--card);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
}

.card--flat { box-shadow: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 10px;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:active, .btn.is-pressed {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--block { width: 100%; justify-content: center; }
.btn--lg { font-size: 15px; padding: 13px 16px; box-shadow: 5px 5px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--lime { background: var(--lime); }
.btn--yellow { background: var(--yellow); }
.btn--magenta { background: var(--magenta); }
.btn--ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: var(--bw) solid var(--ink);
  border-radius: 1px;
  background: var(--card);
  color: var(--ink);
}
.badge--magenta { background: var(--magenta); }
.badge--blue { background: var(--blue); color: #fff; }
.badge--lime { background: var(--lime); }
.badge--yellow { background: var(--yellow); }
.badge--teal { background: var(--teal); }
.badge--ink { background: var(--ink); color: var(--paper); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 7px;
  border: var(--bw) solid var(--ink);
  background: var(--card);
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 1px;
  white-space: nowrap;
}
.chip--lime { background: var(--lime); }
.chip--yellow { background: var(--yellow); }
.chip--magenta { background: var(--magenta); }
.chip--blue { background: var(--blue); color: #fff; }

.hl {
  background: var(--magenta);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 4px;
}
.hl--lime { background: var(--lime); }
.hl--yellow { background: var(--yellow); }

.divider { height: var(--bw); background: var(--ink); border: 0; margin: 0; }

.mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--lime);
  border: var(--bw) solid var(--ink);
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 var(--ink);
  flex: none;
}
.mark svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: var(--bw) solid var(--ink);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.topbar__name {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.topbar__sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.iconbtn {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 1px;
  cursor: pointer;
  flex: none;
}
.iconbtn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.iconbtn svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- list header */

.listhead { padding: 14px 14px 12px; }

.listhead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.listhead__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
}

.listhead__title > :first-child { min-width: 0; }
.listhead__title > .badge { flex: none; }

.listhead__desc {
  font-family: var(--text);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 12px;
  max-width: 330px;
}

.listhead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

/* ---------------------------------------------------------------- search */

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 10px;
  margin-bottom: 12px;
}
.search svg { width: 14px; height: 14px; flex: none; opacity: 0.8; }
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  width: 100%;
  letter-spacing: 0.01em;
}
.search input::placeholder { color: #9aa295; }

/* ---------------------------------------------------------------- rows */

.rows { border-top: 0; }

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  background: var(--card);
  border: 0;
  border-bottom: var(--bw) solid var(--ink);
  cursor: pointer;
  position: relative;
}
.row:last-child { border-bottom: 0; }
.row:active { background: #f0f4e8; }

.row__main { flex: 1; min-width: 0; }

.row__name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}
.row__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.row__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.25;
}

.row__sub--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.row__chev { width: 12px; height: 12px; opacity: 0.55; flex: none; }

.verify {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.verify--ok { color: #1f8f12; }
.verify--gone { color: var(--muted); }
.verify--unknown { color: var(--muted); }

.rows-card { box-shadow: 4px 4px 0 var(--ink); border: var(--bw) solid var(--ink); background: var(--card); }

.rows-empty {
  padding: 26px 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- home */

.hero { padding: 16px 14px 4px; }

.hero__title {
  font-family: var(--display);
  font-size: 42px;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 6px 0 10px;
}

.hero__title em {
  font-style: normal;
  background: var(--lime);
  display: inline-block;
  padding: 0 6px 2px;
  margin-left: -6px;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.bigstat {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.bigstat__n {
  font-family: var(--display);
  font-size: 56px;
  line-height: 0.8;
  letter-spacing: -0.06em;
}
.bigstat__label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.bigstat__spark { width: 120px; height: 46px; flex: none; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 11px 10px;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  min-height: 84px;
}
.tile:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

.tile__n {
  font-family: var(--display);
  font-size: 27px;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.tile__label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
  line-height: 1.25;
  color: var(--ink);
}

.tile__dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border: var(--bw) solid var(--ink);
  background: var(--lime);
}

.tile--locked .tile__n { color: #b9bfb2; }
.tile--locked .tile__label { color: #b9bfb2; }

.lock {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 1px;
}
.lock svg { width: 10px; height: 10px; }

.section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 14px 10px;
}

.section__title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 14px 10px;
  scrollbar-width: none;
}
.hstrip::-webkit-scrollbar { display: none; }

.snapchip {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}
.snapchip__d { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.snapchip__n { font-family: var(--mono); font-size: 9px; color: var(--muted); }

.note {
  margin: 14px;
  padding: 11px 12px;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
}

/* ---------------------------------------------------------------- tabs */

.tabs {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-top: var(--bw) solid var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 40;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 2px 8px;
  background: transparent;
  border: 0;
  border-right: var(--bw) solid var(--ink);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  cursor: pointer;
  color: var(--ink);
}
.tab:last-child { border-right: 0; }
.tab svg { width: 16px; height: 16px; }
.tab.is-active { background: var(--lime); }
.tab.is-active svg { stroke-width: 2.4; }

/* ---------------------------------------------------------------- sheet */

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  background: rgba(19, 18, 21, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadein 0.15s ease-out;
}

.sheet__panel {
  width: 100%;
  max-width: 430px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--paper);
  border-top: var(--bw) solid var(--ink);
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  animation: slideup 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes slideup {
  from { transform: translateY(18px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: var(--bw) solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}

/* ---------------------------------------------------------------- onboarding */

.onboarding {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.ob__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.ob__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ob__art {
  margin: 8px 14px 0;
  border: var(--bw) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--card);
  overflow: hidden;
}

.ob__body { padding: 20px 14px 12px; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }

.ob__title {
  font-family: var(--display);
  font-size: 40px;
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ob__text {
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
  max-width: 320px;
}

.ob__dots { display: flex; gap: 6px; padding: 8px 14px 16px; }
.ob__dot {
  width: 22px;
  height: 6px;
  border: var(--bw) solid var(--ink);
  background: transparent;
}
.ob__dot.is-on { background: var(--ink); }

.ob__actions {
  display: grid;
  gap: 8px;
  padding: 0 14px calc(16px + env(safe-area-inset-bottom));
}

/* ---------------------------------------------------------------- paywall */

.paywall { padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); }

.pw__list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; }

.pw__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.pw__tick {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--ink);
  background: var(--lime);
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.pw__item--off .pw__tick { background: transparent; color: var(--muted); }
.pw__item--off { color: var(--muted); font-weight: 500; }

.price {
  font-family: var(--display);
  font-size: 44px;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

/* ---------------------------------------------------------------- stats */

.chartcard { padding: 12px 12px 10px; }

.chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chart__title {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.legend {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
}
.legend__item { display: flex; align-items: center; gap: 5px; }
.legend__sw { width: 10px; height: 10px; border: 1.5px solid var(--ink); }

.donuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px 0;
}

.donut {
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 8px 10px;
  text-align: center;
}

.donut__pct {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.03em;
}

.donut__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 7px;
}

.donut__sub {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.25;
}

/* ---------------------------------------------------------------- faves */

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--bw) solid var(--ink);
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 12px;
}

.seg {
  padding: 10px 4px;
  background: transparent;
  border: 0;
  border-right: var(--bw) solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--ink);
}
.seg:last-child { border-right: 0; }
.seg.is-active { background: var(--ink); color: var(--lime); }

.fave {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: var(--bw) solid var(--ink);
  background: var(--card);
  cursor: pointer;
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
}
.fave:last-child { border-bottom: 0; }
.fave__rank {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  width: 16px;
  flex: none;
}
.fave__name {
  flex: 1;
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fave__count {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 6px;
  background: var(--lime);
  border: var(--bw) solid var(--ink);
  white-space: nowrap;
  flex: none;
}

/* ---------------------------------------------------------------- import */

.steps { counter-reset: step; display: grid; gap: 8px; margin: 12px 0; }

.step {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}
.step__n {
  font-family: var(--mono);
  font-size: 10px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  flex: none;
}

.drop {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: var(--bw) dashed var(--ink);
  background: var(--card);
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.drop.is-over { background: var(--lime); }

/* a real file input, kept out of the flow but still clickable by its label */
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.progress {
  height: 10px;
  border: var(--bw) solid var(--ink);
  background: var(--card);
  overflow: hidden;
  margin: 10px 0;
}
.progress__bar { height: 100%; background: var(--lime); width: 0; transition: width 0.25s ease; }

.files { font-family: var(--mono); font-size: 10px; color: var(--muted); line-height: 1.7; }
.files b { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- settings */

.setgroup {
  margin: 14px 14px 0;
  border: var(--bw) solid var(--ink);
  border-radius: 2px;
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
}

.setrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: var(--card);
  border: 0;
  border-bottom: var(--bw) solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.setrow:last-child { border-bottom: 0; }
.setrow svg { width: 14px; height: 14px; flex: none; }
.setrow--static { cursor: default; }

.switch {
  width: 40px;
  height: 22px;
  border: var(--bw) solid var(--ink);
  background: var(--card);
  position: relative;
  flex: none;
}
.switch::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  background: var(--ink);
  transition: transform 0.15s ease;
}
.switch.is-on { background: var(--lime); }
.switch.is-on::after { transform: translateX(18px); }

/* ---------------------------------------------------------------- profile */

.profile { padding: 14px; }

.pp__avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.04em;
  flex: none;
}

.pp__handle {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 0.95;
  word-break: break-all;
}

.pp__pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: var(--bw) solid var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
}
.kv:last-child { border-bottom: 0; }
.kv b { font-weight: 500; }

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  padding: 9px 12px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
  animation: fadein 0.15s ease-out;
  max-width: 90vw;
}

/* ---------------------------------------------------------------- misc */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.rowlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  border-bottom: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.rowlink:last-child { border-bottom: var(--bw) solid var(--ink); }
.rowlink__t { font-size: 13px; font-weight: 700; }
.rowlink__s { font-family: var(--mono); font-size: 9.5px; color: var(--muted); margin-top: 2px; }

.bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 14px 12px;
}

.footpad { height: 20px; }

@media (min-width: 460px) {
  body { padding: 22px 0; }
  .app { min-height: calc(100vh - 44px); min-height: calc(100dvh - 44px); border: var(--bw) solid var(--ink); box-shadow: 8px 8px 0 rgba(19, 18, 21, 0.85); }
  .tabs { bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- compat */

/*
 * Chromium 83 (the WebView shipped with Android 11, and still the floor on
 * cheap devices) predates flexbox `gap`. The runtime adds `.no-flex-gap` to
 * <html> when the measurement check fails, and these margins take over.
 */
.no-flex-gap .btn > * + * { margin-left: 6px; }
.no-flex-gap .chip > * + * { margin-left: 5px; }
.no-flex-gap .topbar > * + * { margin-left: 8px; }
.no-flex-gap .topbar__brand > * + * { margin-left: 8px; }
.no-flex-gap .row > * + * { margin-left: 10px; }
.no-flex-gap .row__name > * + * { margin-left: 5px; }
.no-flex-gap .hero__meta > * + * { margin-left: 6px; }
.no-flex-gap .search > * + * { margin-left: 8px; }
.no-flex-gap .bigstat > * + * { margin-left: 10px; }
.no-flex-gap .hstrip > * + * { margin-left: 8px; }
.no-flex-gap .tab > * + * { margin-top: 3px; }
.no-flex-gap .sheet__head > * + * { margin-left: 10px; }
.no-flex-gap .ob__dots > * + * { margin-left: 6px; }
.no-flex-gap .ob__actions > * + * { margin-top: 8px; }
.no-flex-gap .pw__item > * + * { margin-left: 8px; }
.no-flex-gap .legend > * + * { margin-left: 12px; }
.no-flex-gap .legend__item > * + * { margin-left: 5px; }
.no-flex-gap .fave > * + * { margin-left: 10px; }
.no-flex-gap .step > * + * { margin-left: 10px; }
.no-flex-gap .setrow > * + * { margin-left: 10px; }
.no-flex-gap .kv > * + * { margin-left: 10px; }
.no-flex-gap .pp__pills > * + * { margin-left: 5px; }
.no-flex-gap .bar > * + * { margin-left: 8px; }
.no-flex-gap .snapchip > * + * { margin-top: 2px; }
.no-flex-gap .ob__brand > * + * { margin-left: 8px; }
.no-flex-gap .listhead__title > * + * { margin-left: 8px; }
