:root {
  --ink: #202238;
  --muted: #797b8c;
  --line: #e6e6ec;
  --paper: #f6f6f9;
  --accent: #6150d8;
  --green: #168a65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
button,
select,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
select,
input,
a {
  outline-offset: 4px;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
[hidden] {
  display: none !important;
}
.account-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.login-layout {
  max-width: 580px;
  margin: 60px auto;
}
.login-panel h1 {
  font-size: clamp(26px, 5vw, 36px);
  margin-bottom: 16px;
}
.login-panel .subtitle {
  margin-bottom: 30px;
}
.login-error {
  color: #a62e36;
  line-height: 1.6;
  font-size: 13px;
}
.topbar {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  background: #fff;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 750;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 3px;
}
.brand-icon {
  background: var(--ink);
  color: white;
  display: grid;
  place-content: center;
  font-size: 25px;
  width: 42px;
  height: 44px;
  border-radius: 12px;
  position: relative;
}
.brand-icon span {
  position: absolute;
  right: 5px;
  bottom: 1px;
  color: #bbffb6;
}
.local-badge {
  font-size: 12px;
  background: #f1f7f3;
  color: #428066;
  border-radius: 20px;
  padding: 7px 13px;
}
.local-badge i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b9c76;
  margin-right: 7px;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 48px 28px 0;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  color: var(--accent);
  font-weight: 750;
  margin: 0 0 12px;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1.35;
  margin: 0;
}
h1 > span {
  color: var(--accent);
}
.subtitle {
  color: var(--muted);
  margin: 12px 0 0;
}
.intro-number {
  border-left: 1px solid #dcdbe4;
  padding: 0 12px 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.intro-number strong {
  font:
    500 48px/1 Georgia,
    serif;
}
.intro-number span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 24px;
  align-items: start;
}
.editor {
  display: grid;
  gap: 18px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 26px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.step {
  font:
    12px ui-monospace,
    monospace;
  border: 1px solid #e7e3f7;
  border-radius: 9px;
  background: #f7f5fe;
  color: var(--accent);
  padding: 7px 8px;
}
.section-title h2 {
  font-size: 17px;
  margin: 0;
  font-weight: 650;
}
.section-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 0;
}
.version {
  margin-left: auto;
  background: #f6f6f8;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
}
.channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.channel {
  position: relative;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 10px 12px;
  transition: 0.15s;
  text-align: left;
}
.channel:hover {
  border-color: #a99ee9;
  background: #faf9ff;
}
.channel.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: #f7f5ff;
}
.channel strong {
  font-size: 13px;
  font-weight: 600;
}
.channel small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.channel .check {
  position: absolute;
  right: 8px;
  top: 6px;
  font-size: 12px;
  color: var(--accent);
  visibility: hidden;
}
.channel.selected .check {
  visibility: visible;
}
.toggle-row {
  border: 1px solid var(--line);
  background: #fcfcfd;
  border-radius: 10px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 19px;
  cursor: pointer;
}
.toggle-row strong {
  font-weight: 600;
}
.english {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
}
.toggle-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
input[type="checkbox"] {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #d4d4de;
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: 0.2s;
}
input[type="checkbox"]:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0002;
  transition: 0.2s;
}
input[type="checkbox"]:checked {
  background: var(--accent);
}
input[type="checkbox"]:checked:before {
  transform: translateX(16px);
}
.field {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field input,
.field select {
  background: #fff;
  border: 1px solid #dddde6;
  padding: 11px 12px;
  border-radius: 7px;
  color: var(--ink);
  width: 100%;
  font-size: 13px;
  font-weight: 400;
}
.field input::placeholder {
  color: #a0a1af;
}
.optional {
  color: #9293a1;
  font-size: 11px;
  font-weight: 400;
}
.field-row {
  display: flex;
  gap: 16px;
  margin: 17px 0;
}
.field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.full {
  margin-top: 15px;
}
.identity-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-size: 11px;
  color: var(--muted);
  padding-top: 15px;
}
.note-mark {
  color: var(--accent);
  font-size: 25px;
}
.package-preview {
  margin-top: 16px;
  background: #f6f6f9;
  border-radius: 7px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}
