:root {
  color-scheme:light;
  --ink:#173b34;
  --muted:#6c7d77;
  --green:#16705a;
  --green-dark:#105640;
  --line:#e3eae5;
  --paper:#fff;
  --bg:#f4f7f4;
  --soft:#edf5ef;
  --radius:20px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

button,input,textarea,select {
  font:inherit
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

button:disabled {
  cursor:wait;
  opacity:.6
}

button:focus-visible,a:focus-visible {
  outline:3px solid #82bba8;
  outline-offset:4px
}

a {
  color:inherit
}

input:focus,textarea:focus,select:focus {
  outline:3px solid #16705a18;
  border-color:var(--green)
}

[hidden] {
  display:none!important
}

.site-header {
  height:88px;
  max-width:1120px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 32px;
  border-bottom:1px solid var(--line)
}

.brand {
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  font-weight:700;
  font-size:19px;
  letter-spacing:.5px
}

.brand img {
  border-radius:10px;
  object-fit:cover
}

.brand span {
  display:flex;
  align-items:baseline;
  gap:12px
}

.brand small {
  font-size:13px;
  font-weight:400;
  color:var(--muted);
  letter-spacing:1px
}

.header-note {
  font-size:12px;
  color:var(--muted);
  letter-spacing:1px
}

.page {
  max-width:940px;
  padding:0 32px;
  margin:0 auto
}

.intro {
  padding:56px 0 32px
}

.intro h1 {
  margin:0 0 13px;
  font-size:clamp(26px,4vw,36px);
  letter-spacing:-1px;
  line-height:1.4;
  font-weight:650
}

.intro p {
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.8
}

.workspace {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 12px 40px #173b3404
}

.tabs {
  display:flex;
  gap:32px;
  padding:0 38px;
  border-bottom:1px solid var(--line)
}

.tab {
  border:0;
  background:transparent;
  padding:24px 1px 19px;
  color:var(--muted);
  font-size:14px;
  border-bottom:3px solid transparent;
  white-space:nowrap
}

.tab.active {
  color:var(--green);
  border-bottom-color:var(--green);
  font-weight:650
}

.steps {
  list-style:none;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin:0;
  padding:32px 38px;
  background:#fcfdfb;
  border-bottom:1px solid var(--line)
}

.steps li {
  position:relative;
  display:flex;
  gap:11px;
  align-items:center;
  color:#92a099;
  font-size:12px
}

.steps li span {
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:50%;
  font-size:12px;
  font-weight:600;
  background:white
}

.steps li b {
  font-weight:450
}

.steps li.active {
  color:var(--green)
}

.steps li.active span {
  background:var(--green);
  color:white;
  border-color:var(--green);
  box-shadow:0 0 0 5px #16705a0b
}

.steps li.active b {
  font-weight:650
}

.steps li.complete {
  color:var(--green)
}

.steps li.complete span {
  background:var(--soft);
  border-color:#c9e0d4
}

.panel {
  padding:35px 38px 32px
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px
}

.panel-heading>span {
  font-size:11px;
  color:var(--muted)
}

h1,h2,h3,p {
  overflow-wrap:anywhere
}

h2 {
  font-size:21px;
  line-height:1.5;
  letter-spacing:-.4px;
  margin:0;
  font-weight:650
}

h3 {
  font-size:15px;
  margin:20px 0 8px
}

.description {
  margin:8px 0 25px;
  color:var(--muted);
  font-size:14px;
  line-height:1.9
}

label {
  display:block;
  font-size:13px;
  font-weight:550;
  margin-bottom:10px
}

input:not([type=checkbox]),textarea,select {
  width:100%;
  border:1px solid #d6e1d9;
  background:#fff;
  border-radius:9px;
  padding:14px 15px;
  color:var(--ink);
  font-size:14px;
  transition:border-color .18s,outline-color .18s
}

input::placeholder,textarea::placeholder {
  color:#9ba8a0;
  font-size:13px
}

textarea {
  resize:vertical;
  line-height:1.7;
  min-height:170px
}

#card-code,#query-code {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.5px
}

#session-json {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px
}

form {
  margin-top:24px
}

.field-help {
  font-size:12px;
  color:var(--muted);
  margin:12px 0 0;
  line-height:1.9
}

.button {
  display:inline-flex;
  gap:16px;
  justify-content:center;
  align-items:center;
  min-height:45px;
  padding:11px 22px;
  border:1px solid transparent;
  border-radius:9px;
  font-size:13px;
  font-weight:550;
  transition:background .18s,transform .18s
}

.button.primary {
  background:var(--green);
  color:white
}

.button.primary:hover {
  background:var(--green-dark)
}

.button.secondary {
  background:white;
  border-color:#d6e1d9;
  color:var(--ink)
}

.button.secondary:hover {
  background:var(--soft)
}

.button.wide {
  width:100%;
  margin-top:24px
}

