:root {
  color-scheme: dark;
  --background: #0f1614;
  --text: #eff6ef;
  --muted: #b2c2b8;
  --surface: #18221d;
  --line: #35473e;
  --accent: #c7edaf;
  --accent-ink: #14261a;
  font: 1rem/1.6 "Inter", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5.7vw, 4.6rem); line-height: 1.09; letter-spacing: -.035em; }
h2 { margin-bottom: .7rem; font-size: 1.26rem; }
h3 { margin-bottom: .6rem; font-size: 1.05rem; }
p { margin-bottom: 1rem; color: var(--muted); }
.wrap { width: min(100% - 3rem, 69rem); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: #131c17; }
.navigation, .nav-links, .brand { display: flex; align-items: center; gap: 1.25rem; }
.navigation { justify-content: space-between; min-height: 4.4rem; }
.brand { gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); width: 1.85rem; height: 1.85rem; border-radius: .55rem; font-size: 1.15rem; }
.nav-links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.page { padding-block: 3.7rem 2rem; }
.dashboard { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.intro { padding-top: 2rem; }
.intro p { max-width: 29rem; font-size: 1.1rem; }
.intro-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.query { padding: clamp(1rem, 3vw, 1.65rem); }
.query h2 { margin-bottom: 1rem; }
label { display: block; margin-top: .85rem; margin-bottom: .28rem; color: var(--muted); font-size: .94rem; }
input, select { display: block; width: 100%; min-width: 0; padding: .62rem .75rem; border: 1px solid #4a5c52; border-radius: .5rem; color: var(--text); background: #101a15; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.button { display: inline-block; text-decoration: none; border: 1px solid transparent; border-radius: .5rem; padding: .58rem .95rem; cursor: pointer; font-weight: 650; text-align: center; }
.button.primary, .button.accent { background: var(--accent); color: var(--accent-ink); }
.button.quiet { border-color: var(--line); color: var(--text); }
.button:hover:not(:disabled) { filter: brightness(1.1); }
.button:disabled { opacity: .65; cursor: wait; }
form .button { width: 100%; margin-top: 1.15rem; }
.notice { margin: .9rem 0 0; color: #ffd4ca; background: #382421; border: 1px solid #69413a; border-radius: .5rem; padding: .55rem .75rem; overflow-wrap: anywhere; }
.result { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.result dl { display: grid; grid-template-columns: 1fr 1fr; gap: .28rem .5rem; margin: 0 0 .7rem; }
.result dt { color: var(--muted); }
.result dd { margin: 0; overflow-wrap: anywhere; }
.help-strip { margin-top: 2.6rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.help-strip h2 { margin-bottom: .25rem; }
.help-strip p { margin: 0; }
.help-strip a { flex-shrink: 0; }
.footer { font-size: .86rem; color: var(--muted); padding-block: .8rem 1.7rem; }
.page-heading { margin-bottom: 1.65rem; }
.page-heading h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.guide-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.guide-nav { display: grid; gap: .45rem; padding: 1rem; }
.guide { padding: clamp(1rem, 4vw, 2rem); }
.guide section { scroll-margin-top: 1rem; }
.guide section + section { margin-top: 1.55rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.guide ol { margin: .6rem 0 1rem; padding-left: 1.5rem; }
.guide li + li { margin-top: .45rem; }
.guide p:last-child { margin-bottom: 0; }
details { padding-block: .45rem; }
details + details { border-top: 1px solid var(--line); }
details p { margin: .45rem 0; }
summary { cursor: pointer; }
pre { color: #e0f9e5; background: #101a15; border: 1px solid var(--line); border-radius: .55rem; padding: .8rem; margin: .6rem 0 0; overflow-x: auto; }
code { font-size: .92em; }
.table-scroll { overflow-x: auto; margin-bottom: .9rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: .65rem .5rem; }
th { color: var(--muted); }
@media (max-width: 46rem) {
  .wrap { width: calc(100% - 2rem); }
  .page { padding-top: 2rem; }
  .dashboard, .guide-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .intro { padding: 0; }
  .desktop-break { display: none; }
  .navigation, .nav-links { gap: .7rem; }
  .nav-links a { font-size: .9rem; }
}
@media (max-width: 27rem) {
  .brand { font-size: .9rem; }
  .help-strip { align-items: flex-start; flex-direction: column; }
}
/* Task submission workspace */
:root { --background: #0e1421; --text: #edf1fa; --muted: #a3afc4; --surface: #1b2638; --line: #354258; --accent: #9ba8ff; --accent-ink: #0c1825; }
.topbar { background: #121b2c; }
.brand-mark { background: #a5b1ff; }
.page { padding-top: 2.5rem; }
.hero { display: flex; justify-content: space-between; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.45rem); line-height: 1.2; margin-bottom: .8rem; }
.hero p { max-width: 38rem; margin-bottom: 0; }
.hero .eyebrow { font-size: .83rem; color: #b1baff; font-weight: 650; letter-spacing: .15em; margin-bottom: .8rem; }
.hero-note { display: grid; gap: .65rem; min-width: 16rem; border-left: 1px solid var(--line); padding: .5rem 0 .5rem 2rem; }
.hero-note .brand-mark { width: 2.75rem; height: 2.75rem; font-size: 1.8rem; }
.hero-note strong { font-size: 1.1rem; }
.hero-note > span:last-child { color: var(--muted); font-size: .88rem; }
.key-card { padding: 1.35rem 1.5rem; display: grid; grid-template-columns: 1fr 1.25fr; column-gap: 2rem; align-items: center; margin-bottom: 1.5rem; }
.key-card h2 { margin-bottom: .2rem; }
.key-card p { margin: 0; font-size: .9rem; }
.key-form { display: flex; gap: .6rem; }
.key-form .button { margin: 0; width: auto; white-space: nowrap; }
input, select, textarea { background-color: #121c2c; border-color: #3b4961; }
textarea { display: block; width: 100%; resize: vertical; color: var(--text); font: inherit; padding: .75rem; border: 1px solid #3b4961; border-radius: .5rem; }
input::placeholder, textarea::placeholder { color: #8e9bb0; opacity: 1; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.import-card, .tasks-card { padding: 1.5rem; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.section-heading > .muted { font-size: .85rem; }
.muted, .field-hint { color: var(--muted); }
.field-hint { font-size: .85rem; line-height: 1.6; margin: .5rem 0 0; }
.tabs { display: flex; background: #121c2c; border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; margin-bottom: 1rem; }
.tab { flex: 1; border: 0; padding: .7rem; font: inherit; font-weight: 650; color: var(--muted); background: transparent; cursor: pointer; }
.tab.active { background: #303a68; color: #c1c9ff; }
.required { color: #f29399; }
.plans { border: 0; padding: 0; margin: 1.3rem 0 0; min-width: 0; }
.plans legend { color: var(--muted); font-size: .94rem; margin-bottom: .5rem; padding: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.plan { margin: 0; position: relative; cursor: pointer; }
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan span { display: grid; gap: .2rem; padding: .7rem .4rem; border: 1px solid var(--line); border-radius: .55rem; text-align: center; }
.plan input:checked + span { background: #123f40; border-color: #15b98e; color: #5de2bd; }
.plan input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan strong { font-size: 1rem; }
.plan small { font-size: .8rem; }
.estimate { margin: .65rem 0; color: #b9c5df; font-size: .88rem; }
input[type="checkbox"] { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: .2rem; accent-color: #17be98; }
.button.primary { background: #09b28b; color: #041b18; }
.button.quiet { background: transparent; }
.small { font-size: .85rem; padding: .35rem .7rem; }
.balance { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.balance strong { color: #72e5c6; font-size: 1.05rem; margin-left: .25rem; }
.notice { margin: 0 0 1.5rem; }
.notice.good { color: #b2f1da; background: #143a33; border-color: #276558; }
.query-form { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: .5rem; }
.query-form select, .query-form input { font-size: .85rem; padding-left: .6rem; }
.query-form .button { width: auto; margin: 0; padding-inline: .7rem; }
.poll-line { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin: .8rem 0 1.2rem; font-size: .8rem; color: var(--muted); }
.poll-line label { display: flex; align-items: center; gap: .35rem; font-size: .8rem; margin: 0; white-space: nowrap; }
.poll-line input { margin: 0; }
.empty { display: grid; align-content: center; justify-items: center; padding: 3.8rem .5rem; color: var(--muted); text-align: center; }
.empty-symbol { display: grid; place-items: center; font-size: 2rem; width: 4rem; height: 4rem; background: #263149; color: #acb6e4; border-radius: 1rem; margin-bottom: 1.2rem; }
.empty h3 { color: var(--text); }
.empty p { font-size: .9rem; margin: 0; }
.task-results { max-height: 47rem; overflow-y: auto; }
.task-item { background: #141f30; border: 1px solid var(--line); border-radius: .65rem; padding: 1rem; margin-bottom: .7rem; }
.task-heading { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.task-heading strong { min-width: 0; overflow-wrap: anywhere; font-size: .95rem; }
.badge { display: inline-block; font-size: .78rem; border-radius: .3rem; padding: .15rem .45rem; background: #303b50; white-space: nowrap; color: #c7d0df; }
.badge.pending { background: #46391b; color: #f7d47a; }.badge.running { background: #293766; color: #bfccff; }.badge.success { background: #143e34; color: #7be4bc; }.badge.failed { background: #4b2831; color: #ffb7be; }
.task-item dl { display: grid; grid-template-columns: 5rem 1fr; gap: .3rem .5rem; font-size: .85rem; margin: .8rem 0 0; }
.task-item dt { color: var(--muted); }.task-item dd { margin: 0; overflow-wrap: anywhere; }
.task-item .button { margin-top: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width: 60rem) { .hero-note { display: none; }.query-form { grid-template-columns: 1fr auto; }.query-form select { grid-column: 1 / -1; } }
@media(max-width: 46rem) { .workspace { grid-template-columns: 1fr; }.key-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }.import-card,.tasks-card { padding: 1.2rem; }.hero h1 { font-size: 2.15rem; }.query-form { grid-template-columns: 1fr 1.2fr auto; }.query-form select { grid-column: auto; }.nav-links { gap: .6rem; }.nav-links a { font-size: .8rem; } }
@media(max-width: 25rem) { .query-form { grid-template-columns: 1fr auto; }.query-form select { grid-column: 1 / -1; }.poll-line { flex-wrap: wrap; }.plan small { font-size: .75rem; }.brand { font-size: .85rem; } }
/* Illustrated recharge tutorial */
.tutorial-header h1 { max-width: 48rem; line-height: 1.25; }
.tutorial-header .eyebrow { color: #b1baff; font-size: .85rem; letter-spacing: .1em; margin-bottom: .6rem; }
.tutorial-flow { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.tutorial-flow a { color: #c5ceff; background: #202d48; border: 1px solid #3b4866; padding: .45rem .8rem; border-radius: .5rem; text-decoration: none; font-size: .9rem; }
.tutorial-nav { position: sticky; top: 1.25rem; gap: .65rem; font-size: .9rem; }
.tutorial-nav strong { margin-bottom: .2rem; }
.tutorial-nav .button { margin-top: .5rem; }
.tutorial-article { min-width: 0; }
.tutorial-article h2 { font-size: 1.45rem; line-height: 1.5; }
.tutorial-article h3 { margin-top: 1.65rem; color: #d2daff; font-size: 1.1rem; }
.tutorial-article p { line-height: 1.9; overflow-wrap: anywhere; }
.tutorial-article section { scroll-margin-top: 1.5rem; }
.tutorial-article section + section { margin-top: 2.5rem; padding-top: 2rem; }
.tutorial-figure { margin: 1.2rem 0 1.65rem; }
.tutorial-figure a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.tutorial-figure img { display: block; max-width: 100%; width: auto; height: auto; max-height: 60rem; object-fit: contain; border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.tutorial-figure figcaption { color: var(--muted); text-align: center; font-size: .88rem; line-height: 1.7; margin-top: .55rem; }
.tutorial-summary { padding: 1rem 1.25rem; margin-block: 1.5rem; border: 1px solid #3a5164; background: #152b37; border-radius: .65rem; }
.tutorial-summary ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.tutorial-submit-steps li { margin-bottom: 1.2rem; padding-left: .2rem; }
.tutorial-submit-steps li p { margin: .3rem 0 .5rem; }
.tutorial-article summary { font-size: 1rem; line-height: 1.8; padding-block: .3rem; }
@media (max-width: 46rem) { .tutorial-nav { position: static; }.tutorial-layout { gap: 1rem; }.tutorial-header h1 { font-size: 1.85rem; }.tutorial-article h2 { font-size: 1.3rem; }.tutorial-flow { gap: .4rem; }.tutorial-flow a { font-size: .85rem; padding: .35rem .65rem; } }
