/* Crypie design system: Apple-like, light & dark, system fonts. */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue",
    Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #f5f5f7;
  --card: #ffffff;
  --card-2: #fafafa;
  --fill: rgba(120, 120, 128, 0.12);
  --fill-2: rgba(120, 120, 128, 0.2);
  --hairline: rgba(60, 60, 67, 0.12);
  --hairline-strong: rgba(60, 60, 67, 0.24);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --accent: #0071e3;
  --accent-tint: rgba(0, 113, 227, 0.12);
  --green: #1f9d4f;
  --green-tint: rgba(52, 199, 89, 0.16);
  --red: #d7261a;
  --red-tint: rgba(255, 59, 48, 0.14);
  --orange: #c2410c;
  --orange-tint: rgba(255, 149, 0, 0.18);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --card: #1c1c1e;
    --card-2: #2c2c2e;
    --fill: rgba(120, 120, 128, 0.24);
    --fill-2: rgba(120, 120, 128, 0.36);
    --hairline: rgba(84, 84, 88, 0.6);
    --hairline-strong: rgba(84, 84, 88, 0.9);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --accent: #0a84ff;
    --accent-tint: rgba(10, 132, 255, 0.2);
    --green: #30d158;
    --green-tint: rgba(48, 209, 88, 0.18);
    --red: #ff453a;
    --red-tint: rgba(255, 69, 58, 0.18);
    --orange: #ff9f0a;
    --orange-tint: rgba(255, 159, 10, 0.2);
    --nav-bg: rgba(22, 22, 23, 0.72);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --fill: rgba(120, 120, 128, 0.24);
  --fill-2: rgba(120, 120, 128, 0.36);
  --hairline: rgba(84, 84, 88, 0.6);
  --hairline-strong: rgba(84, 84, 88, 0.9);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --accent: #0a84ff;
  --accent-tint: rgba(10, 132, 255, 0.2);
  --green: #30d158;
  --green-tint: rgba(48, 209, 88, 0.18);
  --red: #ff453a;
  --red-tint: rgba(255, 69, 58, 0.18);
  --orange: #ff9f0a;
  --orange-tint: rgba(255, 159, 10, 0.2);
  --nav-bg: rgba(22, 22, 23, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; font-weight: 600; }
h1 { font-size: 34px; letter-spacing: -0.025em; font-weight: 700; line-height: 1.15; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0; }
p + p { margin-top: 0.6em; }

.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* -- Navigation ----------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 980px;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--fill); color: var(--text); text-decoration: none; }
.nav-links a.active { background: var(--text); color: var(--bg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--fill);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--fill-2); }
.icon-btn svg { width: 16px; height: 16px; }
:root[data-theme="dark"] .icon-sun, :root:not([data-theme]) .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .icon-sun { display: block; }
  :root:not([data-theme]) .icon-moon { display: none; }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .icon-sun { display: none; }
  :root:not([data-theme]) .icon-moon { display: block; }
}

/* -- Layout ---------------------------------------------------------------------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}
.page-header { margin-bottom: 28px; }
.page-header .subtitle { color: var(--text-2); font-size: 17px; margin-top: 6px; max-width: 70ch; }
.page-header .actions { margin-top: 16px; }

.stack > * + * { margin-top: 24px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .stack > * { min-width: 0; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 28px; }
  .page { padding-top: 24px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding: 8px 14px; row-gap: 4px; }
  .nav-links { order: 3; flex-basis: 100%; margin-left: -4px; padding-bottom: 4px; }
  .brand { font-size: 17px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .card { padding: 18px; }
}

/* -- Cards ----------------------------------------------------------------------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
}
.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.card-header h2, .card-header h3 { flex: 1; }
.card-header .more { font-size: 14px; white-space: nowrap; }
.card-desc { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.card .card + .card { margin-top: 14px; }

.hero {
  background: var(--card);
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
}
.hero-row { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.hero .big-label { color: var(--text-2); font-size: 14px; font-weight: 500; }
.hero .big-value { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero .big-sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.hero-status { margin-left: auto; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 700px) {
  .hero { padding: 22px; }
  .hero .big-value { font-size: 36px; }
  .hero-status { margin-left: 0; align-items: flex-start; }
}

/* -- Stats ----------------------------------------------------------------------- */

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--fill); }
.stat .label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.stat .value { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; }
.stat .sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }

