:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1b2c47; background: #f5f7fb; font-synthesis: none;
  --blue: #183f8f; --muted: #738099; --line: #e5eaf2;
  --page-gutter: clamp(24px, 2.5vw, 48px);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #89a9ee; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.header { width: 100%; min-height: 64px; padding: 13px var(--page-gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.header-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.header-title { margin: 0; padding-left: 20px; border-left: 1px solid var(--line); font-size: 16px; line-height: 1.4; font-weight: 650; letter-spacing: 0; white-space: nowrap; }
.brand { color: #172b47; text-decoration: none; font-size: 29px; letter-spacing: -1.6px; font-weight: 800; display: inline-flex; align-items: center; gap: 11px; }
.brand-symbol { display: grid; place-items: center; width: 34px; height: 36px; background: var(--blue); border-radius: 11px; color: white; font-size: 31px; line-height: 1; padding-bottom: 4px; letter-spacing: -1px; }
.brand-dot { color: #4b83b4; }
.header-right { display: flex; align-items: center; gap: 20px; font-size: 12px; white-space: nowrap; }
.environment { display: inline-flex; align-items: center; gap: 7px; color: #647289; }
.status-dot { background: #40967b; width: 6px; height: 6px; border-radius: 50%; }
.text-button { background: none; border: 0; color: #68758b; padding: 9px 0 9px 9px; font-size: 13px; }
.text-button:hover { color: var(--blue); }
main { width: 100%; min-width: 0; padding: 24px var(--page-gutter) 0; flex: 1; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; color: #8290a3; margin: 0 0 12px; }
h2, h3, p { overflow-wrap: anywhere; }
h2 { font-size: 19px; line-height: 1.4; margin: 0; }
.versions-panel { border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 4px 20px #1b315005; overflow: hidden; }
.platform-tabs { display: flex; gap: 9px; padding: 14px 22px 0; border-bottom: 1px solid var(--line); }
.platform-tab { position: relative; display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-width: 155px; border: 0; background: transparent; color: #788499; font-size: 15px; font-weight: 650; padding: 14px 18px 18px; }
.platform-tab::after { content: ""; position: absolute; height: 3px; left: 15px; right: 15px; bottom: -1px; border-radius: 3px 3px 0 0; background: transparent; }
.platform-tab:hover { color: var(--blue); background: #f8faff; border-radius: 8px 8px 0 0; }
.platform-tab[aria-selected="true"] { color: var(--blue); }
.platform-tab[aria-selected="true"]::after { background: var(--blue); }
.platform-tab svg { width: 23px; height: 23px; flex-shrink: 0; }
.tab-count { background: #eef1f6; color: #7e899b; font-size: 11px; line-height: 20px; min-width: 23px; border-radius: 6px; padding: 0 6px; }
.platform-tab[aria-selected="true"] .tab-count { background: #edf2ff; color: var(--blue); }
.list-toolbar { padding: 19px 26px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.platform-tip { color: #69798f; font-size: 12px; margin: 0; line-height: 1.7; max-width: 88ch; }
.release-summary { font-size: 11px; color: #8b96a8; white-space: nowrap; }
.list-columns { background: #f9fafc; padding: 11px 26px; border-top: 1px solid #eef1f6; border-bottom: 1px solid #eef1f6; display: flex; justify-content: space-between; color: #8994a5; font-size: 11px; }
.list-columns span:last-child { width: 162px; text-align: center; }
.release-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 25px; padding: 25px 26px; border-bottom: 1px solid #edf0f6; scroll-margin: 24px; }
.release-row:last-child { border-bottom: 0; }
.release-row.is-latest { background: linear-gradient(100deg, #f8faff 0%, white 85%); }
.release-row.is-latest::before { position: absolute; content: ""; top: 25px; left: 0; height: 28px; width: 3px; background: #4169ad; border-radius: 0 3px 3px 0; }
.release-row.is-targeted { box-shadow: inset 0 0 0 2px #9db8eb; }
.release-detail { min-width: 0; }
.release-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.version-number { font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -.3px; margin: 0; color: #233753; }
.build-number { font-size: 11px; color: #8995a8; font-variant-numeric: tabular-nums; }
.latest-tag, .state-tag { display: inline-block; font-size: 10px; line-height: 21px; padding: 0 7px; border-radius: 5px; font-weight: 550; }
.latest-tag { color: #325d9b; background: #eaf1ff; }
.state-tag { color: #8793a4; background: #f0f2f6; }
.state-tag.expired { color: #a0783e; background: #faf3e7; }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 9px; color: #8a95a6; font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.release-meta > * { max-width: 100%; }
.release-meta > :not(:first-child) { position: relative; }
.release-meta > :not(:first-child)::before { content: "·"; position: absolute; left: -9px; color: #b4bdcb; }
.release-notes { margin: 15px 0 0; color: #6a7890; font-size: 12px; line-height: 1.8; max-width: 88ch; }
.release-notes summary { display: flex; align-items: baseline; gap: 10px; color: #65768e; cursor: pointer; list-style: none; font-size: 11px; }
.release-notes summary::-webkit-details-marker { display: none; }
.release-notes summary::before { content: "›"; display: inline-block; color: #99a5b6; font-size: 15px; line-height: 1; transition: transform .15s; }
.release-notes[open] summary::before { transform: rotate(90deg); }
.notes-preview { font-size: 12px; color: #8a96a7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.release-notes[open] .notes-preview { display: none; }
.release-notes p { white-space: pre-wrap; margin: 7px 0 0 17px; }
.no-notes { margin: 13px 0 0; font-size: 12px; color: #a1aab9; }
.release-actions { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 41px; padding: 10px 20px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: white; font-weight: 550; font-size: 13px; transition: background .15s; }
.primary-button:hover:not(:disabled) { background: #123376; }
.primary-button:disabled { background: #f0f2f6; color: #a3acbb; border-color: #e9edf3; }
.install-button { min-width: 77px; }
.qr-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 41px; padding: 9px 10px; border: 1px solid #e0e6f0; background: white; border-radius: 8px; color: #73819a; font-size: 12px; }
.qr-button svg { width: 17px; height: 17px; }
.qr-button:hover { border-color: #b9cbe9; color: var(--blue); background: #f9fbff; }
.empty-list { padding: 41px 24px 45px; text-align: center; color: #93a0b3; }
.empty-symbol { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 14px; border: 1px dashed #d5deeb; border-radius: 11px; color: #8c9eb8; font-size: 21px; }
.empty-list h3 { font-size: 14px; font-weight: 550; margin: 0 0 8px; color: #7b8aa1; }
.empty-list p { font-size: 12px; margin: 0; line-height: 1.8; }
.help-panel { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #e6ecf6; background: #f0f4fa; padding: 17px 20px; border-radius: 11px; margin-top: 20px; }
.help-marker { width: 16px; height: 16px; line-height: 14px; font-family: Georgia, serif; border-radius: 50%; border: 1px solid #a7b5c9; color: #8798af; text-align: center; font-size: 11px; flex-shrink: 0; margin-top: 1px; }
.help-panel h3 { margin: 0 0 5px; font-size: 11px; font-weight: 600; color: #7588a4; }
.help-panel p { margin: 0; color: #8898ad; font-size: 11px; line-height: 1.9; max-width: 110ch; }
.login-panel { width: 100%; margin: clamp(16px, 5vh, 56px) auto 0; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 15px; max-width: 600px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 20px; }
.panel-icon { display: grid; place-items: center; width: 42px; height: 44px; border-radius: 12px; background: #eff4fd; color: #637fae; }
.panel-icon svg { width: 22px; height: 22px; }
.login-panel .eyebrow { font-size: 9px; margin-bottom: 6px; }
.muted { color: #8b97a9; line-height: 1.8; font-size: 12px; margin: 9px 0 0; }
#login-form { grid-column: 1 / -1; margin-top: 3px; }
#login-form label { display: block; font-size: 12px; color: #6e7b91; margin-bottom: 10px; }
.login-fields { display: flex; gap: 10px; }
input { width: 100%; min-width: 0; border: 1px solid #dce3ee; border-radius: 8px; background: #fbfcfe; min-height: 43px; padding: 11px 13px; font-size: 13px; color: #233753; }
input::placeholder { color: #a8b1bf; }
.login-fields .primary-button { flex-shrink: 0; }
.field-hint { font-size: 11px; color: #98a3b5; line-height: 1.8; margin: 12px 0 0; }
.loading { font-size: 13px; color: #91a0b5; padding: 30px 0; }
.notice { background: #fff5ed; border: 1px solid #f1dfcf; color: #a06b42; border-radius: 10px; padding: 13px 17px; font-size: 12px; line-height: 1.8; margin-bottom: 18px; overflow-wrap: anywhere; }
.notice.success { background: #edf6f2; border-color: #d5e8df; color: #4e8a72; }
footer { width: 100%; margin-top: 32px; padding: 20px var(--page-gutter) 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; font-size: 10px; color: #a1acbb; line-height: 1.8; }
dialog { border: 1px solid #e4eaf3; border-radius: 18px; padding: 32px; max-width: min(400px, calc(100vw - 32px)); text-align: center; box-shadow: 0 20px 80px #1833522e; color: #233753; }
dialog::backdrop { background: #17294466; backdrop-filter: blur(3px); }
dialog form { position: absolute; right: 13px; top: 9px; }
.dialog-close { border: 0; background: none; font-size: 25px; color: #8591a6; padding: 2px 7px; }
dialog .eyebrow { font-size: 8px; margin-top: 6px; }
dialog h2 { font-size: 22px; }
.qr-image { width: 220px; max-width: 100%; padding: 8px; margin: 20px auto 14px; background: white; border: 1px solid #edf0f5; border-radius: 10px; }
.qr-image svg { display: block; width: 100%; height: auto; }
.qr-version { font-size: 13px; color: #687b96; }
.dialog-hint { font-size: 11px; line-height: 1.8; color: #a0aabc; margin-bottom: 0; }
@media (max-width: 700px) {
  :root { --page-gutter: 16px; }
  .header { min-height: 60px; padding: 12px var(--page-gutter); gap: 14px; }
  .header-left { gap: 12px; }
  .header-title { padding-left: 12px; font-size: 13px; }
  .brand { font-size: 24px; gap: 8px; }
  .brand-symbol { width: 30px; height: 32px; border-radius: 9px; font-size: 28px; }
  .header-right { gap: 12px; font-size: 11px; }
  .environment { gap: 5px; }
  .text-button { padding: 8px 0; font-size: 12px; }
  .platform-tabs { gap: 0; padding: 8px 12px 0; }
  .platform-tab { min-width: 0; flex: 1; padding: 14px 8px 17px; font-size: 14px; }
  .list-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 17px 20px; }
  .list-columns { display: none; }
  .release-row { grid-template-columns: minmax(0, 1fr); gap: 17px; padding: 22px 20px; }
  .release-row:first-child { border-top: 1px solid #edf0f6; }
  .release-row.is-latest::before { top: 23px; }
  .release-actions { justify-content: flex-start; padding-top: 0; }
  .install-button { min-width: 107px; }
  .qr-button { min-width: 78px; }
  .signature-expiry { flex-basis: 100%; }
  .release-meta .signature-expiry::before { display: none; }
  .login-panel { margin-top: 12px; padding: 23px 20px; gap: 16px; }
  .login-fields { flex-direction: column; }
  .login-fields .primary-button { width: 100%; }
  .help-panel { padding: 16px; }
  footer { margin-top: 24px; padding: 20px var(--page-gutter); flex-direction: column; gap: 3px; }
}
@media (max-width: 400px) {
  .header-left { gap: 10px; }
  .header-title { padding-left: 10px; }
  .brand { font-size: 22px; gap: 7px; }
  .brand-symbol { width: 28px; height: 30px; font-size: 26px; }
  .header-right { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
