:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  color: #20262e;
  background: #f7f8fa;
  --blue: #b94724;
  --light: #fff1e9;
  --muted: #69717e;
  --border: #e7e9ed;
  --sidebar-width: 208px;
  line-height: 1.55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
.top { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; }
.top-inner, main, footer { width: min(1200px, 100% - 64px); margin-inline: auto; }
.top-inner { width: calc(100% - 64px); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; line-height: 1.25; font-weight: 730; }
.brand small { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 7px; }
.brand-mark { width: 32px; height: 34px; display: inline-grid; place-content: center; position: relative; border-radius: 8px; background: #252b34; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -3px; padding-right: 4px; }
.brand-mark > span { color: #ffb38b; position: absolute; right: 5px; bottom: 1px; }
nav { display: flex; align-items: center; gap: 6px; }
nav a, .quiet { padding: 8px 14px; text-decoration: none; border-radius: 6px; font-size: 13px; font-weight: 550; color: #636b77; }
nav a[aria-current], nav a:hover, .quiet:hover { background: var(--light); }
nav a[aria-current] { color: var(--blue); }
.quiet { margin-left: 14px; border-left: 1px solid var(--border); border-radius: 0; }
.header-actions { display: flex; align-items: center; }
.header-caption { color: var(--muted); font-size: 12px; }
.sidebar { position: fixed; inset: 77px auto 0 0; z-index: 1; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 28px 12px 20px; background: #fff; border-right: 1px solid var(--border); overflow-y: auto; }
.sidebar-label { margin: 0 16px 16px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 16px; font-size: 14px; border-radius: 6px; }
.sidebar nav a[aria-current] { font-weight: 650; }
.sidebar nav a[aria-current]::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--blue); }
.sidebar-caption { margin: auto 16px 0; padding-top: 32px; color: #545e6c; font-size: 12px; font-weight: 600; }
.sidebar-caption span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
main { flex: 1; padding-block: 36px 64px; container: workspace / inline-size; }
.console main, .console > footer { width: calc(100% - var(--sidebar-width) - 64px); margin-left: calc(var(--sidebar-width) + 32px); margin-right: 32px; }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(25px, 4vw, 32px); font-weight: 740; line-height: 1.2; }
h2 { font-size: 20px; margin: 0; }
h3 { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.subtle { color: var(--muted); margin: 9px 0 0; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px; min-width: 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 19px; }
.pill { border-radius: 20px; background: #eef2ee; color: #3b5246; padding: 3px 9px; font-size: 12px; white-space: nowrap; }
.pill.published { background: #dfefd9; color: #275034; }
.pill.withdrawn { background: #f1eee9; color: #5e4d40; }
form { display: grid; gap: 13px; }
label, legend { display: block; font-size: 13px; font-weight: 700; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
input:not([type=radio]), textarea, select { margin-top: 5px; display: block; width: 100%; border: 1px solid #d8dce2; border-radius: 6px; padding: 10px 11px; color: inherit; background: #fff; font: inherit; font-weight: 400; }
input[type=file] { background: #f7faff; font-size: 12px; }
input::file-selector-button { border: 0; border-radius: 5px; padding: 6px 9px; background: var(--light); color: var(--blue); font-weight: 650; margin-right: 8px; cursor: pointer; }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin: 3px 0 0; }
form > .hint { margin-top: -9px; }
button, .primary, .secondary { font-family: inherit; cursor: pointer; }
button { background: none; border: 0; color: inherit; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; min-height: 39px; border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; font-size: 13px; font-weight: 700; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #9c391b; }
.secondary { background: #fff; border-color: #dce0e5; color: #4a525e; }
.secondary:hover { background: var(--light); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #e1a286; outline-offset: 3px; }
progress { width: 100%; accent-color: var(--blue); }
.login { max-width: 440px; margin: 35px auto; padding: 29px; }
.login h1 { font-size: 27px; }
.login form { margin-top: 19px; }
.notice { border: 1px solid #b7ccb8; background: #eaf4e9; border-radius: 8px; padding: 10px 14px; margin-bottom: 15px; }
.notice.error { color: #792f2a; border-color: #e7c2be; background: #fff0ef; }
.empty { grid-column: 1 / -1; border: 1px dashed #c9d5e6; border-radius: 9px; padding: 34px 15px; background: #fff; text-align: center; color: var(--muted); }
.version { padding: 14px 0; border-top: 1px solid var(--border); }
.version:first-child { padding-top: 0; border-top: 0; }
.version:last-child { padding-bottom: 0; }
.version-top { display: flex; justify-content: space-between; align-items: start; gap: 9px; }
.version p { margin: 6px 0 0; overflow-wrap: anywhere; }
.version > .secondary { margin-top: 10px; }
.notes { white-space: pre-wrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.workspace-kicker { font-size: 10px; font-weight: 650; letter-spacing: .13em; margin: 0 0 15px; color: var(--blue); }
.workspace-kicker span { letter-spacing: .04em; color: #737c89; margin-left: 7px; }
.page-heading { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.03em; }
.page-heading .subtle { margin-top: 10px; font-size: 13px; }
.page-heading .primary { padding-inline: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px 0; border-block: 1px solid var(--border); margin-bottom: 28px; }
.stat { padding: 0 28px; border-left: 1px solid var(--border); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat:first-child { padding-left: 0; }
.stat > .stat-icon { display: none; }
.stat-icon { color: var(--blue); background: #eef4ff; border-radius: 8px; width: 31px; height: 31px; display: grid; place-items: center; flex: none; }
.stat strong { display: block; font-size: 26px; font-weight: 600; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 25px; }
.filters { display: flex; gap: 3px; background: #edeff2; padding: 4px; border-radius: 8px; }
.filters button { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 13px; color: #626b78; font-size: 12px; font-weight: 550; border-radius: 5px; }
.filters button[aria-pressed=true] { color: #242a33; background: #fff; box-shadow: 0 1px 3px #20262e12; }
.search { display: flex; gap: 7px; flex: 0 1 350px; }
.search input { margin: 0; min-width: 0; font-size: 13px; }
.search button { white-space: nowrap; flex: none; font-weight: 500; }
.library-caption { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.library-caption h2 { font-size: 14px; font-weight: 650; }
.library-caption h2 span { display: inline-block; padding: 1px 7px; margin-left: 7px; background: #e9ecf0; border-radius: 5px; color: #666f7b; font-size: 11px; }
.library-caption > span { font-size: 11px; color: var(--muted); }
.library-head, .package-card { display: grid; grid-template-columns: minmax(200px, 1.9fr) 75px 90px 100px 85px 238px; align-items: center; gap: 16px; padding-inline: 20px; }
.library-head { font-size: 11px; color: var(--muted); padding-bottom: 10px; }
.library-head > :last-child { text-align: right; }
.catalog { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.package-card { border: 0; border-radius: 0; border-top: 1px solid var(--border); min-height: 86px; padding-block: 18px; background: transparent; }
.package-card:first-child { border-top: 0; }
.package-card:hover { background: #fcfcfd; }
.package-card:first-child { border-radius: 10px 10px 0 0; }
.package-card:last-child { border-radius: 0 0 10px 10px; }
.package-head { display: flex; gap: 10px; align-items: center; }
.app-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #f0eefb; color: #7b70b7; display: grid; place-items: center; font-size: 20px; }
.app-icon.android { color: #427e68; background: #eaf3ee; }
.package-info { min-width: 0; }
.package-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.package-name h3 { font-size: 14px; font-weight: 650; }
.release-active { width: 6px; height: 6px; flex: none; background: #3b9c73; border-radius: 50%; }
.package-name .pill { padding: 2px 6px; font-size: 11px; border-radius: 5px; }
.pill.merged { background: #f0eefb; color: #7060a5; }
.package-meta { margin: 3px 0 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.release-cell { min-width: 0; font-size: 12px; color: #555f6e; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cell-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.package-card > .package-footer { display: contents; }
.package-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.version .package-actions { justify-content: flex-start; }
.version .package-actions { margin-top: 10px; }
.package-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 6px 9px; min-height: 32px; text-decoration: none; color: #56606e; border: 1px solid var(--border); border-radius: 5px; white-space: nowrap; }
.package-action.copy-link { background: #fff5ee; color: #aa4729; border-color: #f4e5dc; }
.package-action:hover { background: var(--light); }
.package-action.danger { color: #b3283a; }
.package-action:disabled { color: #637086; opacity: .75; cursor: default; }
.action-menu { position: relative; margin: 0; color: #666f7c; font-size: 12px; }
.action-menu > summary { list-style: none; min-height: 32px; padding: 6px 7px; border: 1px solid transparent; border-radius: 5px; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu > summary::after { content: '⌄'; margin-left: 5px; }
.action-menu[open] > summary, .action-menu > summary:hover { background: #f1f2f5; }
.action-menu-options { position: absolute; right: 0; top: calc(100% + 5px); z-index: 4; display: grid; gap: 3px; padding: 6px; min-width: 145px; border: 1px solid var(--border); background: #fff; box-shadow: 0 8px 24px #20262e12; border-radius: 8px; }
.action-menu-options .package-action { justify-content: flex-start; border: 0; width: 100%; padding: 8px 9px; }
.release-detail, .package-card .copy-status, .package-card .package-footer > input { grid-column: 1 / -1; }
.release-detail { min-width: 0; padding: 14px 16px; border-radius: 6px; background: #f7f8fa; font-size: 12px; overflow-wrap: anywhere; }
.release-detail p { margin: 0 0 7px; }
.release-detail .notes { color: #535d6b; }
.release-detail details { margin: 0; }
.package-card .copy-status { margin: 0; color: #388363; }
.copy-status:empty { display: none; }
.action-dialog { width: min(460px, calc(100% - 24px)); border: 1px solid var(--border); border-radius: 12px; color: inherit; padding: 24px; }
.action-dialog::backdrop { background: #15253a88; }
.action-dialog .subtle { margin: 0; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 7px; }
.dialog-error { color: #a72938; margin: 0; }
.primary.danger { background: #b3283a; }
.releases-panel { scroll-margin-top: 84px; }
.publish-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 27px; margin: 18px 0 24px; padding: 0; color: #5a6d86; }
.publish-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.publish-steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e9eef5; }
.publish-steps li[aria-current], .publish-steps li.completed { color: var(--blue); }
.publish-steps li[aria-current] span, .publish-steps li.completed span { background: var(--light); }
.publish-workspace { display: grid; gap: 16px; }
.upload-panel { padding: clamp(16px, 2vw, 30px); }
.apk-dropzone { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; min-height: 300px; border: 1px dashed #dcb79f; border-radius: 8px; background: #fffbf7; padding: 24px 14px; text-align: center; }
.apk-dropzone.dragging { background: #ffefe3; border-color: var(--blue); }
.apk-dropzone h2 { margin: 8px 0 4px; }
.apk-dropzone p { margin: 0; color: var(--muted); }
.apk-dropzone .primary { margin: 3px 0 0; min-height: 43px; padding-inline: 24px; }
.upload-glyph { color: var(--blue); font-size: 27px; display: inline-flex; }
.apple-option { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 17px; }
.apple-option button { margin-left: auto; }
.selected-package { border: 1px solid var(--border); background: #faf8f5; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; overflow-wrap: anywhere; }
.release-fields { display: grid; gap: 13px; min-width: 0; }
.release-fields > .hint { margin-top: -9px; }
#confirm-step, .publish-share { width: min(100%, 660px); margin-inline: auto; }
.publish-share { display: grid; gap: 12px; }
.publish-share .subtle, .publish-share .hint { margin: 0; }
.publish-share .hint:empty { display: none; }
.show-download > .top, .show-download > .sidebar, .show-download > main, .show-download > footer { display: none; }
body.show-download { background: #fff; }
.download-page { width: min(100% - 36px, 720px); margin: 0 auto; color: #23343d; padding-bottom: 35px; }
.download-heading { display: flex; align-items: center; gap: 10px; min-height: 66px; border-bottom: 1px solid #e9edef; }
.download-heading .icon { width: 26px; height: 26px; color: #279558; vertical-align: middle; }
.download-content { text-align: center; padding-top: 36px; }
.download-app-icon { width: 105px; height: 105px; background: #eff7f3; border-radius: 25px; margin: 0 auto 23px; display: grid; place-items: center; color: #24956e; }
.download-app-icon .icon { width: 59px; height: 59px; }
.download-content h1 { font-size: 32px; overflow-wrap: anywhere; }
.download-subtitle { color: #6b7b82; margin: 11px 0 29px; }
.download-qr { display: block; width: 160px; height: 160px; margin: 0 auto; }
.download-content > .subtle { font-size: 13px; }
.download-choices { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 15px; }
.install-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 30px; background: #20a68b; color: #fff; padding: 12px 28px; min-width: 210px; text-decoration: none; font-size: 18px; font-weight: 700; }
.install-button:disabled { background: #778b88; opacity: 1; cursor: default; }
.download-content h2 { margin-top: 35px; padding-top: 22px; border-top: 1px solid #e9edef; text-align: left; }
.download-details { display: grid; grid-template-columns: auto minmax(0, 1fr); margin-block: 8px; text-align: left; }
.download-details dt, .download-details dd { padding: 15px 0; border-bottom: 1px solid #edf0f2; margin: 0; }
.download-details dt { color: #6b7b82; }
.download-details dd { text-align: right; overflow-wrap: anywhere; padding-left: 12px; }
.download-content > .notes { font-size: 14px; text-align: left; margin-top: 17px; }
.install-help { border-top: 1px solid #e9edef; padding-top: 16px; margin-top: 22px; text-align: left; font-size: 14px; }
.wechat-guide { position: fixed; inset: 0; z-index: 10; background: #14222beb; color: #fff; padding: 160px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; overflow-y: auto; }
.wechat-guide h2 { font-size: 25px; margin-bottom: 5px; }
.wechat-guide p { margin: 0; }
.wechat-guide b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eb9350; margin-right: 8px; }
.wechat-arrow { position: absolute; top: 22px; right: 22px; width: 75px; height: 110px; }
.wechat-guide input { max-width: 500px; }
details { margin-top: 8px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
summary { cursor: pointer; }
footer { border-top: 1px solid var(--border); padding: 15px 0 20px; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 1100px) {
  .library-head, .package-card { grid-template-columns: minmax(155px, 1fr) 65px 65px 85px 65px 238px; gap: 10px; padding-inline: 16px; }
}
@media (max-width: 880px) {
  .top-inner, main, footer { width: calc(100% - 40px); }
  .brand small { display: none; }
  .library-head { display: none; }
  .catalog { gap: 12px; border: 0; background: transparent; }
  .package-card, .package-card:first-child, .package-card:last-child { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 10px; padding: 18px; background: #fff; row-gap: 18px; }
  .package-head { grid-column: 1 / -1; }
  .cell-label { display: block; position: static; width: auto; height: auto; clip-path: none; white-space: normal; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
  .package-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 14px; border-top: 1px solid var(--border); }
}
@container workspace (max-width: 820px) {
  .library-head { display: none; }
  .catalog { gap: 12px; border: 0; background: transparent; }
  .package-card, .package-card:first-child, .package-card:last-child { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 10px; padding: 18px; background: #fff; row-gap: 18px; }
  .package-head { grid-column: 1 / -1; }
  .cell-label { display: block; position: static; width: auto; height: auto; clip-path: none; white-space: normal; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
  .package-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 14px; border-top: 1px solid var(--border); }
  .catalog-toolbar { gap: 14px; }
  .search { flex-basis: 300px; }
}
@container workspace (max-width: 450px) {
  .package-card, .package-card:first-child, .package-card:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { flex-basis: 100%; }
}
@media (max-width: 700px) {
  .top-inner { min-height: 66px; }
  .header-caption { display: none; }
  .sidebar { position: static; width: calc(100% - 32px); margin: 16px auto 0; padding: 6px; border: 1px solid var(--border); border-radius: 9px; overflow: visible; }
  .sidebar-label, .sidebar-caption { display: none; }
  .sidebar nav { display: flex; gap: 3px; }
  .sidebar nav a { flex: 1; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 5px; font-size: 12px; white-space: nowrap; }
  .sidebar nav a[aria-current]::before { inset: auto 20% 0; height: 2px; width: auto; }
  .console main, .console > footer { width: calc(100% - 32px); margin-inline: auto; }
}
@media (max-width: 600px) {
  main { padding-top: 28px; }
  .top-inner { min-height: 66px; flex-wrap: wrap; padding-block: 13px; gap: 12px; }
  .top-inner nav { gap: 3px; }
  .top-inner nav a, .quiet { padding: 6px 8px; font-size: 12px; }
  .quiet { margin-left: 2px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 27px; height: 29px; font-size: 21px; }
  .page-heading { align-items: flex-start; margin-bottom: 24px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading .subtle { font-size: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .stat { padding: 0 18px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat strong { font-size: 23px; }
  .catalog-toolbar { gap: 16px; }
  .search { flex-basis: 100%; }
  .library-caption > span { font-size: 10px; }
  .package-card, .package-card:first-child, .package-card:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .top-inner, main, footer { width: calc(100% - 32px); }
  .top-inner nav { width: 100%; justify-content: space-between; }
  .brand { gap: 8px; }
  .panel { padding: 16px; }
  .publish-steps { gap: 9px 12px; }
  .publish-steps li { font-size: 12px; gap: 5px; }
  .publish-steps li span { width: 22px; height: 22px; }
  .apple-option button { margin-left: 0; }
}
