:root {
  color-scheme: dark;
  --background: #151715;
  --sidebar: #191b18;
  --panel: #20231e;
  --line: #3a3f34;
  --text: #f1f2e9;
  --muted: #adb2a4;
  --lime: #d1ed95;
  --ink: #202817;
  font: 16px/1.55 "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.sidebar { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: 232px; padding: 28px 18px 22px; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; margin: 0 9px 54px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--lime); color: var(--ink); border-radius: 13px; font-size: 1.3rem; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.15; font-size: 1.15rem; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .8rem; }
nav { display: grid; gap: 7px; }
nav :is(a, button) { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .9rem; text-align: left; }
nav :is(a, button):hover, nav .current { background: #30382a; color: var(--lime); }
.nav-icon { display: inline-grid; width: 18px; place-items: center; font-weight: 650; }
.sidebar-footer { margin: auto 9px 0; color: var(--muted); font-size: .8rem; }
main { margin-left: 232px; min-width: 0; }
.masthead { min-height: 73px; padding: 13px 4.2%; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.mode, .count { border-radius: 99px; padding: 3px 11px; color: var(--lime); background: #333e2b; font-size: .85rem; }
.workspace { max-width: 1420px; margin: auto; padding: 34px 4.2% 48px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 231px; padding: 34px clamp(24px, 4.8vw, 66px); border: 1px solid #526044; border-radius: 21px; background: radial-gradient(ellipse at 89% 48%, #435637 0%, transparent 49%), linear-gradient(105deg, #282f23, #252e22 75%); }
.hero-copy { position: relative; z-index: 1; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.45rem, 4.6vw, 4.3rem); line-height: 1.12; letter-spacing: -.055em; }
.hero p { margin-top: 16px; color: #d0d7c7; }
.orbit { position: absolute; right: 7%; top: 50%; width: 243px; height: 243px; transform: translateY(-50%); color: var(--lime); }
.orbit i { position: absolute; inset: 14px; border: 1px solid #bdde8070; border-radius: 50%; transform: rotate(-30deg) scaleY(.44); }
.orbit i:nth-child(2) { transform: rotate(28deg) scaleY(.65); }
.orbit i:nth-child(3) { transform: rotate(90deg) scaleY(.82); }
.orbit b { display: grid; place-items: center; height: 100%; font-size: 5rem; font-weight: 400; text-shadow: 0 0 35px #bfdc8c79; }
.orbit::after { content: ""; position: absolute; top: 22%; right: 24%; width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 11px var(--lime); }
.panels { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.5fr); align-items: start; gap: 22px; margin: 22px 0; }
.panel { min-width: 0; padding: clamp(18px, 2.3vw, 29px); border: 1px solid var(--line); background: var(--panel); border-radius: 16px; }
h2 { font-size: 1.2rem; line-height: 1.4; }
#access-form { display: grid; gap: 12px; margin-top: 22px; }
label { color: var(--muted); font-size: .9rem; }
input { width: 100%; min-width: 0; background: #191c17; border: 1px solid #515847; border-radius: 8px; color: var(--text); min-height: 45px; padding: 9px 12px; }
input::placeholder { color: #a0a596; }
.primary, .secondary, .plain { border: 1px solid transparent; border-radius: 8px; min-height: 41px; padding: 7px 13px; }
.primary { color: var(--ink); background: var(--lime); font-weight: 700; min-height: 46px; }
.primary:not(:disabled):hover { background: #e0f6b3; }
.secondary { color: var(--text); background: #282d24; border-color: #505948; white-space: nowrap; }
.secondary:not(:disabled):hover { background: #343d2e; }
.plain { background: transparent; color: var(--lime); padding-inline: 4px; }
.plain:hover { text-decoration: underline; }
.privacy, .feedback { margin-top: 14px; font-size: .84rem; color: var(--muted); }
.feedback { color: var(--lime); }
.feedback[data-error] { color: #ffb4a5; }
.card-id { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 11px; }
.balance { margin: 13px 0 21px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); }
.balance p { display: flex; gap: 9px; align-items: baseline; }
.balance strong { color: var(--lime); font-size: 2.15rem; font-variant-numeric: tabular-nums; }
.history-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.search { display: flex; gap: 8px; margin: 17px 0 12px; }
.empty { min-height: 232px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; color: var(--muted); }
.empty span { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border: 1px solid #526044; border-radius: 15px; background: #2d3728; color: var(--lime); font-size: 1.4rem; }
.empty strong { color: var(--text); }
.empty p { font-size: .9rem; color: var(--muted); }
.tasks { list-style: none; padding: 0; margin: 0; }
.tasks > li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.task-progress { display: block; width: 100%; height: 7px; margin-top: 7px; accent-color: var(--lime); }
.task-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.task-name { overflow-wrap: anywhere; min-width: 0; }
.task-meta { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.task-status { flex: none; padding: 2px 8px; border-radius: 6px; font-size: .82rem; background: #33382f; color: #dadecf; }
.task-status[data-status="success"] { background: #34432a; color: #d2eda3; }
.task-status[data-status="running"] { background: #403a27; color: #ffe4a0; }
.task-status[data-status="failed"] { background: #48302e; color: #ffc1b6; }
.task-queue { margin-top: 10px; padding: 7px 11px; border-radius: 8px; background: #403a27; color: #ffe4a0; font-size: .9rem; }
details { margin-top: 8px; color: var(--muted); font-size: .86rem; }
summary { width: fit-content; cursor: pointer; }
details ol { padding-left: 1.4em; margin: 8px 0 0; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 17px; color: var(--muted); font-size: .85rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.help-dialog { width: min(600px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 0; color: var(--text); box-shadow: 0 16px 56px #0008; }
.help-dialog[open] { display: flex; flex-direction: column; }
.help-dialog::backdrop { background: #090b08bb; }
.help-dialog-header, .help-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px clamp(14px, 4vw, 26px); }
.help-close { min-width: 41px; font-size: 1.4rem; line-height: 1; }
.help-body { min-height: 0; overflow: auto; margin: 0; padding: 4px clamp(14px, 4vw, 26px) 16px; }
.help-steps { padding-left: calc(clamp(14px, 4vw, 26px) + 1.45em); }
.help-steps li + li { margin-top: 12px; }
.help-steps li::marker { color: var(--lime); font-weight: 700; }
.help-steps p, .tutorial p, .tutorial dd { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.help-actions { justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); }
#toggle-tutorial { margin-right: auto; }
.help-preference { flex-basis: 100%; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.help-preference input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--lime); }
#exchange-result label { display: block; margin: 10px 0 5px; }
.tutorial section + section { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.tutorial h3 { font-size: 1rem; margin: 0 0 4px; }
.tutorial dl { font-size: .9rem; margin: 10px 0; }
.tutorial dt { font-weight: 650; }
.tutorial dd { margin-left: 0; margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
  .sidebar { width: 180px; }
  main { margin-left: 180px; }
  .panels { grid-template-columns: minmax(205px, 1fr) minmax(0, 1.3fr); gap: 14px; }
  .orbit { right: 2%; opacity: .65; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 14px 4%; border: 0; border-bottom: 1px solid var(--line); gap: 12px; }
  .brand { margin: 0; }
  nav { display: flex; flex-wrap: wrap; gap: 4px; }
  nav :is(a, button) { padding: 6px 8px; }
  .sidebar-footer { display: none; }
  main { margin-left: 0; }
  .masthead { min-height: 49px; }
  .workspace { padding-top: 19px; }
}
@media (max-width: 560px) {
  .panels { grid-template-columns: 1fr; margin-block: 14px; }
  .hero { min-height: 174px; }
  .orbit { right: -45px; opacity: .27; }
}
