:root {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #14274b;
  background: #f2f6fc;
  font-size: 14px;
  --blue: #1684ff;
  --line: #e0e9f5;
  --muted: #7a8ba5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #d9e5f4;
  border-radius: 7px;
  background: white;
  color: #45617f;
  padding: 9px 15px;
  transition: background 0.15s;
}
button:hover {
  background: #f0f7ff;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.primary:hover {
  background: #0873eb;
}
.full {
  width: 100%;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 17px;
}
p {
  line-height: 1.9;
  color: #6b7f9b;
}
small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d6e3f4;
  background: white;
  border-radius: 7px;
  color: #203b5c;
  outline: none;
  line-height: 1.6;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #1684ff;
  box-shadow: 0 0 0 3px #1684ff10;
}
textarea {
  resize: vertical;
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 12px;
  word-break: break-all;
}
input[type="color"] {
  height: 46px;
  max-width: 140px;
  padding: 5px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.loading {
  padding: 50px;
}
.auth-page {
  min-height: 100vh;
  padding: 50px 20px;
  background: radial-gradient(ellipse at 20% 0%, #dcecff, transparent 70%);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 650;
}
.auth-brand img {
  width: 34px;
  height: 34px;
}
.auth-brand small {
  font-size: 12px;
  font-weight: 400;
  margin-left: 12px;
}
.auth-page > .auth-brand {
  justify-content: center;
  margin: 0 auto 26px;
}
.auth-card {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 35px;
  background: white;
  border: 1px solid #dde8f5;
  border-radius: 15px;
  box-shadow: 0 10px 60px #3b669c12;
}
.auth-card h1 {
  font-size: 24px;
  margin-bottom: 10px;
}
.auth-card p {
  font-size: 13px;
}
.auth-card label {
  display: block;
  margin: 24px 0;
  font-size: 12px;
}
.auth-card input {
  margin-top: 8px;
}
.auth-card small {
  display: block;
  margin-top: 25px;
  text-align: center;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 15px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #7387a3;
}
.top-actions button {
  font-size: 12px;
}
.admin-layout {
  display: flex;
  min-height: calc(100vh - 76px);
}
aside {
  width: 222px;
  flex-shrink: 0;
  padding: 30px 20px;
  background: linear-gradient(130deg, #eef6ff, #f9fbfe);
  border-right: 1px solid var(--line);
}
aside nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
aside nav button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 13px 18px;
}
aside nav button.active {
  background: #dcecff;
  color: #0878f1;
  font-weight: 600;
}
aside > p {
  font-size: 11px;
  margin: 40px 18px;
  line-height: 2.3;
}
aside > p span {
  font-size: 9px;
  overflow-wrap: anywhere;
}
main {
  width: 100%;
  max-width: 1130px;
  padding: 35px 42px 70px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 20px;
}
.page-heading p {
  margin-top: 7px;
  font-size: 13px;
}
.page-heading button {
  white-space: nowrap;
}
.form-section {
  padding: 26px 30px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
}
.form-section h2 {
  margin-bottom: 20px;
}
.form-section > p {
  font-size: 13px;
  margin-bottom: 17px;
}
.form-section > button {
  margin: 8px 0;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0;
  color: #314967;
  font-size: 13px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  margin: 22px 0 5px;
}
.hint {
  font-size: 11px !important;
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0 0 !important;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
}
.callout {
  background: #e8f3ff;
  border: 1px solid #c9e0fc;
  color: #4773a5;
  padding: 18px 22px;
  border-radius: 9px;
  line-height: 1.9;
  font-size: 12px;
}
.encryption-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin: 24px 0;
  flex-wrap: wrap;
}
.encryption-controls label {
  font-size: 12px;
}
.encryption-controls input {
  width: 130px;
  margin-top: 8px;
}
.encryption-controls small {
  margin-bottom: 8px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading button {
  font-size: 12px;
  padding: 7px 12px;
}
.section-heading > div {
  display: flex;
  gap: 8px;
}
details {
  margin-top: 20px;
  font-size: 12px;
}
summary {
  cursor: pointer;
  color: #426f9e;
  margin-bottom: 15px;
}
details button {
  margin-top: 10px;
}
dialog {
  border: 1px solid #d5e4f6;
  border-radius: 13px;
  box-shadow: 0 20px 70px #16467b30;
  width: min(450px, calc(100vw - 30px));
  padding: 25px;
  color: #14274b;
}
dialog::backdrop {
  background: #15375650;
  backdrop-filter: blur(3px);
}
dialog label {
  display: block;
  font-size: 12px;
  margin: 22px 0;
}
dialog input {
  margin-top: 8px;
}
#toast {
  position: fixed;
  z-index: 20;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #17385a;
  color: white;
  padding: 14px 22px;
  box-shadow: 0 5px 30px #14355722;
  max-width: calc(100vw - 25px);
  font-size: 12px;
  line-height: 1.8;
}
#toast.error {
  background: #b9344a;
}
.icon-preview {
  display: flex;
  align-items: center;
  gap: 15px;
}
.icon-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.icon-preview button {
  font-size: 11px;
}
.busy button {
  pointer-events: none;
  opacity: 0.65;
}
[hidden] {
  display: none !important;
}
code {
  font-family: Consolas, monospace;
  font-size: 12px;
  background: #f2f6fc;
  padding: 2px 6px;
  border-radius: 3px;
}
button:focus-visible {
  outline: 3px solid #9acaff;
  outline-offset: 2px;
}
@media (max-width: 1000px) {
  main {
    padding: 30px 25px;
  }
  aside {
    width: 190px;
    padding: 25px 12px;
  }
  .topbar {
    padding-inline: 22px;
  }
  .auth-brand small {
    display: none;
  }
  .form-section {
    padding: 24px;
  }
  .columns {
    gap: 10px 18px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    padding: 16px;
    gap: 10px;
  }
  .auth-brand {
    font-size: 18px;
  }
  .top-actions {
    gap: 8px;
    font-size: 10px;
  }
  .top-actions button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .admin-layout {
    display: block;
  }
  aside {
    width: 100%;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside nav {
    flex-direction: row;
    gap: 5px;
  }
  aside nav button {
    padding: 10px 12px;
    font-size: 11px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }
  aside > p {
    display: none;
  }
  main {
    padding: 24px 15px 50px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .page-heading {
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > .primary {
    font-size: 11px;
    padding: 8px 12px;
  }
  .form-section {
    padding: 20px 16px;
  }
  h2 {
    font-size: 16px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .section-heading button {
    font-size: 11px;
  }
  .auth-card {
    padding: 28px;
  }
  .encryption-controls {
    gap: 12px;
  }
}

.github-actions,.build-platforms{display:flex;gap:12px;flex-wrap:wrap}.build-platforms{margin:15px 0 25px}.build-row{padding:20px 0;border-bottom:1px solid var(--line)}.build-row p{font-size:12px;margin:8px 0}.build-row button,.build-row a{margin:5px 12px 5px 0;font-size:12px}.download-link{display:inline-block;border:1px solid #c9def8;border-radius:7px;padding:8px 12px;color:var(--blue)}