/* -- Tables ---------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px 10px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
td { padding: 11px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.dim td { opacity: 0.5; }
td .sub { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; white-space: nowrap; }
td .sub.clip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
td strong { font-weight: 600; }

/* -- Pills & badges -------------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  background: var(--fill);
  color: var(--text);
}
.pill-green { background: var(--green-tint); color: var(--green); }
.pill-red { background: var(--red-tint); color: var(--red); }
.pill-blue { background: var(--accent-tint); color: var(--accent); }
.pill-orange { background: var(--orange-tint); color: var(--orange); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-lg { font-size: 14px; padding: 6px 14px; }

/* -- Buttons --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 980px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: var(--fill);
  color: var(--text);
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--fill-2); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent); opacity: 0.9; }
.btn-tint { background: var(--accent-tint); color: var(--accent); }
.btn-tint:hover { background: var(--accent-tint); opacity: 0.85; }
.btn-danger { background: var(--red-tint); color: var(--red); }
.btn-danger:hover { background: var(--red-tint); opacity: 0.85; }
.btn-success { background: var(--green-tint); color: var(--green); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* -- Forms ----------------------------------------------------------------------- */

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
input, select, textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
textarea { width: 100%; resize: vertical; line-height: 1.5; }
textarea.code { font-family: var(--mono); font-size: 13px; min-height: 24rem; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.form-row label { flex: 1 1 140px; }
.form-help { color: var(--text-3); font-size: 13px; margin-top: 10px; }

/* -- Notices --------------------------------------------------------------------- */

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--fill);
  font-size: 14px;
  line-height: 1.5;
}
.notice .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.notice .body { flex: 1; }
.notice .body form, .notice .body .btn { margin-top: 10px; }
.notice-info { background: var(--accent-tint); color: var(--text); }
.notice-info .icon { color: var(--accent); }
.notice-ok { background: var(--green-tint); }
.notice-ok .icon { color: var(--green); }
.notice-warn { background: var(--orange-tint); }
.notice-warn .icon { color: var(--orange); }
.notice-error { background: var(--red-tint); }
.notice-error .icon { color: var(--red); }

/* -- Misc components ------------------------------------------------------------- */

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--fill);
  gap: 2px;
}
.segmented a {
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.segmented a:hover { text-decoration: none; color: var(--text); }
.segmented a.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }

.empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-2);
}
.empty .title { font-weight: 600; color: var(--text); font-size: 16px; }
.empty .btn { margin-top: 14px; }
.empty svg { width: 36px; height: 36px; color: var(--text-3); margin-bottom: 10px; }

.score-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--fill);
  overflow: hidden;
  margin: 10px 0 6px;
}
.score-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline-strong);
}
.score-bar .fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.score-bar .fill.pos { left: 50%; background: var(--green); }
.score-bar .fill.neg { right: 50%; background: var(--red); }

.prose { white-space: pre-wrap; line-height: 1.6; }
.report {
  white-space: pre-wrap;
  background: var(--fill);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
  font-size: 14px;
}

details.advanced summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
details.advanced summary::-webkit-details-marker { display: none; }
details.advanced summary::before { content: "›"; display: inline-block; transition: transform 0.15s ease; font-size: 18px; line-height: 1; }
details.advanced[open] summary::before { transform: rotate(90deg); }
details.advanced > *:not(summary) { margin-top: 14px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--text-2); margin: 0; }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.list li:first-child { padding-top: 0; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 8px; background: var(--fill); }