.button.wide>span {
  margin-left:auto
}

.button.wide:has(>span) {
  justify-content:flex-start
}

.button.small {
  font-size:12px;
  min-height:34px;
  padding:7px 13px
}

.footnote {
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:25px;
  font-size:11px;
  color:var(--muted);
  line-height:1.7
}

.dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#75a18c;
  flex-shrink:0
}

.site-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin:28px 0 40px;
  color:#8a9990;
  font-size:11px;
  line-height:1.7
}

.notice {
  padding:15px 20px;
  margin:20px 24px;
  background:#fff5e8;
  color:#895a1c;
  border:1px solid #f0e1c9;
  border-radius:10px;
  line-height:1.8;
  font-size:13px
}

.notice.success {
  background:var(--soft);
  border-color:#d0e6d6;
  color:var(--green)
}

.actions {
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:26px
}

.actions .secondary {
  margin-right:auto
}

.plan-summary {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  background:var(--soft);
  padding:16px 19px;
  border-radius:10px;
  margin:20px 0;
  font-size:12px
}

.plan-summary>span {
  color:var(--muted)
}

.plan-summary strong {
  font-size:14px
}

.plan-summary small {
  margin-left:auto;
  color:var(--muted)
}

.text-link {
  color:var(--green);
  font-size:13px;
  text-underline-offset:4px
}

.details {
  margin:26px 0;
  padding:0
}

.details>div {
  display:flex;
  align-items:baseline;
  gap:24px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
  font-size:13px;
  line-height:1.7
}

.details dt {
  color:var(--muted);
  width:85px;
  flex-shrink:0
}

.details dd {
  margin:0;
  overflow-wrap:anywhere;
  font-weight:500
}

.callout {
  font-size:12px;
  color:#6f775b;
  line-height:1.9;
  padding:15px 18px;
  background:#f6f6ec;
  border-radius:9px
}

.checkbox {
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--muted);
  font-weight:400;
  font-size:12px;
  line-height:1.9
}

.checkbox input {
  width:16px;
  height:16px;
  accent-color:var(--green);
  margin:3px 0 0;
  flex-shrink:0
}

.result-heading {
  display:flex;
  gap:18px;
  align-items:flex-start
}

.result-heading .description {
  margin-bottom:0
}

.status-symbol {
  width:44px;
  height:44px;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-shrink:0;
  border-radius:50%;
  background:var(--soft);
  color:var(--green);
  font-size:24px
}

.status-symbol.processing:after {
  content:"";
  width:19px;
  height:19px;
  border:2px solid #c0dacc;
  border-top-color:var(--green);
  border-radius:50%;
  animation:spin 1.1s linear infinite
}

.status-symbol.attention {
  background:#fcf2df;
  color:#9a731f
}

.captcha-panel {
  background:var(--soft);
  padding:20px 23px;
  border-radius:12px;
  margin-top:25px
}

.captcha-panel h3 {
  margin:0 0 8px
}

.captcha-panel p {
  font-size:13px;
  line-height:1.8;
  color:var(--muted)
}

.captcha-panel small {
  display:block;
  margin-top:12px;
  color:var(--muted);
  font-size:11px
}

.help-panel h3 {
  margin-top:27px
}

.help-panel p {
  font-size:14px;
  line-height:2;
  color:var(--muted)
}

.mono {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11px;
  letter-spacing:-.1px
}

.admin-page {
  max-width:1200px;
  padding-top:38px
}

.login-panel {
  max-width:460px;
  margin:35px auto
}

.login-panel h1,.admin-title h1 {
  font-size:27px;
  margin:0 0 8px
}

.admin-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px
}

.admin-title p {
  margin:0
}

.admin-section {
  margin:24px 0
}

.section-heading {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  padding:24px 26px 18px
}

.section-heading h2 {
  font-size:18px
}

.muted {
  color:var(--muted);
  font-size:12px
}

.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:25px 0 20px;
  border-top:1px solid var(--line);
  gap:20px
}

.stats>div {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-left:25px;
  border-left:1px solid var(--line)
}

.stats>div:first-child {
  padding-left:0;
  border:0
}

.stats span {
  font-size:12px;
  color:var(--muted)
}

.stats strong {
  font-size:32px;
  font-weight:550
}

.config-status {
  margin:0 26px 20px;
  font-size:12px;
  line-height:1.9;
  color:var(--green)
}

.config-status.warning {
  color:#986b22
}

.table-wrap {
  overflow-x:auto;
  width:100%
}

table {
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  text-align:left
}

th {
  font-weight:500;
  background:#f9fbf8;
  color:var(--muted);
  white-space:nowrap
}

th,td {
  padding:14px 18px;
  border-top:1px solid var(--line);
  line-height:1.8
}

td {
  min-width:90px
}

td.mono {
  min-width:210px;
  overflow-wrap:anywhere
}

td:last-child {
  max-width:250px;
  min-width:120px
}

