:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  color: #192437;
  background: #f3f6fa;
  --blue: #176de3;
  --light: #eaf2ff;
  --muted: #53637a;
  --border: #dce4ef;
  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(1160px, 100% - 48px); margin-inline: auto; }
.top-inner { width: auto; margin: 0; padding-inline: 24px; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.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: 13px; font-weight: 500; border-left: 1px solid var(--border); margin-left: 7px; padding-left: 15px; }
nav { display: flex; align-items: center; gap: 6px; }
nav a, .quiet { padding: 8px 11px; text-decoration: none; border-radius: 7px; font-size: 13px; font-weight: 650; }
nav a[aria-current], nav a:hover, .quiet:hover { background: var(--light); }
main { flex: 1; padding-block: 35px 56px; }
.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: 14px; 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 #cad6e6; border-radius: 8px; 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: #0959c2; }
.secondary { background: #fff; border-color: var(--border); color: #234569; }
.secondary:hover { background: var(--light); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #5b9df2; 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; }
.console { --sidebar: 198px; }
.console main, .console footer { width: auto; margin-left: var(--sidebar); margin-right: 0; padding-inline: clamp(18px, 2.5vw, 46px); }
.sidebar { position: fixed; inset: 67px auto 0 0; width: var(--sidebar); padding: 26px 12px 16px; border-right: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; }
.sidebar p { margin: 0 12px 12px; font-size: 12px; color: var(--muted); }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; min-height: 43px; color: #344660; padding: 9px 12px; }
.sidebar nav a[aria-current] { color: var(--blue); }
.sidebar-caption { margin-top: auto; color: var(--muted); font-size: 12px; padding: 10px 8px; display: flex; align-items: center; gap: 7px; }
.sidebar-caption span { width: 7px; height: 7px; border-radius: 50%; background: #23845f; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.page-heading, .page-heading > div { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-heading { justify-content: space-between; margin-bottom: 17px; }
.page-heading .subtle { margin: 0; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 17px 9px; background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; }
.stat { display: flex; align-items: flex-start; gap: 10px; padding: 0 13px; border-left: 1px solid var(--border); min-width: 0; }
.stat:first-child { border-left: 0; }
.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: 21px; margin-top: 2px; overflow-wrap: anywhere; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 8px 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; }
.filters button { position: relative; display: flex; align-items: center; gap: 5px; min-height: 38px; padding: 6px 1px; color: var(--muted); font-weight: 680; }
.filters button[aria-pressed=true] { color: var(--blue); }
.filters button[aria-pressed=true]::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--blue); }
.search { display: flex; gap: 7px; flex: 0 1 310px; }
.search input { margin: 0; min-width: 0; font-size: 13px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.package-card { display: flex; flex-direction: column; align-self: stretch; padding: 15px; }
.package-head { display: flex; gap: 10px; align-items: center; }
.app-icon { width: 44px; height: 44px; flex: none; border-radius: 11px; background: #edf3ff; color: var(--blue); display: grid; place-items: center; font-size: 22px; font-weight: 750; }
.app-icon.android { color: #17704a; background: #e8f6ed; }
.package-info { min-width: 0; }
.package-name { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.package-name .pill { padding: 2px 6px; font-size: 11px; border-radius: 5px; }
.pill.merged { background: #edf3ff; color: #2455a0; }
.package-meta { margin: 3px 0 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.package-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block: 16px 11px; }
.package-metrics strong { display: block; font-size: 17px; margin-top: 4px; }
.package-card > .notes { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.package-card details { margin: 0 0 9px; }
.package-card > .package-footer { margin-top: auto; }
.package-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 7px; border-top: 1px solid var(--border); padding-top: 8px; margin-top: auto; }
.version .package-actions { margin-top: 10px; }
.package-action { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 680; padding: 4px 3px; min-height: 32px; text-decoration: none; color: var(--blue); border-radius: 5px; }
.package-action:hover { background: var(--light); }
.package-action.danger { color: #b3283a; }
.package-action:disabled { color: #637086; opacity: .75; cursor: default; }
.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: #1265d3; }
.publish-steps li[aria-current] span, .publish-steps li.completed span { background: #e7f0ff; }
.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: 278px; border: 2px dashed #7aaafa; border-radius: 12px; background: #eff5ff; padding: 24px 14px; text-align: center; }
.apk-dropzone.dragging { background: #e0edff; 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: #f5f8fe; 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; }
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: 740px) {
  .sidebar { display: none; }
  .console { --sidebar: 0px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 430px) {
  .top-inner, main, footer { width: calc(100% - 24px); }
  .top-inner { min-height: 59px; gap: 4px; width: auto; padding-inline: 12px; }
  nav { gap: 0; }
  nav a, .quiet { padding-inline: 6px; font-size: 12px; }
  .brand { font-size: 13px; gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .brand small { display: none; }
  .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; }
  .stat { padding-inline: 8px; }
  .stat strong { font-size: 18px; }
}
