/* Cortik Alpha Mini App: light glass with chrome discs and glossy pill buttons (owner's reference design).
   Button states: default blue, hover orange glow, focus navy, pressed white glass, loading red,
   loading flame orange, success faded. Brand: the official Cortik logo, Cortik orange accents. */

:root {
  --bg1: #e9edf4;
  --bg2: #f7f8fb;
  --ink: #0d1838;
  --ink-2: #2a3557;
  --muted: #66718c;
  --line: rgba(20, 35, 80, 0.09);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --cortik: #e94d19;
  --cortik-glow: #ff7a3a;
  --maroon: #3f0b06;
  --good: #12955a;
  --bad: #d3392b;
  --warn: #c98a07;
  --blue-a: #7cb8ff;
  --blue-b: #2f7cf6;
  --blue-c: #1556d6;
  --orange-a: #ffd79a;
  --orange-b: #ffa748;
  --orange-c: #ff7a1a;
  --navy-a: #34488f;
  --navy-b: #142266;
  --navy-c: #0a1442;
  --red-a: #ff7a6e;
  --red-b: #e0302a;
  --red-c: #b3161b;
  --flame-a: #ffb46b;
  --flame-b: #ff6a2c;
  --flame-c: #ea3a24;
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Inter", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { overflow-x: hidden; max-width: 100%; }
body {
  max-width: 100%;
  background:
    radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(800px 500px at 110% 30%, rgba(120, 160, 255, 0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 80%, rgba(255, 140, 70, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  background-attachment: fixed;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-c); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mono { font-family: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace; font-size: 0.86em; }
.muted { color: var(--muted); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- chrome discs (decoration, behind everything) ---------------------------------------------- */
.chrome {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.42;
  background: conic-gradient(from 200deg, #ffffff, #9aa4b8, #f6f8fc, #56627c, #e9edf4, #b5bdcd, #ffffff, #78839c, #ffffff);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.65),
    inset 0 0 34px rgba(30, 50, 100, 0.35),
    0 24px 60px rgba(25, 40, 90, 0.22);
}
.chrome::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: conic-gradient(from 40deg, #ffffff, #c4ccd9, #ffffff, #8792ab, #f2f4f8, #aab3c4, #ffffff);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(255, 255, 255, 0.8);
}
.chrome::after {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(70, 130, 255, 0.55);
  border-right-color: rgba(255, 120, 60, 0.45);
  filter: blur(1px);
}
.chrome.c1 { width: 210px; height: 210px; left: -120px; top: 34%; }
.chrome.c2 { width: 250px; height: 250px; right: -140px; top: 44%; }
.chrome.c3 { width: 260px; height: 260px; left: -150px; bottom: -120px; }
.chrome.c4 { width: 220px; height: 220px; right: -110px; bottom: -130px; }

/* ---- shell ----------------------------------------------------------------------------------------- */
#app { position: relative; z-index: 1; min-height: 100vh; }
.page { max-width: 760px; margin: 0 auto; padding: 8px 14px calc(96px + var(--safe-b)); }
.page.wide { max-width: 1100px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(247, 248, 251, 0.95), rgba(247, 248, 251, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; overflow: hidden; }
/* The user's own wallet, on every screen (0x19E7E…Aff2A; tap copies it). */
.addr-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: var(--glass-strong);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 35, 80, 0.07);
}
.addr-chip.off { color: var(--muted); font-family: inherit; }
.addr-chip .addr { font-size: 12px; }
/* An address in the brand colours: the first part Cortik blue, the last 5 saffron (as CORTIK ALPHA). */
.addr { white-space: nowrap; font-weight: 700; letter-spacing: 0.01em; }
.addr-head { color: var(--blue-c); }
.addr-dots { color: var(--muted); margin: 0 1px; }
.addr-tail {
  color: var(--cortik);
  background: linear-gradient(180deg, var(--cortik-glow), var(--cortik));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 420px) {
  .topbar { gap: 8px; padding: 10px 10px; }
  .topbar .app-icon { width: 34px; height: 34px; }
  .topbar .wordmark { font-size: 13px; letter-spacing: 0.08em; }
  .topbar .wordmark-sub { font-size: 9px; letter-spacing: 0.12em; }
}
/* The app icon: the dark Cortik Alpha badge as a rounded tile, lit orange on the left and blue on the right. */
.app-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  overflow: hidden;
  background: #00060f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), -3px 2px 10px rgba(255, 128, 32, 0.28), 3px 2px 10px rgba(36, 120, 255, 0.3),
    0 4px 12px rgba(20, 35, 80, 0.22);
}
.app-icon img { width: 100%; height: 100%; display: block; }
.app-icon.big { width: 120px; height: 120px; border-radius: 30px; }
.wordmark { font-weight: 800; letter-spacing: 0.14em; font-size: 15px; white-space: nowrap; color: var(--blue-c); }
.wordmark-box { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-sub { font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; color: #b0570f; margin-top: 3px; }
.wordmark b {
  background: linear-gradient(180deg, var(--cortik-glow), var(--cortik));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(20, 35, 80, 0.08);
  white-space: nowrap;
}
.pill.paper { color: #9a3a07; background: linear-gradient(180deg, #fff3e6, #ffe2c7); border-color: #ffd2a8; }
.pill.good { color: var(--good); background: #e8f8ef; border-color: #c9eed9; }
.pill.bad { color: var(--bad); background: #fdecea; border-color: #f7cdc8; }
.pill.warn { color: #8a5b00; background: #fff6dd; border-color: #f6e2a6; }
.pill.blue { color: var(--blue-c); background: #eaf2ff; border-color: #cfe0ff; }
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--glass-strong);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(20, 35, 80, 0.1);
  cursor: pointer;
}
.badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--cortik-glow), var(--cortik));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---- glass cards --------------------------------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 30px rgba(20, 35, 85, 0.09);
  padding: 16px;
  margin-top: 14px;
}
.card.frame { outline: 1px solid rgba(110, 130, 190, 0.18); outline-offset: 5px; margin-top: 20px; }
.card h2, .card h3 { margin: 0 0 10px; }
h1 { font-size: 24px; margin: 18px 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 17px; letter-spacing: -0.01em; }
h3 { font-size: 15px; }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-value { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(20, 35, 80, 0.05);
  min-width: 0;
}
.stat .v { font-size: 18px; font-weight: 750; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
/* Notices (the owner, 7 Oct 2026: seen, but no headache): a 4px bar on the left in the notice's colour, a round mark
   that glows twice when it appears (then rests), a bold title, calm text, and the buttons that settle it inside. */
.notice {
  --nt: #1556d6;
  --nt-bg: #f1f6ff;
  --nt-line: #d6e4ff;
  position: relative;
  display: flex;
  gap: 10px;
  padding: 11px 12px 11px 16px;
  border-radius: 16px;
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
  background: var(--nt-bg);
  border: 1px solid var(--nt-line);
  box-shadow: 0 4px 14px rgba(20, 35, 80, 0.06);
  overflow: hidden;
}
.notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--nt); }
.notice.warn { --nt: #e8581c; --nt-bg: #fff4ee; --nt-line: #ffd6c2; } /* Cortik saffron: no pale yellow (the owner) */
.notice.bad { --nt: #d3392b; --nt-bg: #fff1ef; --nt-line: #f6cfca; }
.notice.good { --nt: #12955a; --nt-bg: #edf9f2; --nt-line: #c6ecd6; }
.notice-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: var(--nt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nt) 18%, transparent);
  animation: notice-glow 1.2s ease-in-out 2;
}
.notice-mark svg { stroke-width: 3; }
@keyframes notice-glow { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--nt) 14%, transparent); } }
.notice-body { flex: 1; min-width: 0; }
.notice-title { display: block; font-size: 14px; color: var(--ink); margin-bottom: 1px; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.notice.closable { padding-right: 38px; }
.notice-x { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.notice-x:active { background: rgba(20, 35, 80, 0.08); }
.notice .notice-actions .gbtn { min-height: 32px; padding: 0 12px; gap: 6px; font-size: 13px; }
.notice .notice-actions .gbtn svg { width: 15px; height: 15px; }
.list > .item { padding: 12px 0; border-top: 1px solid var(--line); }
.list > .item:first-child { border-top: 0; padding-top: 2px; }
.item .t { font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.item .m { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.empty { padding: 22px 6px; text-align: center; color: var(--muted); font-size: 14px; }
.bars { display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px; height: 56px; margin-top: 6px;
  border-bottom: 1px solid var(--line); }
.bars span { flex: 1; min-width: 4px; max-width: 16px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #7dd7a5, var(--good)); }
.bars span.neg { background: linear-gradient(180deg, #ff9a8f, var(--bad)); align-self: flex-start; border-radius: 1px 1px 4px 4px; }
.progress { height: 8px; border-radius: 99px; background: rgba(20, 35, 80, 0.08); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-a), var(--blue-b)); }

/* ---- checklist ----------------------------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.dot {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}
.dot.done { color: #fff; border: 0; background: linear-gradient(180deg, #4fd18c, var(--good)); box-shadow: 0 3px 8px rgba(18, 149, 90, 0.35); }
.dot.next { color: #fff; border: 0; background: linear-gradient(180deg, var(--blue-a), var(--blue-c)); box-shadow: 0 3px 10px rgba(47, 124, 246, 0.4); }

/* ---- glossy pill buttons: the reference states ------------------------------------------------------ */
.gbtn {
  --gloss: rgba(255, 255, 255, 0.75);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: #fff;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
  outline: none;
  text-shadow: 0 1px 1px rgba(0, 30, 90, 0.35);
  background: linear-gradient(180deg, var(--blue-a) 0%, var(--blue-b) 48%, var(--blue-c) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -4px 10px rgba(0, 25, 110, 0.35),
    0 8px 22px rgba(40, 110, 250, 0.38),
    0 0 0 4px rgba(120, 160, 255, 0.12);
  transition: transform 0.12s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease, opacity 0.3s ease;
}
.gbtn::before { /* top gloss */
  content: "";
  position: absolute;
  z-index: -1;
  left: 7%;
  right: 7%;
  top: 2px;
  height: 48%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gloss), rgba(255, 255, 255, 0.06));
}
.gbtn::after { /* bottom rim light */
  content: "";
  position: absolute;
  z-index: -1;
  left: 14%;
  right: 14%;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: rgba(190, 225, 255, 0.85);
  filter: blur(1px);
}
.gbtn svg { flex: none; }
.gbtn > span { text-align: center; line-height: 1.2; }
.gbtn.block { display: flex; width: 100%; }
.gbtn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.gbtn.tiny { min-height: 32px; padding: 0 12px; font-size: 13px; }

.gbtn.is-hover,
.gbtn.is-hover:hover {
  color: #2b1200;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, var(--orange-a) 0%, var(--orange-b) 50%, var(--orange-c) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -4px 10px rgba(160, 60, 0, 0.3),
    0 0 26px rgba(255, 150, 50, 0.65),
    0 8px 20px rgba(255, 120, 30, 0.35);
}
.gbtn.is-focus {
  color: #fff;
  background: linear-gradient(180deg, var(--navy-a) 0%, var(--navy-b) 55%, var(--navy-c) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 10px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(60, 110, 255, 0.55),
    0 8px 20px rgba(10, 30, 110, 0.4);
}
@media (hover: hover) {
  .gbtn:hover:not(.is-loading):not(.is-flame):not(.is-success):not(:disabled) {
    color: #2b1200;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    background: linear-gradient(180deg, var(--orange-a) 0%, var(--orange-b) 50%, var(--orange-c) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -4px 10px rgba(160, 60, 0, 0.3),
      0 0 26px rgba(255, 150, 50, 0.65),
      0 8px 20px rgba(255, 120, 30, 0.35);
  }
  .gbtn:hover::after { background: rgba(255, 230, 190, 0.95); }
}
.gbtn:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, var(--navy-a) 0%, var(--navy-b) 55%, var(--navy-c) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 10px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(60, 110, 255, 0.55),
    0 8px 20px rgba(10, 30, 110, 0.4);
}
.gbtn:active:not(:disabled), .gbtn.is-pressed {
  color: var(--ink);
  text-shadow: none;
  transform: translateY(1px) scale(0.985);
  background: linear-gradient(180deg, #ffffff 0%, #f1f4fa 60%, #e3e9f4 100%);
  border-color: rgba(130, 160, 255, 0.55);
  box-shadow:
    inset 0 2px 6px rgba(20, 40, 90, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(20, 40, 90, 0.12),
    0 0 0 3px rgba(150, 175, 255, 0.25);
}
.gbtn.is-loading {
  cursor: progress;
  color: #fff;
  background: linear-gradient(180deg, var(--red-a) 0%, var(--red-b) 52%, var(--red-c) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -4px 10px rgba(110, 0, 0, 0.35),
    0 8px 22px rgba(220, 40, 30, 0.38),
    0 0 0 4px rgba(255, 120, 110, 0.14);
}
.gbtn.is-loading::after { background: rgba(255, 190, 180, 0.9); }
.gbtn.is-flame {
  cursor: progress;
  color: #fff;
  background: linear-gradient(180deg, var(--flame-a) 0%, var(--flame-b) 50%, var(--flame-c) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -4px 10px rgba(140, 30, 0, 0.3),
    0 0 30px rgba(255, 110, 40, 0.7),
    0 8px 22px rgba(240, 70, 30, 0.4);
  animation: flame 1.1s ease-in-out infinite;
}
.gbtn.is-success {
  color: #8a93a8;
  text-shadow: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(238, 242, 249, 0.75));
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(20, 35, 80, 0.08);
}
.gbtn.is-success::after { background: transparent; }
.gbtn:disabled { opacity: 0.45; cursor: not-allowed; }

/* other looks, same family */
/* glass: a secondary action. A blue rim and blue text keep it visible on the white cards. */
.gbtn.glass {
  color: var(--blue-c);
  text-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6ff 55%, #e3edff 100%);
  border: 1.5px solid rgba(47, 124, 246, 0.55);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgba(30, 80, 200, 0.08), 0 6px 16px rgba(30, 90, 220, 0.16);
}
.gbtn.glass::after { background: rgba(255, 255, 255, 0.9); }
/* danger: stops or takes something away (stop copies, unbond, reject). A red rim, red text, a rose tint. */
.gbtn.danger {
  color: var(--red-c);
  text-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #fff1ef 55%, #ffe1dc 100%);
  border: 1.5px solid rgba(224, 48, 42, 0.6);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgba(180, 30, 20, 0.08), 0 6px 18px rgba(224, 48, 42, 0.2);
}
.gbtn.danger::after { background: rgba(255, 255, 255, 0.9); }
/* danger-solid: the confirming tap of a danger action */
.gbtn.danger-solid {
  background: linear-gradient(180deg, var(--red-a) 0%, var(--red-b) 55%, var(--red-c) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -4px 10px rgba(90, 0, 0, 0.35), 0 8px 22px rgba(224, 48, 42, 0.38);
}
.gbtn.danger-solid::after { background: rgba(255, 200, 190, 0.85); }
.gbtn.navy {
  background: linear-gradient(180deg, var(--navy-a) 0%, var(--navy-b) 55%, var(--navy-c) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 10px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(10, 30, 110, 0.32);
}
.gbtn.navy::after { background: rgba(140, 170, 255, 0.7); }
.gbtn.cortik {
  background: linear-gradient(180deg, #ff9a63 0%, var(--cortik) 55%, #b9330c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -4px 10px rgba(90, 15, 0, 0.35), 0 8px 22px rgba(233, 77, 25, 0.38);
}
.gbtn.cortik::after { background: rgba(255, 200, 170, 0.85); }

.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flame {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -4px 10px rgba(140,30,0,.3), 0 0 22px rgba(255,110,40,.55), 0 8px 22px rgba(240,70,30,.35); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -4px 10px rgba(140,30,0,.3), 0 0 38px rgba(255,120,40,.85), 0 8px 26px rgba(240,70,30,.45); }
}
.flicker { animation: flicker 0.5s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes flicker { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.12) rotate(3deg); } }
.sparkle { animation: sparkle 1.2s ease-out 1; }
@keyframes sparkle { from { transform: scale(0.4) rotate(-45deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

/* ---- forms ------------------------------------------------------------------------------------------- */
.field { display: block; margin-top: 12px; }
.field > span { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(20, 35, 80, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 2px 4px rgba(20, 35, 80, 0.06);
  outline: none;
  font-size: 16px;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--blue-b); box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.2); }
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(20, 35, 80, 0.06);
  box-shadow: inset 0 1px 3px rgba(20, 35, 80, 0.08);
}
.seg { max-width: 100%; }
.seg button {
  flex: 1 1 0;
  gap: 6px;
  padding: 0 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 650;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.seg button.on {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-a), var(--blue-b) 55%, var(--blue-c));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(40, 110, 250, 0.35);
}
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: var(--glass-strong);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 35, 80, 0.07);
}
.chip.on { color: #fff; background: linear-gradient(180deg, var(--navy-a), var(--navy-b)); }
label.check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14px; }
label.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue-b); }

/* ---- bottom tabs ------------------------------------------------------------------------------------- */
/* A soft fade under the floating tab bar, so scrolled content does not show around and below it. */
.tabs-fade {
  position: fixed;
  z-index: 29;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(104px + var(--safe-b));
  pointer-events: none;
  background: linear-gradient(180deg, rgba(233, 237, 244, 0), rgba(233, 237, 244, 0.92) 45%, #e9edf4 100%);
}
.tabs {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(10px + var(--safe-b));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 20px));
  display: flex;
  justify-content: space-around;
  padding: 6px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 34px rgba(20, 35, 85, 0.18);
}
.tabs a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.tabs a.on {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-a), var(--blue-b) 55%, var(--blue-c));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 16px rgba(40, 110, 250, 0.35);
}

/* ---- sheets, toasts, boot ------------------------------------------------------------------------------ */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(10, 20, 50, 0.32); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 18px 18px calc(22px + var(--safe-b));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #ffffff, #f2f5fa);
  box-shadow: 0 -10px 40px rgba(10, 20, 60, 0.25);
  animation: up 0.22s ease-out;
}
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 28px; } }
.sheet .grip { width: 44px; height: 5px; border-radius: 3px; background: rgba(20, 35, 80, 0.15); margin: -6px auto 12px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
/* the confirmation of a sensitive action: above any other sheet */
.sheet-bg.confirm { z-index: 55; }
.confirm-actions { display: flex; gap: 10px; margin-top: 18px; }
.confirm-actions > * { flex: 1; }
.toasts { position: fixed; z-index: 60; top: 12px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); }
.toast {
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(13, 24, 56, 0.92);
  color: #fff;
  box-shadow: 0 10px 30px rgba(10, 20, 50, 0.3);
  animation: up 0.2s ease-out;
}
.toast.bad { background: rgba(170, 30, 25, 0.95); }
.toast.good { background: rgba(10, 110, 65, 0.95); }
.boot { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; }
.boot p { margin: 0; font-weight: 800; letter-spacing: 0.16em; color: var(--ink-2); }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); filter: drop-shadow(0 0 18px rgba(233, 77, 25, 0.45)); } }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; }
.tbl td { padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.scroll-x { overflow-x: auto; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; color: #fff; background: linear-gradient(180deg, var(--blue-b), var(--blue-c)); border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 650; }
.menu a:first-child { border-top: 0; }
.menu a .chev { margin-left: auto; color: var(--muted); }
.code-box { padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px dashed rgba(20, 35, 80, 0.2); word-break: break-all; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- the exchange switch: one card per exchange, in that exchange's colours (names only, no partnership) ---- */
/* Two equal halves that never grow past the screen: a long line is cut with "…" instead of pushing the page wide
   (minmax(0, 1fr) and min-width: 0, or a grid item grows to its text and the page slides sideways). */
.venues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 2px 0 6px; max-width: 100%; }
.venue {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #f2f5fa);
  border: 1.5px solid rgba(20, 35, 80, 0.12);
  box-shadow: 0 4px 14px rgba(20, 35, 80, 0.08);
  transition: transform 0.12s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.venue:active { transform: scale(0.98); }
.venue-mark {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.venue-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.venue-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-text small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Polymarket: blue */
.venue.polymarket .venue-mark { color: #fff; background: linear-gradient(180deg, #4d7bff, #1d4fe6); }
.venue.polymarket.on {
  color: #fff;
  border-color: #2d5bff;
  background: linear-gradient(135deg, #2f63ff 0%, #1b45d8 100%);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.22), 0 10px 26px rgba(45, 91, 255, 0.4);
}
.venue.polymarket.on .venue-mark { background: rgba(255, 255, 255, 0.18); }
.venue.polymarket.on small { color: rgba(255, 255, 255, 0.82); }
/* Hyperliquid: mint on deep teal */
.venue.hyperliquid .venue-mark { color: #97fce4; background: linear-gradient(180deg, #0f3a37, #06201f); }
.venue.hyperliquid.on {
  color: #97fce4;
  border-color: #97fce4;
  background: linear-gradient(135deg, #0c2f2c 0%, #041b1a 100%);
  box-shadow: 0 0 0 3px rgba(151, 252, 228, 0.25), 0 10px 26px rgba(4, 40, 37, 0.45);
}
.venue.hyperliquid.on .venue-mark { color: #04201f; background: #97fce4; }
.venue.hyperliquid.on small { color: rgba(151, 252, 228, 0.78); }
.venue-note { margin: 0 0 10px; text-align: center; }

/* ---- brand marks (tokens, networks, exchanges, wallets) ---- */
.asset { display: inline-block; flex: none; border-radius: 50%; object-fit: cover; vertical-align: -0.28em; background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 35, 80, 0.08); }
/* A token with its network: the small badge sits in the bottom-right corner, on a white ring. */
.asset-wrap { position: relative; display: inline-block; flex: none; vertical-align: middle; }
.asset-wrap > .asset { display: block; }
.asset-badge { position: absolute; right: -3px; bottom: -3px; line-height: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(20, 35, 80, 0.25); }
.asset-badge .asset { vertical-align: top; box-shadow: none; }
.asset.app { border-radius: 24%; }
.wallet-list { display: grid; gap: 10px; margin-top: 12px; }
.wallet-list .gbtn { justify-content: flex-start; }
.connect-log { max-height: 160px; overflow: auto; white-space: pre-wrap; background: rgba(20, 35, 80, 0.05); padding: 8px; border-radius: 10px; }
/* Marks that are not round (CTK's heptagon): shown whole, never cut into a circle. */
.asset.free { border-radius: 0; box-shadow: none; background: transparent; object-fit: contain; }
.asset-fb { display: inline-grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: 0.01em; line-height: 1; }
.amt { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; max-width: 100%; }
.amt .tick { font-size: 0.82em; color: var(--muted); font-weight: 650; }
/* A mark sits level with its text: labels and titles line up on the mark's middle. */
.stat .label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card h2 .asset, .card h2 .asset-wrap { vertical-align: middle; margin: -3px 6px 0 0; }
.gbtn > .asset, .gbtn > .asset-wrap { flex: none; filter: drop-shadow(0 1px 1px rgba(0, 20, 60, 0.25)); }
.gbtn .asset { margin-right: 2px; }
.pill .asset { margin-right: 3px; vertical-align: -0.2em; }
.venue-mark .asset { width: 100% !important; height: 100% !important; border-radius: 0; box-shadow: none; }
.confirm-assets { display: flex; gap: 6px; margin: 2px 0 12px; }
.terms-list { margin: 0; padding: 0; list-style: none; }
.terms-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.terms-list li:first-child { border-top: 0; }
.terms-list b { display: block; margin-bottom: 2px; }
.chain-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wallet-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wallet-id .mono { overflow: hidden; text-overflow: ellipsis; }
/* Nothing may push the page wider than the phone: long addresses and table cells wrap inside their card. */
.card { max-width: 100%; }
.mono, .tbl td { overflow-wrap: anywhere; }
/* Swap & Bridge (the owner, 7 Oct 2026: all on one screen): "You pay" and "You get" boxes, each with one button for
   the coin and its network, the amount (or what arrives) on the right; the coin chooser lists the seven coins. */
.swap-box { display: grid; gap: 6px; padding: 10px 12px; border-radius: 18px; }
.swap-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.asset-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 35, 80, 0.04);
  color: var(--ink);
  cursor: pointer;
}
.asset-name { display: grid; line-height: 1.1; text-align: left; }
.asset-name b { font-size: 14px; }
.asset-name .net { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.swap-amount { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; }
.swap-amount .input { width: 100%; min-width: 0; padding: 6px 4px; border: 0; background: transparent; box-shadow: none; text-align: right;
  font-size: 22px; font-weight: 800; }
.swap-get { flex: 1; min-width: 0; text-align: right; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.chip.max { padding: 5px 9px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; }
.chip.slip { padding: 4px 8px; font-size: 12px; }
.chip.dim { opacity: 0.4; }
.flip { display: flex; justify-content: center; margin: -9px 0; position: relative; z-index: 1; }
.flip .icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 8px rgba(20, 35, 80, 0.12); }
.asset-list { display: grid; gap: 6px; margin-top: 10px; }
.asset-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 14px; color: var(--ink);
  text-align: left; cursor: pointer; }
.asset-row.on { border-color: var(--blue-b); box-shadow: 0 0 0 2px rgba(47, 124, 246, 0.25); }
.asset-row:disabled { opacity: 0.45; cursor: default; }
.asset-row .why { display: block; }
.preview { margin-top: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.pv-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; border-top: 1px solid var(--line); }
.pv-row:first-of-type { border-top: 0; }
.pv-row b { text-align: right; min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.preview .notice { margin-top: 8px; }
.wallet-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.wallet-pick .chip { font-size: 12.5px; padding: 6px 11px; }
.wallet-pick.one-line { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.wallet-pick.one-line::-webkit-scrollbar { display: none; }
.wallet-pick.one-line .chip { font-size: 12px; padding: 5px 10px; }
.wallet-pick .chip.on .addr-head, .wallet-pick .chip.on .addr-dots { color: #fff; }
.open-wallet { margin-top: 10px; padding: 10px; border-radius: 16px; background: rgba(21, 86, 214, 0.06); }
.unit { font-weight: 750; font-size: 18px; color: var(--ink-2); }

/* ---- theme corners (the owner, 6 Oct 2026) ------------------------------------------------------------------
   White tiles and boxes stand out from their card: a hair-thin Cortik blue line round the top-left corner and a
   saffron one round the bottom-right, fading out along the edges, and a slight emboss (light from the top, a soft
   shade below). Stat tiles everywhere (customer and admin), the Swap & Bridge boxes, coins and preview, the invite
   link, and the wallet chip in the top bar ("Connect wallet" too). */
.stat, .preview, .code-box, .swap-box, .asset-row, .totals, .bot-move-side, .addr-chip { position: relative; }
.stat, .preview, .swap-box, .asset-row {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border: 1px solid rgba(20, 35, 80, 0.08);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(20, 35, 80, 0.05), 0 1px 2px rgba(20, 35, 80, 0.07),
    0 6px 16px rgba(20, 35, 80, 0.06);
}
.addr-chip {
  border: 1px solid rgba(20, 35, 80, 0.08);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(20, 35, 80, 0.05), 0 2px 8px rgba(20, 35, 80, 0.08);
}
.stat::before, .preview::before, .code-box::before, .swap-box::before, .asset-row::before, .totals::before, .bot-move-side::before, .addr-chip::before, .rank-card::before,
.stat::after, .preview::after, .code-box::after, .swap-box::after, .asset-row::after, .totals::after, .bot-move-side::after, .addr-chip::after, .rank-card::after {
  content: "";
  position: absolute;
  width: min(46px, 45%);
  height: min(46px, 70%);
  pointer-events: none;
}
.stat::before, .preview::before, .code-box::before, .swap-box::before, .asset-row::before, .totals::before, .bot-move-side::before, .addr-chip::before, .rank-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--blue-b);
  border-left: 1px solid var(--blue-b);
  border-top-left-radius: inherit;
  -webkit-mask-image: radial-gradient(circle at 0 0, #000 35%, transparent 78%);
  mask-image: radial-gradient(circle at 0 0, #000 35%, transparent 78%);
}
.stat::after, .preview::after, .code-box::after, .swap-box::after, .asset-row::after, .totals::after, .bot-move-side::after, .addr-chip::after, .rank-card::after {
  right: -1px;
  bottom: -1px;
  border-bottom: 1px solid var(--orange-c);
  border-right: 1px solid var(--orange-c);
  border-bottom-right-radius: inherit;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 35%, transparent 78%);
  mask-image: radial-gradient(circle at 100% 100%, #000 35%, transparent 78%);
}
/* A pill (the wallet chip): the lines follow its round ends exactly, blue on the left, saffron on the right (a
   1px ring of a diagonal gradient, the middle clear). */
.addr-chip::before {
  inset: -1px;
  width: auto;
  height: auto;
  padding: 1px;
  border: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, var(--blue-b) 0%, rgba(47, 124, 246, 0) 34%, rgba(255, 122, 26, 0) 66%, var(--orange-c) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.addr-chip::after { display: none; }

/* The "i" next to a title: the explanation is one tap away (the owner, 6 Oct 2026). */
.info-btn {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -3px 0 0 8px;
  padding: 0;
  vertical-align: middle;
  border-radius: 50%;
  border: 1px solid rgba(21, 86, 214, 0.28);
  background: linear-gradient(180deg, #ffffff, #eef3fc);
  color: var(--blue-c);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(20, 35, 80, 0.12);
  cursor: pointer;
}
.info-btn:active { transform: scale(0.94); }
.card-right { display: flex; align-items: center; gap: 8px; flex: none; }
.card-right .info-btn { margin: 0; }
/* Several network logos in a title, overlapping a little (they take less room). */
.logo-stack { display: inline-flex; align-items: center; margin-right: 6px; vertical-align: middle; }
.logo-stack > * + * { margin-left: -6px; }
.logo-stack .asset { box-shadow: 0 0 0 2px #fff; border-radius: 50%; }
.card h2 .logo-stack .asset { margin: 0; }
.info-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.info-body p:last-child { margin-bottom: 0; }
.info-body .notice { margin-top: 0; margin-bottom: 10px; }

/* ---- Ranks & Network: every rank has its colour and emblem (Member grey, Neuron sky blue, Synapse deep Cortik blue,
   Cortex saffron, Alpha blue to saffron with gold). The rank cards have a solid band with the emblem; each requirement's
   progress is in the rank's colour, green when it is met. */
.rank-member { --rk-a: #a7afc0; --rk-b: #687189; --rk-ink: #5a6379; --rk-glow: rgba(104, 113, 137, 0.26); }
.rank-neuron { --rk-a: #5ec8ff; --rk-b: #1490e4; --rk-ink: #0a7dcc; --rk-glow: rgba(20, 144, 228, 0.28); }
.rank-synapse { --rk-a: #3b84f7; --rk-b: #0e3ca8; --rk-ink: #1452cc; --rk-glow: rgba(21, 86, 214, 0.3); }
.rank-cortex { --rk-a: #ffb04f; --rk-b: #ef670c; --rk-ink: #dc5e0a; --rk-glow: rgba(239, 103, 12, 0.3); }
.rank-alpha { --rk-a: #1556d6; --rk-b: #e94d19; --rk-ink: #c8430f; --rk-glow: rgba(233, 77, 25, 0.3); --rk-gold: #f4c247; }
.rank-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  color: #fff; vertical-align: middle; white-space: nowrap; background: linear-gradient(180deg, var(--rk-a), var(--rk-b)); }
.rank-pill.rank-alpha { background: linear-gradient(90deg, var(--rk-a), var(--rk-b)); box-shadow: inset 0 0 0 1px var(--rk-gold); }
.rank-emblem { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--rk-a), var(--rk-b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 10px var(--rk-glow); }
.rank-emblem svg { display: block; }
.rank-emblem svg .fill { fill: currentColor; }
.rank-emblem.rank-alpha { box-shadow: 0 0 0 2px var(--rk-gold), 0 3px 12px var(--rk-glow); }
.rank-emblem.light { background: #fff; color: var(--rk-b); box-shadow: 0 2px 6px rgba(10, 20, 60, 0.18); }
.rank-emblem.light.rank-alpha { color: var(--rk-a); box-shadow: 0 0 0 2px var(--rk-gold), 0 2px 6px rgba(10, 20, 60, 0.2); }
.rank-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rank-me { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-next { flex: none; text-align: right; white-space: nowrap; }
.rank-next-name { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 2px 0; }
.rank-name { font-size: 28px; font-weight: 850; letter-spacing: -0.02em; color: var(--rk-ink, var(--blue-c)); line-height: 1.1; margin: 2px 0 4px; }
.rank-name.small-name { font-size: 18px; margin: 0; }
.rank-pct { color: var(--rk-ink); font-weight: 850; }
.rank-progress > i { background: linear-gradient(90deg, var(--rk-a), var(--rk-b)); }
.missing { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: #fff4ee; border: 1px solid #ffd6c2; }
.missing .label { margin-bottom: 4px; }
.rank-cards { display: grid; gap: 12px; }
.rank-card { position: relative; padding: 10px 12px 12px; border-radius: 18px; border: 1px solid rgba(20, 35, 80, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%); box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(20, 35, 80, 0.07),
    0 6px 16px rgba(20, 35, 80, 0.06); }
.rank-card.current { border-color: var(--rk-b); box-shadow: 0 0 0 2px var(--rk-glow), 0 8px 22px var(--rk-glow); }
.rank-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 13px; color: #fff;
  background: linear-gradient(120deg, var(--rk-a), var(--rk-b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px var(--rk-glow); }
.rank-alpha .rank-head { box-shadow: inset 0 0 0 1px var(--rk-gold), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 14px var(--rk-glow); }
.rank-head-name { flex: 1; min-width: 0; font-size: 17px; font-weight: 850; letter-spacing: 0.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.rank-status { flex: none; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.5); }
.rank-status.done { background: rgba(255, 255, 255, 0.32); }
.rank-status.now { background: #fff; border-color: #fff; color: var(--rk-ink); }
.rank-earn { font-size: 22px; font-weight: 850; letter-spacing: -0.01em; margin: 10px 0 1px; color: var(--rk-ink); }
.rank-alpha .rank-earn, .rank-alpha .rank-pct, .rank-alpha.rank-me .rank-name, .rank-alpha .rank-name {
  background: linear-gradient(90deg, var(--rk-a), var(--rk-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.crit { margin-top: 8px; }
.crit-row { display: flex; align-items: center; gap: 8px; }
.crit-label { flex: 1; min-width: 0; }
.crit-num { flex: none; white-space: nowrap; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.crit-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #c3c9d6; font-size: 10px; font-weight: 900; color: #fff; }
.crit.ok .crit-mark { background: var(--good); border-color: var(--good); }
.crit.ok .crit-num { color: var(--good); }
.crit .progress { margin-top: 4px; }
.rank-card .crit .progress > i { background: linear-gradient(90deg, var(--rk-a), var(--rk-b)); }
.rank-card .crit.ok .progress > i { background: linear-gradient(90deg, #3cc98a, var(--good)); }
.progress.thin { height: 5px; }

/* Paper mode: the play commission a member can claim once per test round (Team -> Commission history). */
.play-commission { margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(180deg, #fffaf0 0%, #fff3dc 100%);
  border: 1px solid #f4dcae; }
.play-commission .num { font-size: 18px; }
.who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Home: the account value card in Rolex green with embossed gold (the owner, 7 Oct 2026: the dial's green
   16302B to 03110D, the crown's gold A38560). The amount is gold with a pressed-in shadow below and a light edge
   above; gains and losses keep their colours, lightened for the dark dial. */
.card.rolex {
  --gold: #a38560;
  --gold-text: #dcc69a;
  position: relative;
  overflow: hidden;
  color: var(--gold-text);
  background:
    radial-gradient(130% 85% at 15% -10%, rgba(88, 160, 124, 0.38), transparent 58%),
    radial-gradient(90% 70% at 100% 110%, rgba(3, 17, 13, 0.85), transparent 70%),
    linear-gradient(155deg, #1f4a3c 0%, #16302b 48%, #03110d 100%);
  border: 1px solid rgba(163, 133, 96, 0.6);
  box-shadow: inset 0 1px 0 rgba(241, 223, 178, 0.28), inset 0 0 0 1px rgba(3, 17, 13, 0.5), 0 14px 34px rgba(3, 17, 13, 0.32);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* The dial's sunburst: fine rays from the top. */
.card.rolex::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% -30%, rgba(255, 255, 255, 0.022) 0deg 1.5deg, transparent 1.5deg 3deg);
}
.card.rolex > * { position: relative; }
.card.rolex.frame { outline-color: rgba(163, 133, 96, 0.5); }
.card.rolex .label { color: var(--gold); }
.card.rolex .muted { color: rgba(220, 198, 154, 0.72); }
.card.rolex b { color: #efe0bb; }
.card.rolex b.good { color: #8ee0ae; }
.card.rolex b.bad { color: #ff9b8f; }
.card.rolex .pill.good { color: #f1dfb2; background: rgba(163, 133, 96, 0.18); border-color: rgba(163, 133, 96, 0.6); }
.card.rolex .pill.warn { color: #ffd98a; background: rgba(201, 138, 7, 0.16); border-color: rgba(255, 217, 138, 0.45); }
.card.rolex .pill:not(.good):not(.warn) { color: var(--gold-text); background: rgba(255, 255, 255, 0.06); border-color: rgba(163, 133, 96, 0.45); }
.card.rolex .info-btn { color: var(--gold-text); background: rgba(163, 133, 96, 0.16); border-color: rgba(163, 133, 96, 0.5); box-shadow: none; }
.gold-emboss {
  color: #a38560;
  background: linear-gradient(180deg, #f8ebc6 0%, #dcc08a 34%, #a38560 64%, #7a5f3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1.5px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 -1px 0 rgba(255, 244, 214, 0.2));
}
.card.rolex .hero-value { font-size: 36px; }
.card.rolex .notice { color: var(--ink); }
.card.rolex .notice b { color: inherit; }
/* "Copying": a green light that blinks while the copies run (the owner, 7 Oct 2026: live at a glance). Without
   motion (reduced motion) it stays lit. */
.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 6px rgba(61, 220, 132, 0.9);
  animation: live 1.4s ease-in-out infinite;
}
@keyframes live {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.75), 0 0 6px rgba(61, 220, 132, 0.9); }
  50% { opacity: 0.3; }
  100% { opacity: 1; box-shadow: 0 0 0 6px rgba(61, 220, 132, 0), 0 0 6px rgba(61, 220, 132, 0.9); }
}
/* A small tag in the same Rolex green and gold ("real money" on Move & Swap). */
.pill.rolex {
  background: linear-gradient(155deg, #1f4a3c 0%, #16302b 55%, #03110d 100%);
  border-color: rgba(163, 133, 96, 0.75);
  box-shadow: inset 0 1px 0 rgba(241, 223, 178, 0.25), 0 2px 6px rgba(3, 17, 13, 0.3);
}
.pill.rolex .gold-emboss {
  background: linear-gradient(180deg, #fbf0cf 0%, #e3c993 45%, #b8955f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}

/* Trades (the owner, 7 Oct 2026): the totals strip of Live and Closed, and a closed copy as a tappable row. */
.totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-top: 12px; padding: 10px 14px; border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f5f7fb); border: 1px solid rgba(20, 35, 80, 0.08); box-shadow: 0 4px 14px rgba(20, 35, 80, 0.06); }
.totals > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.totals .label { font-size: 10px; }
@media (min-width: 560px) { .totals { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.totals b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Swap & Bridge history (the owner, 7 Oct 2026): one line each; a tap opens the rest. */
.history-row { padding-top: 8px; padding-bottom: 8px; }
.history-line { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit;
  text-align: left; cursor: pointer; min-width: 0; }
.history-line .grow { min-width: 0; }
.history-what { display: flex; flex-direction: column; gap: 1px; }
.history-what .ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-line .chev { transition: transform 0.2s ease; flex: none; }
.history-row.open .history-line .chev { transform: rotate(180deg); }
.history-more { margin-top: 6px; padding-left: 28px; }
/* Settings that are one line (the owner, 7 Oct 2026): a switch on the right, or a row that opens below. */
.settings-card { padding-top: 6px; padding-bottom: 6px; }
.setting-row { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 10px 0; border: 0; background: none;
  color: inherit; text-align: left; font: inherit; }
.setting-row.tap { cursor: pointer; }
.setting-row .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.setting-row .ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setting-block { border-top: 1px solid var(--line); }
.setting-row .chev { flex: none; color: var(--muted); transition: transform 0.2s ease; }
.setting-block.open .setting-row .chev { transform: rotate(180deg); }
.setting-more { padding: 2px 0 12px; }
.tg-mark { flex: none; filter: drop-shadow(0 2px 4px rgba(34, 158, 217, 0.25)); }
.switch { flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px; border: 1px solid rgba(20, 35, 80, 0.12);
  background: #e6e9ef; box-shadow: inset 0 1px 3px rgba(20, 35, 80, 0.15); cursor: pointer; transition: background 0.2s ease; padding: 0; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(20, 35, 80, 0.25); transition: transform 0.2s ease; }
.switch.on { background: linear-gradient(180deg, #2b6e56, #16302b); border-color: rgba(220, 192, 138, 0.7); }
.switch.on .knob { transform: translateX(22px); background: linear-gradient(180deg, #fffaf0, #f1dfb2); }
.switch:disabled { opacity: 0.6; }
/* Trade messages in Telegram: from whom, and one choice for each bot. */
.msg-from { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 14px;
  background: rgba(34, 158, 217, 0.08); border: 1px solid rgba(34, 158, 217, 0.22); }
.msg-bot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
/* Move between bots (the owner, 7 Oct 2026): From and To side by side, the button between them turns it round. */
.bot-move { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 8px; margin-top: 12px; }
.bot-move > .icon-btn { align-self: center; }
.bot-move-side { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 10px 12px; border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f5f7fb); border: 1px solid rgba(20, 35, 80, 0.08); }
.bot-move-side .label { font-size: 10px; }
.bot-move-side b, .bot-move-side .num { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-move-side .num { font-weight: 750; font-size: 15px; }
.closed-row { display: block; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left;
  color: inherit; cursor: pointer; }
.list > .closed-row:first-child { border-top: 0; padding-top: 2px; }
.closed-row .strong { font-weight: 750; }
.seg button .live-dot { margin-right: 6px; }

/* ---- the two-tone theme (the owner chose it, 7 Oct 2026): like a two-tone watch, steel and gold. The light app stays
   light, in warm ivory; buttons, tabs and choices take the dial's green with a gold rim; the corner lines and bars are
   green and gold, so the green account card belongs to the page. The Cortik logo, the wordmark and the addresses keep
   their colours; the exchanges keep theirs. <body class="theme-twotone"> (index.html). */
.theme-twotone {
  --bg1: #ece5d6;
  --bg2: #faf7f0;
  --ink: #13261f;
  --ink-2: #2b3a33;
  --muted: #6d776f;
  --line: rgba(22, 48, 43, 0.1);
  --blue-a: #3d8a6c;
  --blue-b: #1d6a50;
  --blue-c: #0f4d3a;
  --navy-a: #2f5f4f;
  --navy-b: #16302b;
  --navy-c: #0b241d;
  --orange-c: #b8955f;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 50% -10%, #fffdf8 0%, rgba(255, 253, 248, 0) 60%),
    radial-gradient(800px 500px at 110% 30%, rgba(163, 133, 96, 0.1), transparent 60%),
    radial-gradient(700px 500px at -10% 80%, rgba(31, 74, 60, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  background-attachment: fixed;
}
.theme-twotone a { color: #0f4d3a; }
.theme-twotone .tabs a:not(.on) { color: var(--muted); }
.theme-twotone .chrome { opacity: 0.3; }
.theme-twotone .topbar { background: linear-gradient(180deg, rgba(250, 247, 240, 0.96), rgba(250, 247, 240, 0.75)); }
.theme-twotone .card:not(.rolex) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 253, 248, 0.72));
  border-color: rgba(163, 133, 96, 0.28);
  box-shadow: inset 0 1px 0 #ffffff, 0 10px 30px rgba(22, 48, 43, 0.08);
}
.theme-twotone .card:not(.rolex) h2 { color: #16302b; }
.theme-twotone .wordmark, .theme-twotone .addr-head { color: #1556d6; } /* the brand keeps its colours */
.theme-twotone .card:not(.rolex) .label { color: #8a7150; }
.theme-twotone .gbtn {
  color: #f6ead0;
  text-shadow: 0 1px 1px rgba(0, 20, 12, 0.45);
  background: linear-gradient(180deg, #3d8a6c 0%, #1d6a50 48%, #0f4d3a 100%);
  border: 1px solid rgba(220, 192, 138, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 10px rgba(0, 30, 18, 0.35), 0 8px 22px rgba(15, 77, 58, 0.3),
    0 0 0 4px rgba(163, 133, 96, 0.12);
}
.theme-twotone .gbtn::after { background: rgba(241, 223, 178, 0.75); }
.theme-twotone .gbtn.glass { color: #0f4d3a; text-shadow: none; background: linear-gradient(180deg, #ffffff 0%, #fbf7ee 55%, #f3ead8 100%);
  border: 1.5px solid rgba(163, 133, 96, 0.65); box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(22, 48, 43, 0.12); }
.theme-twotone .gbtn.glass::after { background: rgba(255, 255, 255, 0.9); }
.theme-twotone .seg button.on, .theme-twotone .tabs a.on, .theme-twotone .chip.on {
  color: #f6ead0;
  background: linear-gradient(180deg, #2b6e56, #16302b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(220, 192, 138, 0.55), 0 6px 16px rgba(15, 77, 58, 0.3);
}
.theme-twotone .chip.on .addr-head, .theme-twotone .chip.on .addr-dots { color: #f6ead0; }
.theme-twotone .tabs { border-color: rgba(163, 133, 96, 0.35); }
.theme-twotone .tabs-fade { background: linear-gradient(180deg, rgba(236, 229, 214, 0), rgba(236, 229, 214, 0.92) 45%, #ece5d6 100%); }
.theme-twotone .pill.blue { color: #0f4d3a; background: #eaf3ee; border-color: #c8ddd2; }
.theme-twotone .info-btn { color: #0f4d3a; border-color: rgba(163, 133, 96, 0.5); background: linear-gradient(180deg, #ffffff, #f7f1e4); }
.theme-twotone .progress > i { background: linear-gradient(90deg, #1d6a50, #b8955f); }
.theme-twotone .input:focus { border-color: #1d6a50; box-shadow: 0 0 0 3px rgba(29, 106, 80, 0.18); }
.theme-twotone .stat, .theme-twotone .preview, .theme-twotone .swap-box, .theme-twotone .asset-row, .theme-twotone .rank-card,
.theme-twotone .totals, .theme-twotone .bot-move-side {
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f1 100%);
  border-color: rgba(163, 133, 96, 0.22);
}
.theme-twotone .notice { --nt: #1d6a50; --nt-bg: #eef6f1; --nt-line: #cfe3d8; }
.theme-twotone .notice.warn { --nt: #e8581c; --nt-bg: #fff4ee; --nt-line: #ffd6c2; }
.theme-twotone .notice.bad { --nt: #d3392b; --nt-bg: #fff1ef; --nt-line: #f6cfca; }
.theme-twotone .notice.good { --nt: #12955a; --nt-bg: #edf9f2; --nt-line: #c6ecd6; }