.package-preview code {
  font-size: 10px;
  color: #56556b;
  overflow-wrap: anywhere;
  flex: 1;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
}
.sign-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #f3f3f7;
  border: 1px solid #ebebf0;
  border-radius: 9px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 17px;
}
.sign-tabs button {
  flex: 1;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 8px 4px;
  color: var(--muted);
  font-size: 12px;
}
.sign-tabs button.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 1px 5px #2221;
  font-weight: 600;
}
#old-apk-status {
  overflow-wrap: anywhere;
}
.info-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f7f8fa;
  border: 1px solid #ececf2;
  border-radius: 9px;
}
.info-box > span {
  color: var(--accent);
  font-size: 22px;
}
.info-box strong {
  font-weight: 600;
  font-size: 12px;
}
.info-box p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.upload-field {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  border: 1px dashed #cecadf;
  border-radius: 9px;
  padding: 16px;
  background: #faf9fd;
  font-size: 12px;
}
.upload-field small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.upload-field input {
  font-size: 11px;
  width: 100%;
  color: #6b687f;
}
.upload-field input::file-selector-button {
  border: 1px solid #dcd7eb;
  background: #fff;
  padding: 5px 8px;
  border-radius: 5px;
  color: var(--accent);
  margin-right: 8px;
  font: inherit;
  cursor: pointer;
}
.key-note {
  color: var(--muted);
  font-size: 11px;
  margin: 15px 0 0;
  line-height: 1.8;
}
.sidebar {
  position: sticky;
  top: 22px;
}
.summary-card {
  background: #232337;
  border-radius: 15px;
  color: white;
  padding: 25px;
  box-shadow: 0 12px 30px #24233b16;
}
.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-logo {
  border: 1px solid #ffffff35;
  border-radius: 9px;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 7px 8px;
  color: #dbd6ff;
}
.summary-caption {
  font-size: 10px;
  letter-spacing: 2px;
  color: #aca9c1;
}
.summary-card h2 {
  font-size: 21px;
  font-weight: 550;
  line-height: 1.5;
  margin: 23px 0;
  overflow-wrap: anywhere;
}
.summary-card dl {
  margin: 0;
}
.summary-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  font-size: 12px;
}
.summary-card dt {
  color: #a8a5bb;
}
.summary-card dd {
  margin: 0;
  text-align: right;
}
.summary-note {
  border-top: 1px solid #ffffff18;
  margin-top: 24px;
  padding-top: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #bcb7d5;
  font-size: 11px;
}
.summary-note > span {
  font-size: 21px;
  color: #b9b0ff;
}
.primary {
  width: 100%;
  margin-top: 17px;
  border: 0;
  border-radius: 8px;
  background: #bcffb5;
  color: #223c29;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  transition: 0.15s;
}
.primary:hover {
  background: #d1ffcc;
}
.primary span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.micro {
  font-size: 10px;
  color: #aaa6bb;
  text-align: center;
  margin: 12px 0 0;
}
.error {
  font-size: 12px;
  color: #ffc4c4;
  background: #ffffff0c;
  border-radius: 6px;
  padding: 10px;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}
.help-card {
  padding: 20px 8px;
  color: var(--muted);
  font-size: 12px;
}
.help-card h3 {
  font-size: 12px;
  font-weight: 600;
  color: #56566b;
  margin: 12px 0 5px;
}
.help-card p {
  margin: 0 0 18px;
  line-height: 1.9;
}
.history {
  margin: 40px 0;
}
.history-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.history-title h2 {
  margin: 0;
  font-size: 21px;
}
.history-title .eyebrow {
  margin: 0 0 6px;
  font-size: 9px;
}
.history-title > span {
  color: var(--muted);
  font-size: 11px;
}
.empty-state {
  border: 1px dashed #d9d8e3;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.empty-state > span {
  font-size: 30px;
  color: #a9a1cf;
}
.empty-state h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 8px 0;
}
.empty-state p {
  font-size: 12px;
  margin: 0;
}
.job {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 21px 24px;
  margin: 12px 0;
}
.job-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.job h3 {
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
}
.job-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 0;
}
.status {
  padding: 4px 8px;
  border-radius: 5px;
  background: #f3f0ff;
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
}
.status.complete {
  color: #167654;
  background: #eaf7ee;
}
.status.failed {
  color: #ae4545;
  background: #fff0f0;
}
.job-message {
  font-size: 12px;
  margin: 16px 0 8px;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 4px;
  display: block;
  overflow: hidden;
  background: #efedf7;
}
progress::-webkit-progress-bar {
  background: #efedf7;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 4px;
}
progress::-moz-progress-bar {
  background: var(--accent);
}
.job-details {
  margin-top: 14px;
  padding: 12px;
  background: #f7f7fa;
  border-radius: 7px;
}
.job-details p {
  margin: 3px 0;
  font-size: 10px;
  color: var(--muted);
}
.job-details code {
  font-size: 10px;
  overflow-wrap: anywhere;
  color: #57566c;
}
.job-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}
.download {
  display: inline-block;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  padding: 8px 17px;
  font-size: 12px;
}
.job-size {
  font-size: 11px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 30px;
  color: #9292a2;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
footer b {
  font-weight: 400;
  color: #c8c6d4;
  padding: 0 6px;
}
@media (min-width: 1450px) {
  main {
    padding-top: 60px;
  }
}
@media (max-width: 970px) {
  .channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 17px;
  }
  .panel {
    padding: 21px;
  }
  .summary-card {
    padding: 21px;
  }
  .section-title p {
    font-size: 11px;
  }
}
@media (max-width: 740px) {
  .topbar {
    height: 72px;
    padding: 0 20px;
  }
  main {
    padding: 30px 16px 0;
  }
  .intro {
    margin-bottom: 25px;
  }
  .intro-number {
    display: none;
  }
  h1 {
    font-size: 27px;
  }
  .subtitle {
    font-size: 12px;
    max-width: 270px;
    line-height: 1.9;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .help-card {
    display: none;
  }
  .panel {
    padding: 20px;
  }
  .channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .section-title h2 {
    font-size: 16px;
  }
  .section-title p {
    font-size: 10px;
  }
  .summary-card {
    padding: 24px;
  }
  .summary-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
  }
  .summary-card dl > div {
    margin: 8px 0;
  }
  .summary-card h2 {
    margin: 16px 0;
  }
  .summary-note {
    margin-top: 16px;
  }
  .field-row {
    gap: 12px;
  }
  .identity-note {
    font-size: 10px;
  }
  .package-preview {
    gap: 6px;
  }
  .package-preview code {
    font-size: 9px;
  }
  .history {
    margin: 28px 0;
  }
  .job {
    padding: 17px;
  }
  .job-actions {
    justify-content: space-between;
  }
  footer {
    gap: 12px;
    flex-direction: column;
  }
  .sign-tabs button {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
