:root {
  --bg: #f4efe6;
  --paper: rgba(255, 252, 247, 0.82);
  --paper-strong: #fffaf1;
  --ink: #1f2a1e;
  --muted: #5f675d;
  --line: rgba(31, 42, 30, 0.1);
  --accent: #d86d2a;
  --accent-deep: #a74910;
  --accent-soft: rgba(216, 109, 42, 0.12);
  --success: #1d7a51;
  --pending: #a45b18;
  --idle: #68715f;
  --shadow: 0 28px 60px rgba(73, 52, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 10% 10%, rgba(216, 109, 42, 0.22), transparent 25%),
    radial-gradient(circle at 90% 18%, rgba(34, 112, 75, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf6ee 0%, #f2eadf 100%);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "SF Mono", "JetBrains Mono", monospace;
}

.app-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 60px;
}

.background-orbit {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.45;
  pointer-events: none;
}

.orbit-a {
  width: 320px;
  height: 320px;
  top: 90px;
  right: -80px;
  background: rgba(216, 109, 42, 0.22);
}

.orbit-b {
  width: 260px;
  height: 260px;
  left: -60px;
  bottom: 120px;
  background: rgba(51, 118, 82, 0.16);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a,
.link-chip,
.status-badge {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  backdrop-filter: blur(18px);
}

.layout-home,
.layout-dashboard,
.simple-page {
  display: grid;
  gap: 24px;
}

.hero-card,
.panel {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card,
.panel {
  border-radius: 28px;
  padding: 30px;
}

.hero-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 100%;
}

.hero-card-landing {
  padding-top: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 36px;
  align-items: stretch;
}

.hero-grid-landing {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 30px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-card h1,
.panel h1,
.panel h2 {
  margin: 0;
  line-height: 1.08;
}

.hero-card h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.9rem);
  max-width: 11ch;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.lede.compact {
  max-width: 44ch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-pills,
.link-row,
.claim-grid,
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-pills span,
.steps article {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.hero-pills span {
  padding: 10px 14px;
  color: var(--muted);
}

.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-steps article,
.hero-proof span,
.login-facts span {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-steps article {
  padding: 18px 18px 16px;
}

.hero-steps article strong,
.login-card h2 {
  margin: 0;
}

.hero-steps article p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-proof,
.login-facts {
  display: grid;
  gap: 10px;
}

.hero-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-proof span,
.login-facts span {
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.55;
}

.login-card {
  margin-top: 4px;
  display: grid;
  align-content: start;
  gap: 14px;
  width: 100%;
  min-height: 100%;
  padding: 28px;
  border-radius: 28px;
  background: var(--paper-strong);
  border: 1px solid rgba(216, 109, 42, 0.18);
  box-shadow: 0 24px 42px rgba(184, 77, 22, 0.1);
}

.login-card-landing {
  gap: 16px;
}

.login-card h2 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.2;
}

label,
.meta-label,
.helper {
  font-size: 0.95rem;
  color: var(--muted);
}

input {
  width: 100%;
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 42, 30, 0.12);
  background: white;
  font-size: 1.08rem;
  color: var(--ink);
}

button {
  border: none;
  border-radius: 999px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #e47a31, #b84d16);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 28px rgba(184, 77, 22, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid rgba(31, 42, 30, 0.14);
  box-shadow: none;
}

.form-error,
.flash-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(184, 77, 22, 0.1);
  color: var(--accent-deep);
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.dashboard-head h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.status-pending {
  color: var(--pending);
}

.status-success {
  color: var(--success);
}

.status-idle,
.status-plain {
  color: var(--idle);
}

.token-block {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.76), rgba(255,248,238,0.95));
  border: 1px solid rgba(216, 109, 42, 0.18);
  margin-bottom: 18px;
}

.copy-wrap {
  display: grid;
  gap: 12px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-form {
  margin: 0;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  border-radius: 24px;
  padding: 20px;
  background: #1d221f;
  color: #f8f4ea;
  line-height: 1.65;
  font-size: 0.98rem;
}

.note-panel blockquote {
  margin: 20px 0 0;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(216, 109, 42, 0.08);
  border-left: 4px solid var(--accent);
  font-size: 1.14rem;
  line-height: 1.75;
}

.history-count {
  color: var(--muted);
  font-size: 0.94rem;
}

.history-list {
  display: grid;
  gap: 16px;
}

.history-item {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.history-head,
.history-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-head {
  margin-bottom: 14px;
}

.history-title-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.history-time {
  color: var(--muted);
  font-size: 0.94rem;
}

.history-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.history-meta-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.85);
  border: 1px solid var(--line);
}

.history-meta-grid code {
  display: block;
  margin-top: 6px;
  font-size: 0.94rem;
  line-height: 1.5;
  word-break: break-word;
}

.history-meta-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
}

.history-note {
  margin: 14px 0 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(216, 109, 42, 0.08);
  line-height: 1.75;
}

.claim-grid div {
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
}

.steps article {
  flex: 1 1 220px;
  padding: 18px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-steps,
  .hero-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero-card,
  .panel {
    padding: 22px;
  }

  .dashboard-head,
  .panel-header,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-card h1 {
    max-width: 9ch;
  }
}
