:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #2d2619;
  background: #f3f0e9;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f3f0e9; }
button, input { font: inherit; }
button { touch-action: manipulation; }
.hidden { display: none !important; }

.hero {
  color: #fff8e6;
  background: radial-gradient(circle at 82% -30%, #8c642b 0, transparent 44%), linear-gradient(135deg, #19140d, #372819);
  border-bottom: 1px solid #b8863c;
}
.hero-inner { max-width: 1080px; margin: auto; padding: 44px 24px 38px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.eyebrow { margin: 0 0 8px; color: #dab879; font-size: 12px; letter-spacing: .18em; font-weight: 800; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; letter-spacing: -.03em; }
.intro { max-width: 650px; margin: 14px 0 0; color: #d9d0bd; line-height: 1.7; }

.layout { max-width: 1080px; margin: -12px auto 0; padding: 0 24px 56px; }
.card { background: #fffdf9; border: 1px solid #ded5c5; border-radius: 18px; padding: 24px; margin: 18px 0; box-shadow: 0 12px 35px rgba(49, 34, 12, .06); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head > div { display: flex; align-items: center; gap: 10px; }
.section-head h2 { margin: 0; font-size: 20px; }
.step { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #6d4805; background: #f4e4bf; font-size: 12px; font-weight: 900; }
.hint, .muted { color: #7c7467; }
.hint { font-size: 13px; }
.muted { line-height: 1.7; }

.field { display: grid; gap: 8px; color: #5f574b; font-size: 14px; }
.field input { width: 100%; border: 1px solid #cec4b4; background: #fff; color: #251e14; border-radius: 11px; padding: 12px 13px; outline: none; }
.field input:focus { border-color: #b88020; box-shadow: 0 0 0 3px rgba(184, 128, 32, .14); }
.input-unit { display: flex; align-items: center; border: 1px solid #cec4b4; background: #fff; border-radius: 11px; overflow: hidden; }
.input-unit input { border: 0; box-shadow: none !important; min-width: 0; }
.input-unit b { padding: 0 12px; color: #817664; font-size: 12px; white-space: nowrap; }
.grid-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 14px; margin-bottom: 14px; }

.button { min-height: 46px; border: 1px solid transparent; border-radius: 11px; padding: 11px 18px; font-weight: 800; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-primary { color: #211703; background: #e3a20a; border-color: #cc8f02; }
.button-secondary { color: #3b3020; background: #f3eee3; border-color: #d7cbb8; }
.button-danger { color: #8c251d; background: #fff4f1; border-color: #e3b5ae; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; line-height: 1.55; color: #4e463a; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: #b47808; }
.check-row.compact { margin-top: 10px; color: #71695d; font-size: 13px; }
.notice { padding: 13px 15px; margin: 0 0 17px; border-left: 3px solid #c28a26; border-radius: 8px; background: #faf3e4; color: #63563e; line-height: 1.6; font-size: 14px; }
.message { min-height: 21px; margin: 12px 0 0; color: #645c50; }
.message-error { color: #ae2f24; }
.message-success { color: #187344; }

.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid #d3c4aa; border-radius: 999px; background: #f5ecdb; color: #72531e; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge-muted { background: #ece8e0; border-color: #d9d3c9; color: #6f685d; }
.badge-ok { background: #e8f5ed; border-color: #abd3bc; color: #17633b; }
.badge-warn { background: #fff3d6; border-color: #e8cb83; color: #7d5507; }
.badge-danger { background: #fff0ed; border-color: #e6b6ae; color: #a43127; }
.wallet-address { padding: 12px 14px; border-radius: 11px; background: #f4f0e8; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.status-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #eee8de; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.metrics > div { min-width: 0; padding: 14px; border-radius: 12px; background: #f5f1e9; }
.metrics span { display: block; color: #81786b; font-size: 12px; margin-bottom: 6px; }
.metrics strong { display: block; overflow-wrap: anywhere; font-size: 16px; }
.metrics-public { margin: 0 0 18px; }
.listing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.listing { display: grid; gap: 5px; padding: 14px; border: 1px solid #e1d8c8; border-radius: 12px; background: #fffcf7; }
.listing span { color: #6d6252; font-size: 12px; }
.listing strong { font-size: 17px; }
.listing small { color: #9b8d78; }

.event-list { display: grid; gap: 0; }
.event { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid #eee7dc; }
.event:last-child { border-bottom: 0; }
.event time { color: #857b6b; font-size: 13px; }
.event strong { font-size: 14px; }
.event p { margin: 4px 0 0; color: #776e61; font-size: 13px; line-height: 1.5; }
.invite-result { display: grid; gap: 5px; padding: 15px; margin-top: 14px; border: 1px solid #d8bf86; border-radius: 12px; background: #fff7e6; }
.invite-result strong { font: 800 20px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px; border-bottom: 1px solid #ece5d9; text-align: left; white-space: nowrap; }
th { color: #7e7464; background: #f7f3ec; }
.mini-button { border: 1px solid #d8c9b1; border-radius: 8px; padding: 6px 10px; background: #fff8ea; color: #72501a; cursor: pointer; }
footer { padding: 24px; text-align: center; color: #8a8174; font-size: 12px; }

@media (max-width: 760px) {
  .hero-inner { padding: 32px 18px 30px; flex-direction: column; }
  .layout { padding: 0 14px 40px; }
  .card { padding: 18px; border-radius: 15px; }
  .grid-three, .grid-two { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div:last-child { grid-column: 1 / -1; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 1fr; gap: 5px; }
  .button-row .button { flex: 1; }
}

@media (max-width: 390px) {
  .section-head { align-items: flex-start; }
  .metrics { grid-template-columns: 1fr; }
  .metrics > div:last-child { grid-column: auto; }
  .listing-grid { grid-template-columns: 1fr; }
}
