:root {
  color-scheme: light;
  --page: #f5f6fa; --paper: #fff; --ink: #20283b; --muted: #68748a;
  --line: #e4e8f1; --brand: #4759d6; --brand-hover: #3648c7;
  --nav: #141a2e; --soft: #edf0ff; --radius: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); font-size: 14px; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(29px, 4vw, 40px); letter-spacing: -.045em; line-height: 1.2; }
h2 { font-size: 19px; letter-spacing: -.025em; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .62; cursor: wait; }
:focus-visible { outline: 3px solid #7887fa; outline-offset: 3px; }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .93em; overflow-wrap: anywhere; }
svg { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.eyebrow { color: #5264c8; font-size: 11px; letter-spacing: .14em; font-weight: 760; margin-bottom: 8px; }
.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; border: 1px solid transparent; padding: 8px 14px; font-weight: 650; white-space: nowrap; transition: background .15s; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.secondary { background: #fff; border-color: #dce2ee; color: #35425b; }
.btn.secondary:hover { background: #f4f6ff; border-color: #bdc7ee; }
.btn.danger { color: #ad344a; border-color: #f2dce0; background: #fff6f7; }
.btn.danger:hover { background: #fbe8eb; }
.public-hero .copy-btn:hover { background: #087783; }
.public-hero .copy-btn { border-color: #81d5da; color: #e6feff; background: #00727d42; }
.btn.compact { padding: 4px 11px; min-height: 33px; }
.btn.wide { width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 760; line-height: 1.05; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; background: var(--brand); color: #fff; }
.brand-caption { display: block; margin-top: 5px; font-size: 10px; font-weight: 540; letter-spacing: .045em; color: #8290aa; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0,1fr); }
.sidebar { display: flex; flex-direction: column; gap: 15px; background: var(--nav); color: #eef0fb; padding: 26px 17px 19px; min-width: 0; }
.sidebar .brand { padding: 0 7px; margin-bottom: 21px; }
.nav-label { color: #9ba7bf; font-size: 11px; padding: 0 12px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 8px 11px; border-radius: 8px; text-align: left; color: #b4bdd3; border: 0; background: transparent; }
.sidebar nav a:hover { background: #ffffff10; color: #fff; }
.sidebar nav a.active { color: #fff; background: #303a70; box-shadow: inset 3px 0 #8a98fa; font-weight: 690; }
.topbar { min-height: 65px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 clamp(16px,4vw,46px); }
.topbar-path, .topbar-actions, .account { display: flex; align-items: center; gap: 9px; }
.topbar-path > span { color: var(--muted); }
.topbar-actions { margin-left: auto; }
.account .avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--soft); color: #4657b9; font-weight: 720; }
.account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace { max-width: 1440px; margin: 0 auto; padding: 33px clamp(16px,4vw,46px) 56px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.page-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-shrink: 0; }
.page-head h1 { overflow-wrap: anywhere; }
.page-head .muted { margin-top: 8px; overflow-wrap: anywhere; }
.repo-banner { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 21px 24px; border-radius: var(--radius); color: #fff; background: linear-gradient(108deg,#232d60,#39468c); }
.repo-banner h2 { font-size: 24px; margin: 8px 0 3px; overflow-wrap: anywhere; }
.repo-banner code { color: #d7ddff; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #e8edff; background: #ffffff19; border: 1px solid #ffffff32; padding: 3px 8px; border-radius: 40px; }
.live-tag i, .pill i, .login-bottom i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8ee3b7; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; border: 1px solid #ffffff45; border-radius: 8px; color: #fff; background: #ffffff16; white-space: nowrap; }
.copy-btn:hover { background: #ffffff2a; }
.metrics { margin: 16px 0 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.metric { min-width: 0; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 15px; }
.metric-icon, .package-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 10px; color: #5060c9; background: var(--soft); }
.metric > div > span { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.metric strong { display: block; font-size: 25px; line-height: 1.25; margin-top: 2px; }
.metric strong.metric-date { font-size: clamp(13px, 1.3vw, 17px); white-space: nowrap; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 19px 14px; }
.panel-head h2 { margin-bottom: 2px; }
.filters { display: flex; align-items: stretch; gap: 8px; padding: 0 19px 15px; }
.searchbox { position: relative; color: var(--muted); flex: 1; max-width: 360px; }
.searchbox svg { position: absolute; top: 12px; left: 11px; }
.searchbox input { padding-left: 36px; }
input, select, textarea { background: #fff; border: 1px solid #dce2ee; color: var(--ink); border-radius: 8px; min-height: 40px; padding: 8px 11px; }
input, textarea { width: 100%; }
textarea { resize: vertical; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 15px; border-top: 1px solid #edf0f6; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; }
th { color: #526079; background: #f8f9fc; font-size: 12px; font-weight: 670; white-space: nowrap; }
td code { display: block; color: var(--muted); }
.package-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.package-line > div { min-width: 0; }
.package-name { font-weight: 720; overflow-wrap: anywhere; }
.package-name:hover { color: var(--brand); }
td.package-group-cell { padding: 0; }
.package-group summary { display: flex; align-items: center; gap: 10px; padding: 11px 19px; cursor: pointer; list-style: none; }
.package-group summary::-webkit-details-marker { display: none; }
.package-group summary:hover { background: #f8f9fc; }
.package-group-arrow { display: flex; flex: none; color: var(--muted); }
.package-group[open] .package-group-arrow { transform: rotate(90deg); }
.package-group-info { min-width: 0; }
.package-group-versions { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; }
.package-group-version {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-width: 0;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--page);
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.package-group-version strong { color: var(--ink); overflow-wrap: anywhere; }
.package-group-updated i { flex: none; }
.package-group-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; white-space: nowrap; }
.package-group-records {
  margin: 0 19px 12px 45px;
  border-left: 2px solid var(--line);
  background: #f8f9fc;
}
.cell-version { font-weight: 650; overflow-wrap: anywhere; }
.pill { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; padding: 3px 8px; border-radius: 30px; white-space: nowrap; background: #eef1f7; color: #506079; }
.pill i { background: #75849e; width: 6px; height: 6px; }
.pill.live { color: #176343; background: #e4f6eb; }
.pill.live i { background: #27976a; }
.pill.changed { color: #804916; background: #fff0dc; }
.pill.changed i { background: #be7828; }
.table-actions { display: flex; gap: 6px; align-items: center; }
.package-number { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; min-height: 228px; padding: 30px 15px; align-content: center; border-top: 1px solid #edf0f6; }
.empty .btn { margin-top: 7px; }
.empty p { color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 13px; color: var(--brand); background: var(--soft); margin-bottom: 5px; }
.pager { display: flex; gap: 16px; justify-content: end; padding: 14px 19px; border-top: 1px solid var(--line); }
.pager a, .back-link { color: var(--brand-hover); }
.form-panel { padding: 20px; }
.form-panel h2 { margin-bottom: 6px; }
.form-panel form { margin-top: 15px; }
.form-panel label, .login-form label { display: block; font-weight: 640; }
.form-panel label > input, .form-panel label > textarea, .login-form label > input { display: block; margin: 4px 0 0; font-weight: 400; }
.form-panel label small { color: var(--muted); font-weight: 400; }
.form-panel label > input + small { display: block; margin-top: 5px; }
.form-panel form > label + label { margin-top: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.form-grid label > select { display: block; width: 100%; margin-top: 4px; }
.form-grid .full { grid-column: 1/-1; }
.form-actions { display: flex; gap: 8px; margin-top: 20px; }
.form-panel .upload-zone { display: grid; justify-items: center; gap: 6px; margin: 0 0 16px; padding: 26px 14px; text-align: center; border: 1px dashed #aab7e8; border-radius: 12px; background: #f8f9ff; overflow-wrap: anywhere; }
.upload-zone input { max-width: 360px; margin-top: 7px !important; }
.changelog-editor { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.screenshot-editor { display: flex; gap: 12px; overflow-x: auto; padding: 10px 0 4px; }
.screenshot-item { flex: 0 0 auto; }
.screenshot-drag { display: block; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: grab; touch-action: none; user-select: none; }
.screenshot-item.is-dragging .screenshot-drag { opacity: .65; cursor: grabbing; }
.screenshot-item label > input[type=checkbox] { display: inline-block; }
.screenshot-editor img { display: block; width: 100px; height: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
.screenshot-editor input[type=checkbox] { width: auto; vertical-align: middle; margin: 0; }
.screenshot-preview { max-width: min(94vw, 1100px); max-height: 94vh; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.screenshot-preview::backdrop { background: #111827b8; }
.screenshot-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.screenshot-preview-head h2 { margin: 0; }
.screenshot-preview img { display: block; max-width: 100%; max-height: calc(94vh - 74px); margin: 0 auto; object-fit: contain; }
.edit-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(204px, 260px); gap: 15px; align-items: start; }
.settings-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; align-items: start; }
.edit-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.identity { display: flex; flex-wrap: wrap; gap: 12px 25px; background: #f6f7fb; padding: 11px 12px; margin-top: 13px; border-radius: 8px; }
.identity div > span { display: block; color: var(--muted); font-size: 11px; }
.release-panel > a, .release-panel > form { margin: 10px 0 0; }
.side-meta { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.side-meta dt { color: var(--muted); font-size: 11px; }
.side-meta dd { margin: 0 0 5px; }
.flash { padding: 10px 12px; margin-bottom: 15px; border-radius: 8px; border: 1px solid #b8e6cd; color: #175c3f; background: #e8f8ef; }
.flash.error { border-color: #f5c8d0; color: #922b41; background: #fff0f3; }
.public-wrap { width: min(1080px,calc(100% - 36px)); margin: 0 auto; }
.public-body { min-height: 100vh; display: flex; flex-direction: column; }
.public-body > main { flex: 1; display: flex; flex-direction: column; }
.public-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: 22px; border-radius: 20px; padding: clamp(23px, 6vw, 63px); background: linear-gradient(115deg,#1d2859 0%,#303e86 65%,#4759bb 100%); color: #fff; text-align: center; }
.public-hero h1 { font-size: clamp(34px, 6vw, 62px); margin: 12px 0 10px; overflow-wrap: anywhere; }
.public-hero > p { color: #e2e6fc; font-size: 16px; margin: 0 auto 21px; max-width: 530px; overflow-wrap: anywhere; }
.hero-decoration { position: absolute; right: 8%; top: 18%; color: #aab5ff35; transform: rotate(-12deg); z-index: -1; }
.source-copy { display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; margin: 0 auto; gap: 15px; color: #eef0ff; background: #121a4b70; padding: 6px 6px 6px 13px; border-radius: 9px; }
.source-stores { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: min(100%,720px); gap: 12px; margin: 18px auto 0; }
.source-store { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 62px; padding: 8px; border: 1px solid #2876ea; border-radius: 8px; background: #fff; color: #1764cf; font-size: clamp(13px,1.7vw,17px); font-weight: 650; }
.source-store:hover { background: #eff6ff; }
.store-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; color: #fff; }
.store-icon.cydia { background: linear-gradient(#dca071,#694031); }
.store-icon.zebra { background: #f2f5f7; color: #24313a; }
.store-icon.installer { background: linear-gradient(#63c7fa,#1473d8); }
.store-icon.sileo { background: linear-gradient(#23d5c4,#00a0a6); }
.public-footer { display: grid; justify-items: center; gap: 6px; margin-top: auto; padding: 28px 0; color: var(--muted); font-size: 12px; text-align: center; }
.public-footer p { margin: 0; }
.beian-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.beian-links a { display: inline-flex; align-items: center; gap: 5px; }
.beian-links a:hover { text-decoration: underline; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-intro { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px,6vw,75px); color: #fff; background: linear-gradient(140deg,#151d3e,#324293 100%); overflow: hidden; }
.login-intro .brand-caption { color: #c2c9e9; }
.login-copy h1 { font-size: clamp(42px,6vw,83px); }
.login-copy h1 span { color: #a9b4ff; }
.login-copy .eyebrow { color: #b8c3ff; }
.login-copy p { margin-top: 15px; color: #dde3fa; }
.login-orbit { position: absolute; right: -20px; bottom: 16%; color: #a9b7ff30; z-index: -1; transform: rotate(-12deg); }
.login-bottom { color: #dde4ff; font-size: 12px; }
.login-bottom i { margin-right: 4px; }
.login-main { padding: 25px; display: grid; place-items: center; background: #fff; }
.login-form { width: min(100%, 360px); }
.login-form h2 { font-size: 30px; margin-bottom: 5px; }
.login-form .back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 20px; }
.login-form form, .login-form .flash { margin-top: 19px; }
.login-form label { margin-bottom: 13px; }
.login-form .btn { margin-top: 5px; }
.depiction { padding: 16px; }
.depiction-panel { max-width: 690px; margin: 18px auto; background: #fff; border-radius: 15px; border: 1px solid var(--line); padding: 22px; }
.depiction-panel p { overflow-wrap: anywhere; }
.depiction-panel .muted { margin-top: 8px; }
.depiction-panel .description { margin-top: 15px; overflow-wrap: anywhere; }
.depiction-details, .depiction-footer { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.depiction-details h2 { margin: 0 0 12px; font-size: 18px; }
.depiction-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 0; }
.depiction-details dt, .depiction-details dd { margin: 0; overflow-wrap: anywhere; }
.depiction-details dt { color: var(--muted); font-size: 14px; }
.depiction-details dd { margin-top: 3px; font-size: 17px; font-weight: 600; }
.depiction-footer { color: var(--muted); font-size: 12px; text-align: center; }
.depiction-footer p { margin: 0 0 6px; }
@media (max-width: 1000px) {
  .admin-layout { grid-template-columns: 182px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .metric { padding: 12px; gap: 8px; }
  .metric-icon { width: 32px; height: 32px; }
  .edit-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  .source-stores { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-layout { display: block; }
  .sidebar { padding: 11px 12px; display: flex; gap: 8px; }
  .sidebar .brand { margin: 0; }
  .sidebar .brand-mark { width: 34px; height: 34px; }
  .sidebar .nav-label { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar nav a { width: auto; min-height: 33px; padding: 4px 8px; gap: 5px; }
  .topbar { min-height: 49px; }
  .workspace { padding-top: 19px; }
  .page-head { align-items: start; }
  .package-edit-head { flex-wrap: wrap; }
  .metrics { gap: 5px; }
  .metric { display: block; padding: 7px; }
  .metric-icon { display: none; }
  .metric strong.metric-date { white-space: normal; }
  .filters { flex-wrap: wrap; }
  .searchbox { flex: 1 0 100%; max-width: none; }
  .package-group summary { gap: 8px; padding-inline: 12px; }
  .package-group .package-line { gap: 8px; }
  .package-group .package-icon { width: 28px; height: 28px; }
  .package-group-updated { white-space: normal; }
  .package-group-actions { flex-direction: column; gap: 4px; }
  .settings-layout { grid-template-columns: minmax(0,1fr); }
  .login-layout { display: block; }
  .login-intro { min-height: 230px; gap: 22px; }
  .login-copy h1 { font-size: 35px; }
  .login-copy p { margin-top: 6px; }
  .login-main { padding: 23px 18px 42px; }
}
@media (max-width: 425px) {
  .topbar-path > span, .topbar-path > svg, .account-name { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn { padding-inline: 7px; gap: 5px; font-size: 12px; }
  .source-stores { gap: 8px; }
  .source-store { gap: 5px; min-height: 50px; padding: 5px; }
  .store-icon { width: 25px; height: 25px; border-radius: 6px; }
  .store-icon svg { width: 18px; height: 18px; }
  .repo-banner { align-items: start; flex-direction: column; gap: 8px; padding: 14px; }
  .source-copy { flex-direction: column; padding: 8px; gap: 5px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .page-head > .btn, .page-head-actions > .btn { padding: 6px 8px; }
}
