:root {
  color-scheme: dark;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  background: #101013;
  color: #f3f2f6;
  line-height: 1.55;
  --accent: #d9ff83;
  --muted: #b5b2c0;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.portal {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 32rem;
  padding: clamp(2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(ellipse at 80% 110%, #323252, transparent 65%), #202033;
  border-right: 1px solid #343444;
}
.brand {
  align-self: start;
  position: absolute;
  top: clamp(2rem, 6vw, 5rem);
  padding: .45rem .65rem;
  border: 1px solid #55556a;
  border-radius: .35rem;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-decoration: none;
}
.brand span { color: var(--accent); margin-left: .5rem; }
.intro-text h1 {
  font-size: clamp(3.25rem, 6.7vw, 7rem);
  line-height: 1.05;
  letter-spacing: -.07em;
  margin: 0 0 1.5rem;
}
.intro-text p { color: #d8d6e4; margin: 0; }
.track {
  position: absolute;
  z-index: -1;
  inset: 62% auto auto 38%;
  width: 65rem;
  height: 26rem;
  transform: rotate(-31deg);
}
.track i {
  position: absolute;
  inset: calc(var(--lane) * 1.65rem);
  border: 1px solid #ae9de85c;
  border-radius: 18rem;
}
.track i:nth-child(1) { --lane: 0; }
.track i:nth-child(2) { --lane: 1; }
.track i:nth-child(3) { --lane: 2; border-color: #d9ff8399; }
.track i:nth-child(4) { --lane: 3; }
.account {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 6vw, 5rem);
}
.content { width: min(100%, 26rem); }
.tabs { display: flex; gap: .3rem; padding: .3rem; border-radius: .6rem; background: #202027; }
.tabs a {
  flex: 1;
  text-align: center;
  padding: .55rem;
  border-radius: .45rem;
  text-decoration: none;
  color: var(--muted);
}
.tabs a[aria-current] { color: #fff; background: #363542; }
h2 { margin: 1.55rem 0 1.25rem; font-size: 2rem; line-height: 1.25; }
label { display: block; margin: 1rem 0 .38rem; font-size: .9375rem; font-weight: 650; }
input, button { font: inherit; width: 100%; border-radius: .55rem; }
input {
  color: inherit;
  background: #1b1a21;
  border: 1px solid #42414e;
  padding: .78rem .9rem;
}
input::placeholder { color: #a6a3af; }
button {
  border: 1px solid transparent;
  margin-top: 1.45rem;
  background: var(--accent);
  color: #181e0c;
  padding: .78rem;
  font-weight: 750;
  cursor: pointer;
}
button:hover { filter: brightness(1.07); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint { color: var(--muted); overflow-wrap: anywhere; }
.error { padding: .85rem 1rem; border-radius: .55rem; }
.error { background: #361e25; color: #ffb8c5; }
.secondary { color: #fff; background: #292831; border-color: #42414e; }
.optional { font-weight: 450; color: var(--muted); margin-left: .35rem; }
.code-hint { font-size: .875rem; margin: .4rem 0 0; }
.dashboard-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem clamp(1rem, 4vw, 3rem);
  padding: .85rem max(1.25rem, calc((100vw - 67rem) / 2));
  border-bottom: 1px solid #343444;
  background: #19191f;
}
.dashboard-bar .brand { position: static; align-self: center; }
.dashboard-bar nav { display: flex; gap: 1.1rem; }
.dashboard-bar nav a { text-decoration: none; color: var(--muted); font-size: .9375rem; }
.dashboard-bar nav a:hover { color: #fff; }
.dashboard-bar form { margin-left: auto; }
.dashboard-bar button { margin: 0; padding: .45rem .7rem; font-size: .875rem; white-space: nowrap; }
.dashboard {
  display: grid;
  gap: 1.2rem;
  width: min(100% - 2.5rem, 67rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0;
}
.overview h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.overview > div > p { margin: .2rem 0 1.4rem; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.panel { padding: clamp(1.2rem, 3vw, 1.75rem); border-radius: .75rem; border: 1px solid #393848; background: #1c1b24; }
.panel h2 { margin: 0 0 .55rem; font-size: 1.25rem; }
.panel p { margin: .3rem 0 0; }
.metric { font-size: 1.5rem; color: var(--accent); font-weight: 750; }
.invite-heading { display: flex; gap: 1rem; justify-content: space-between; }
.invite-count { display: grid; justify-items: end; white-space: nowrap; }
.invitation button { width: auto; margin-top: .9rem; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.copy-row button { margin: 0; }
#copy-feedback:empty { display: none; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .9375rem; }
th, td { border-bottom: 1px solid #393848; padding: .7rem .85rem .7rem 0; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }

/* order & deploy */
.order-form button { width: auto; margin-top: 1rem; }
.radio-row {
  display: flex; gap: .65rem; align-items: flex-start;
  margin: .8rem 0 0; padding: .75rem .9rem;
  border: 1px solid #393848; border-radius: .55rem; background: #20202b;
}
.radio-row input[type="radio"] { width: auto; margin-top: .35rem; accent-color: var(--accent); }
.radio-body strong { font-weight: 700; }
select {
  width: 100%; font: inherit; color: inherit; background: #1b1a21;
  border: 1px solid #42414e; border-radius: .55rem; padding: .72rem .9rem;
}
.events-title { margin: 1.4rem 0 .6rem; font-size: 1.05rem; }
.status-badge {
  display: inline-block; padding: .22rem .6rem; border-radius: 2rem;
  font-size: .8125rem; font-weight: 650; white-space: nowrap;
  border: 1px solid #42414e; color: var(--muted);
}
.status-succeeded { background: #1f3013; border-color: #4f7a24; color: #cfe9a3; }
.status-failed { background: #361e25; border-color: #7a3541; color: #ffb8c5; }
.status-deploying { background: #1c2a3f; border-color: #2f5b8f; color: #a9cdf3; }
.status-paid { background: #2b2a10; border-color: #7a7224; color: #efdf9c; }
.steps {
  display: flex; gap: .4rem; list-style: none; margin: 1.2rem 0 0; padding: 0;
  counter-reset: step;
}
.steps li {
  flex: 1; text-align: center; font-size: .875rem; color: var(--muted);
  padding: .5rem .3rem; border-radius: .45rem; border: 1px solid #393848;
}
.steps li.done { color: #cfe9a3; border-color: #4f7a24; }
.steps li.current { color: #fff; border-color: var(--accent); }
.order-head { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.order-side { display: grid; justify-items: end; gap: .3rem; white-space: nowrap; }
.pay-methods { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.pay-methods form { margin: 0; }
.pay-methods button { margin: 0; width: auto; padding: .6rem 1.1rem; }
.qr-area { margin-top: 1rem; text-align: center; }
.qr-area img { background: #fff; border-radius: .5rem; padding: .5rem; }
.stage-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .9rem; }
.chip {
  font-size: .8125rem; padding: .28rem .6rem; border-radius: 2rem;
  border: 1px solid #393848; color: var(--muted);
}
.chip.done { color: #cfe9a3; border-color: #4f7a24; }
.chip.current { color: #181e0c; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.events { list-style: none; margin: 0; padding: 0; max-height: 16rem; overflow: auto; }
.events li {
  display: flex; gap: .6rem; padding: .42rem 0; font-size: .875rem;
  border-bottom: 1px solid #2a2937;
}
.event-time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ok-line { color: #cfe9a3; margin-top: .8rem; }
@media (max-width: 720px) {
  .portal { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .intro { min-height: 16rem; padding-top: 5.5rem; border: 0; }
  .intro-text h1 { font-size: 2.75rem; margin-bottom: .75rem; }
  .intro-text br { display: none; }
  .account { align-items: start; padding-bottom: 3rem; }
  .panel-grid { grid-template-columns: 1fr; }
}