.text-button {
  border:0;
  background:none;
  color:var(--green);
  font-size:12px;
  padding:3px 0;
  white-space:nowrap
}

.text-button:hover {
  text-decoration:underline
}

.empty {
  text-align:center;
  color:var(--muted);
  padding:30px
}

.inline-form {
  display:flex;
  align-items:flex-end;
  gap:16px;
  padding:0 26px;
  margin:0
}

.inline-form>div:first-child {
  flex:2
}

.inline-form>div {
  flex:1
}

.inline-form input,.inline-form select {
  padding:12px;
  min-height:45px
}

.inline-form>.button {
  flex-shrink:0
}

.section-hint {
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
  margin:16px 26px 24px
}

.delivery-note {
  padding:22px 26px;
  background:#fcfdfb;
  border-top:1px solid var(--line)
}

.delivery-note>span {
  font-size:12px;
  font-weight:550
}

.delivery-note p {
  white-space:pre-wrap;
  line-height:1.9;
  font-size:12px;
  color:var(--muted)
}

.inline-editor {
  padding:20px 26px;
  background:var(--soft)
}

.inline-editor form {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin:0
}

.inline-editor label {
  width:100%;
  margin:0
}

.inline-editor select {
  width:auto;
  min-width:170px
}

.grow {
  flex:2!important
}

@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important
  }
  .status-symbol.processing:after {
    border-color:var(--green)
  }
}

@media(max-width:640px) {
  .site-header {
    height:72px;
    padding:0 20px
  }
  .brand {
    font-size:17px;
    gap:9px
  }
  .brand img {
    width:33px;
    height:33px
  }
  .brand span {
    gap:8px
  }
  .brand small {
    font-size:11px
  }
  .header-note {
    display:none
  }
  .page {
    padding:0 16px
  }
  .intro {
    padding:33px 5px 25px
  }
  .intro h1 {
    font-size:25px;
    letter-spacing:-.7px
  }
  .intro p {
    font-size:13px
  }
  .workspace {
    border-radius:15px
  }
  .tabs {
    gap:28px;
    padding:0 22px
  }
  .tab {
    font-size:13px;
    padding:20px 0 16px
  }
  .steps {
    gap:8px;
    padding:25px 18px
  }
  .steps li {
    gap:8px;
    flex-direction:column;
    font-size:10px;
    align-items:center
  }
  .steps li span {
    width:27px;
    height:27px;
    font-size:11px
  }
  .panel {
    padding:27px 22px
  }
  .panel-heading {
    gap:10px
  }
  h2 {
    font-size:19px
  }
  .description {
    font-size:13px;
    margin-bottom:21px
  }
  input:not([type=checkbox]),textarea,select {
    font-size:16px;
    padding:13px 12px
  }
  #card-code,#query-code {
    font-size:12px;
    letter-spacing:0
  }
  .field-help,.footnote {
    font-size:11px
  }
  .plan-summary {
    gap:9px;
    padding:14px
  }
  .plan-summary small {
    width:100%;
    margin:0
  }
  .details>div {
    gap:12px;
    padding:14px 0;
    font-size:12px
  }
  .details dt {
    width:70px
  }
  .details dd.mono {
    font-size:10px
  }
  .actions {
    gap:8px
  }
  .actions .button {
    padding:11px 14px;
    font-size:12px
  }
  .site-footer {
    font-size:10px;
    flex-direction:column;
    gap:5px;
    padding:0 5px;
    margin-top:23px
  }
  .notice {
    margin:15px;
    padding:12px 14px;
    font-size:12px
  }
  .result-heading {
    gap:12px
  }
  .status-symbol {
    width:35px;
    height:35px;
    font-size:21px
  }
  .captcha-panel {
    padding:18px
  }
  .captcha-panel h3 {
    font-size:14px
  }
  .admin-page {
    padding-top:25px
  }
  .stats {
    gap:12px
  }
  .stats>div {
    padding-left:12px
  }
  .stats strong {
    font-size:25px
  }
  .stats span {
    font-size:10px
  }
  .admin-title h1 {
    font-size:23px
  }
  .admin-title .description {
    font-size:12px
  }
  .section-heading {
    padding:21px 20px 16px
  }
  .section-heading h2 {
    font-size:16px
  }
  .inline-form {
    flex-wrap:wrap;
    padding:0 20px;
    gap:12px
  }
  .inline-form>div:first-child {
    flex:1 1 100%
  }
  .inline-form>div {
    min-width:120px
  }
  .inline-form>.button {
    min-height:47px
  }
  .section-hint {
    margin:15px 20px 21px
  }
  .delivery-note {
    padding:20px
  }
  .config-status {
    margin-left:20px;
    margin-right:20px
  }
  .login-panel {
    margin:20px 0
  }
  .help-panel h2 {
    font-size:19px
  }
  .help-panel p {
    font-size:13px
  }
}