.news-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.news-item:last-child { border-bottom: 0; }
.news-item.dim { opacity: 0.5; }
.news-item .meta { color: var(--text-2); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.news-item .title { font-weight: 600; font-size: 15px; color: var(--text); }
.news-item .title:hover { color: var(--accent); }
.news-item .summary { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.news-item .side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; white-space: nowrap; }
@media (max-width: 600px) {
  .news-item { grid-template-columns: 1fr; }
  .news-item .side { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

footer.site {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 40px;
  color: var(--text-3);
  font-size: 13px;
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}

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

/* -- Settings page ---------------------------------------------------------------- */

.settings-nav { flex-wrap: wrap; }
.settings-list { border-top: 1px solid var(--hairline); }
.setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 8px 28px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.setting-text label { font-size: 15px; font-weight: 500; color: var(--text); }
.setting-help { color: var(--text-2); font-size: 13px; margin-top: 3px; max-width: 60ch; }
.setting-default { color: var(--text-3); font-size: 12px; margin-top: 5px; }
.setting-error { color: var(--red); font-size: 13px; font-weight: 500; margin-top: 5px; }
.setting-control { display: flex; flex-direction: column; align-items: flex-end; }
.setting-control > input, .setting-control > select, .setting-control > textarea, .setting-control .unit-input { width: 100%; }
.setting.has-error input, .setting.has-error select, .setting.has-error textarea { border-color: var(--red); }
@media (max-width: 640px) {
  .setting { grid-template-columns: 1fr; }
  .setting-control { align-items: stretch; }
}

.unit-input { display: flex; align-items: center; gap: 8px; }
.unit-input input { flex: 1; text-align: right; }
.unit-input .unit { color: var(--text-2); font-size: 14px; white-space: nowrap; min-width: 1.2em; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex-direction: row; font-weight: 500; color: var(--text); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 980px;
  background: var(--fill-2);
  transition: background 0.2s ease;
  flex: none;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease;
}
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--accent-tint); }
.switch .state { font-size: 14px; color: var(--text-2); min-width: 2.2em; }

.seg-radio { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--fill); gap: 2px; }
.seg-radio label { position: relative; flex-direction: row; cursor: pointer; margin: 0; }
.seg-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-radio span { display: inline-block; padding: 6px 16px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: background 0.15s ease, color 0.15s ease; }
.seg-radio input:checked + span { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.seg-radio input:checked[value="live"] + span { color: var(--red); }
.seg-radio input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-tint); }
.seg-radio label.disabled { cursor: not-allowed; }
.seg-radio label.disabled span { opacity: 0.45; }

/* -- Login flow ------------------------------------------------------------------------ */
.auth-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.auth-wrap { width: 100%; max-width: 420px; padding: 24px 16px; display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.auth-brand svg { width: 32px; height: 32px; }
.auth-card h1 { font-size: 24px; margin-bottom: 2px; }
.auth-sub { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.auth-form input { width: 100%; }
.auth-form .actions { margin-top: 2px; }
.btn-block { width: 100%; justify-content: center; }
.code-input { font-family: var(--mono); font-size: 22px; letter-spacing: 0.25em; text-align: center; }
.auth-steps { margin: 0 0 14px 20px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.auth-steps li + li { margin-top: 6px; }
.qr { display: flex; justify-content: center; padding: 14px; border-radius: var(--radius-sm); background: #fff; color: #000; }
.qr svg { width: 200px; height: 200px; display: block; }
.auth-details { margin-top: 14px; font-size: 14px; }
.auth-details summary { cursor: pointer; color: var(--accent); }
.auth-details p { margin-top: 8px; }
.auth-secret { font-size: 15px; letter-spacing: 0.08em; word-break: break-all; user-select: all; }
.recovery-codes { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recovery-codes li { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--fill); font-size: 15px; text-align: center; user-select: all; }
.auth-below { display: flex; justify-content: center; }

/* Cycle explanation on /trading */
.cycle { padding: 14px; border: 1px solid var(--hairline); border-radius: 12px; }
.cycle-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.checks { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.checks li { padding: 2px 0; }
.checks .mark { display: inline-block; width: 16px; font-weight: 600; }
.checks li.ok .mark { color: var(--green); }
.checks li.nok .mark { color: var(--red); }
.checks.compact { font-size: 12px; margin-top: 2px; }
