:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e9;
  --blue: #006edb;
  --blue-light: #edf5ff;
  --green: #237548;
  --green-light: #edf7ef;
  --amber: #92600a;
  --amber-light: #fff6e5;
  --red: #b83d38;
  --radius: 22px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.015em;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #66aaff;
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -0.055em;
  font-weight: 650;
}
h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 620;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
small {
  font-size: 12px;
}
svg {
  display: block;
  flex: none;
}
strong {
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
.muted,
.caption {
  color: var(--muted);
}
.caption {
  font-size: 13px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.positive {
  color: var(--green);
}
.nowrap {
  white-space: nowrap;
}
.spacer {
  flex: 1;
}
.stack {
  display: grid;
  gap: 18px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wrap {
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.gap-small {
  gap: 8px;
}
.mt {
  margin-top: 24px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: #fff;
  padding: 10px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  height: 76px;
  padding: 0 max(30px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  gap: 34px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e8e8ed;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 630;
  letter-spacing: -0.04em;
  flex: none;
}
.brand-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 29px;
  height: 31px;
  background: var(--ink);
  color: #fff;
  border-radius: 9px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}
.brand-symbol span {
  font-size: 12px;
  position: absolute;
  right: 3px;
  top: 1px;
}
.topbar nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 6px;
}
.nav-button {
  background: transparent;
  padding: 0 19px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 550;
}
.nav-button:hover {
  color: var(--ink);
}
.nav-button.active {
  color: var(--ink);
  border-color: var(--ink);
}
.account-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eeeef1;
  color: #515154;
  display: grid;
  place-items: center;
}
.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  padding: 6px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a5a5ac;
  flex: none;
}
.dot.online {
  background: #31a264;
}
.dot.waiting {
  background: #d2973b;
}
.app {
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - 155px);
  padding: 48px 28px 60px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 550;
  text-transform: uppercase;
  margin-bottom: 11px;
}
.page-heading p.subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}
.app-footer {
  max-width: 1064px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.app-footer span:first-child {
  font-weight: 600;
  color: #555;
}
.app-footer button {
  margin-left: auto;
}
.notice {
  max-width: 1064px;
  margin: 20px auto -20px;
  padding: 14px 18px;
  border: 1px solid #f1d8b2;
  border-radius: 12px;
  background: var(--amber-light);
  color: #765413;
  font-size: 14px;
}
.notice.error {
  color: #922d29;
  background: #fff1f0;
  border-color: #edcfcd;
}
.notice .text-button {
  color: inherit;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 13px 22px;
  border-radius: 40px;
  background: #252528;
  color: #fff;
  box-shadow: 0 8px 32px #0002;
  z-index: 60;
  font-size: 14px;
}
.loading {
  display: grid;
  place-items: center;
  gap: 18px;
  min-height: 420px;
  color: var(--muted);
}
.spinner {
  width: 21px;
  height: 21px;
  border: 2px solid #ddd;
  border-top-color: #444;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: 30px;
  background: var(--blue);
  color: #fff;
  font-weight: 550;
  line-height: 1.35;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #005fbe;
}
.button:active {
  transform: scale(0.98);
}
.button.secondary {
  background: #eeeef2;
  color: var(--ink);
}
.button.secondary:hover {
  background: #e4e4e9;
}
.button.white {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button.dark {
  background: var(--ink);
  color: #fff;
}
.button.small {
  font-size: 13px;
  padding: 8px 14px;
}
.button.danger {
  background: #fff0ef;
  color: var(--red);
}
.text-button {
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
}
.text-button:hover {
  text-decoration: underline;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover {
  background: #f0f0f3;
}
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid #ebebee;
  border-radius: var(--radius);
  padding: 26px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.card-header p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.metric {
  padding: 23px 25px;
}
.metric-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 13px;
}
.metric-value {
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -0.055em;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}
.metric-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 9px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 22px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 32px 0 18px;
}
.section-title h2 {
  font-size: 22px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 20px;
  color: var(--muted);
  background: #f0f0f3;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.pill.green {
  background: var(--green-light);
  color: var(--green);
}
.pill.amber {
  background: var(--amber-light);
  color: var(--amber);
}
.pill.blue {
  background: var(--blue-light);
  color: var(--blue);
}
.pill.red {
  background: #fff0ef;
  color: var(--red);
}
.empty {
  padding: 44px 18px;
  text-align: center;
}
.empty-icon {
  height: 58px;
  width: 58px;
  border-radius: 17px;
  background: #f5f5f7;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  color: #888892;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto 22px;
}
.empty.compact {
  padding: 28px 18px;
}
.empty.compact p {
  margin-bottom: 0;
}
.error-screen {
  padding: 80px 20px;
  text-align: center;
}
.error-screen p {
  color: var(--muted);
  margin: 12px 0 24px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 206px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.project-card:hover {
  box-shadow: 0 8px 28px #00000006;
  border-color: #d4d4dd;
}
.project-card h3 {
  font-size: 19px;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-path {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
.project-card .project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.folder-icon {
  color: #8b91a0;
}
.model-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.model-tag span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  background: #f1f1f4;
  flex: none;
}
.service-icon.claude {
  color: #b86542;
  background: #faf0e9;
}
.service-icon.codex {
  color: #33343b;
  background: #ededf0;
}
.service-icon.small {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  font-size: 13px;
}
.model-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.model-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.model-row:last-child {
  padding-bottom: 0;
}
.model-copy {
  min-width: 0;
  flex: 1;
}
.model-copy b {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-copy small {
  color: var(--muted);
  font-size: 12px;
}
.price-text {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.price-text small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 11px;
}
.onboarding {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
  background: linear-gradient(120deg, #fff, #f9fbff);
  margin-bottom: 26px;
}
.onboarding h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.onboarding p {
  color: var(--muted);
  font-size: 14px;
}
.setup-steps {
  display: grid;
  gap: 17px;
}
.setup-step {
  display: flex;
  gap: 13px;
  align-items: center;
}
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eceef4;
  color: var(--muted);
  font-size: 12px;
  flex: none;
}
.setup-step.done .step-number {
  background: var(--green-light);
  color: var(--green);
}
.setup-step b {
  font-size: 13px;
}
.setup-step p {
  font-size: 12px;
  margin-top: 1px;
}
.setup-step .button {
  margin-left: auto;
}
.balance-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}
.balance-inline strong {
  color: var(--ink);
  display: block;
  font-size: 19px;
  letter-spacing: -0.04em;
}
.rate-footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.7;
}
.earn-hero {
  padding: 34px;
  background: linear-gradient(115deg, #fff 45%, #f0f6f3);
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 24px;
}
.earn-hero .earning {
  font-size: 54px;
  letter-spacing: -0.07em;
  line-height: 1.1;
  font-weight: 620;
  margin: 13px 0;
}
.earn-hero .earn-detail {
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  border-left: 1px solid #dce4df;
  padding-left: 36px;
}
.earn-detail b {
  display: block;
  font-size: 22px;
  margin: 8px 0;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.source-card {
  padding: 27px;
}
.source-card .service-icon {
  width: 43px;
  height: 43px;
  font-size: 24px;
}
.source-card p {
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--muted);
}
.source-card .source-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
}
.source-detail dt {
  font-size: 12px;
  color: var(--muted);
}
.source-detail dd {
  overflow-wrap: anywhere;
  margin: 6px 0 0;
  font-size: 14px;
}
.source-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 30px;
}
.balance-card {
  padding: 30px;
  min-height: 220px;
}
.balance-card .metric-value {
  font-size: 44px;
  margin: 18px 0 12px;
}
.balance-card .button {
  margin-top: 22px;
}
.fund-breakdown {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.fund-breakdown b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  margin-top: 3px;
}
.tab-row {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tab-row button {
  background: transparent;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
}
.tab-row button.active {
  border-color: var(--ink);
  color: var(--ink);
}
.table-wrap {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
.data-table th {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  padding: 0 14px 13px;
}
.data-table td {
  padding: 16px 14px;
  border-top: 1px solid #efeff2;
}
.data-table th:first-child,
.data-table td:first-child {
  padding-left: 0;
}
.data-table th:last-child,
.data-table td:last-child {
  padding-right: 0;
  text-align: right;
}
.data-table .subline {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.record-list {
  display: grid;
  gap: 0;
}
.record {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.record:first-child {
  border-top: 0;
}
.record:last-child {
  padding-bottom: 0;
}
.record .record-copy {
  flex: 1;
  min-width: 0;
}
.record b {
  font-size: 13px;
}
.record small {
  overflow-wrap: anywhere;
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.login-view {
  min-height: 580px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px 0;
}
.login-view .brand-symbol {
  margin: 0 auto 34px;
  width: 61px;
  height: 64px;
  border-radius: 19px;
  font-size: 50px;
}
.login-view .brand-symbol span {
  font-size: 25px;
  right: 5px;
  top: 2px;
}
.login-view h1 {
  font-size: 58px;
  max-width: 660px;
}
.login-view .subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 22px auto 28px;
  max-width: 530px;
}
.login-view .row {
  justify-content: center;
}
.login-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
.login-points {
  display: flex;
  gap: 34px;
  margin-top: 52px;
  font-size: 12px;
  color: var(--muted);
  justify-content: center;
}
.pair-code {
  font:
    600 31px/1.2 ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.18em;
  background: #f5f5f7;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}
.pair-card {
  border-color: #a8ccef;
  background: #f8fbff;
  margin-bottom: 24px;
}
.pair-card p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 14px;
}
.instruction {
  counter-increment: instruction;
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.instruction:before {
  content: counter(instruction);
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #eceef2;
  font-size: 12px;
  flex: none;
}
.instruction:last-child {
  border-bottom: 0;
}
.instruction p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.code-block {
  position: relative;
  background: #f5f5f7;
  border: 1px solid var(--line);
  padding: 14px 45px 14px 14px;
  border-radius: 11px;
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
.code-block button {
  position: absolute;
  right: 8px;
  top: 10px;
}
.device-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
}
.device-row:first-child {
  border-top: 0;
}
.device-row b {
  font-size: 14px;
}
.device-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
dialog {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 50px);
  color: var(--ink);
  box-shadow: 0 24px 100px #0003;
  background: white;
}
dialog::backdrop {
  background: #16162155;
  backdrop-filter: blur(5px);
}
.dialog-inner {
  padding: 30px;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.dialog-heading h2 {
  font-size: 25px;
}
.dialog-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.65;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.field {
  display: grid;
  gap: 8px;
  margin: 17px 0;
  font-size: 13px;
  font-weight: 550;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d2d2d8;
  border-radius: 11px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
  font-weight: 400;
  min-height: 43px;
}
.field textarea {
  min-height: 88px;
  resize: vertical;
}
.field small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.segmented {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.segmented button {
  padding: 11px 17px;
  background: #f5f5f7;
  border-radius: 10px;
  color: var(--ink);
  border: 1px solid transparent;
}
.segmented button.active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0;
}
.check-row input {
  margin-top: 4px;
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  flex: none;
}
.check-row small {
  color: var(--muted);
}
.help-box {
  padding: 15px 16px;
  background: #f5f5f7;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.help-box strong {
  color: var(--ink);
}
.form-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 15px;
}
.country-select {
  margin-top: 18px;
}
.account-menu {
  display: grid;
  gap: 4px;
}
.account-menu button,
.account-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.account-menu > *:last-child {
  border: 0;
}
.account-id {
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin: 0 0 18px;
}
.admin-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.admin-nav button {
  padding: 9px 17px;
  border-radius: 30px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.admin-nav button.active {
  background: var(--ink);
  color: #fff;
}
.admin-heading h1 {
  font-size: 37px;
}
.alert-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  background: var(--amber-light);
  border: 1px solid #f2e3c7;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13px;
  margin-bottom: 24px;
}
.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.admin-summary .metric-value {
  font-size: 25px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.filter-row select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
  background: #fff;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  font-size: 13px;
}
.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
}
.detail-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.rate-version {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (min-width: 1500px) {
  .app {
    padding-top: 62px;
  }
}
@media (max-width: 900px) {
  .topbar {
    padding: 0 24px;
    gap: 20px;
  }
  .nav-button {
    padding: 0 12px;
  }
  .app {
    padding: 34px 24px 48px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .app-footer {
    margin: 0 24px;
  }
  .onboarding {
    padding: 27px;
    gap: 25px;
  }
  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .connection span:not(.dot) {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .earn-hero {
    gap: 25px;
  }
  .earn-hero .earn-detail {
    gap: 18px;
    padding-left: 24px;
  }
  .notice {
    margin: 16px 24px -10px;
  }
}
@media (max-width: 640px) {
  .topbar {
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    padding: 16px 20px 0;
    gap: 0;
  }
  .brand {
    font-size: 17px;
  }
  .brand-symbol {
    width: 26px;
    height: 28px;
    font-size: 23px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    height: 48px;
    justify-content: space-between;
    margin-top: 8px;
  }
  .nav-button {
    flex: 1;
    padding: 0 8px;
    font-size: 13px;
  }
  .account-actions {
    gap: 5px;
  }
  .connection {
    max-width: 125px;
  }
  .app {
    padding: 30px 18px 44px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 23px;
    gap: 14px;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .page-heading .subtitle {
    font-size: 14px;
  }
  .page-heading > .button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .card {
    padding: 22px;
    border-radius: 18px;
  }
  .metrics {
    gap: 8px;
    margin-bottom: 23px;
  }
  .metric {
    padding: 17px 13px;
  }
  .metric-label {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 9px;
  }
  .metric-value {
    font-size: 24px;
  }
  .metric-note {
    font-size: 10px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    min-height: 174px;
    padding: 20px;
  }
  .onboarding {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px;
  }
  .onboarding h2 {
    font-size: 25px;
  }
  .source-grid,
  .balance-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
  .earn-hero {
    display: block;
    padding: 26px;
  }
  .earn-hero .earning {
    font-size: 46px;
  }
  .earn-hero .earn-detail {
    margin: 25px 0 0;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid #dce4df;
    gap: 28px;
  }
  .balance-card .metric-value {
    font-size: 37px;
  }
  .balance-inline {
    gap: 8px;
    font-size: 11px;
  }
  .balance-inline strong {
    font-size: 17px;
  }
  .app-footer {
    margin: 0 18px;
    gap: 12px;
    font-size: 10px;
  }
  .login-view {
    min-height: 500px;
  }
  .login-view h1 {
    font-size: 43px;
  }
  .login-view .subtitle {
    font-size: 16px;
  }
  .login-points {
    gap: 16px;
    font-size: 11px;
  }
  .dialog-inner {
    padding: 25px;
  }
  .dialog-heading h2 {
    font-size: 23px;
  }
  .field-row {
    gap: 12px;
  }
  .notice {
    margin: 15px 18px -10px;
    font-size: 12px;
  }
  .admin-summary {
    gap: 10px;
  }
  .admin-summary .metric {
    padding: 18px;
  }
  .admin-summary .metric-value {
    font-size: 25px;
  }
  .admin-nav {
    gap: 3px;
  }
  .admin-nav button {
    padding: 8px 12px;
    font-size: 12px;
  }
  .filter-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .table-wrap {
    margin: 0 -3px;
    padding: 0 3px;
  }
  .data-table td {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .source-bottom {
    flex-wrap: wrap;
  }
  .pair-code {
    font-size: 27px;
  }
  .login-view .row {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.install-command summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.install-command .code-block {
  max-height: 180px;
  overflow: auto;
}
