:root {
  color-scheme: light;
  --ink: #161a1f;
  --muted: #6c737c;
  --muted-2: #9198a1;
  --paper: #ffffff;
  --surface: #f5f6f7;
  --line: #dfe2e6;
  --line-soft: #eceef0;
  --accent: #ec6556;
  --accent-dark: #d95143;
  --teal: #148c79;
  --teal-soft: #e9f6f3;
  --warning: #a46610;
  --warning-soft: #fff7e9;
  --danger: #bd3d34;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--surface); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }

.auth-shell { display: grid; grid-template-columns: minmax(500px, 1.3fr) minmax(430px, .7fr); min-height: 100vh; background: #fff; }
.product-stage { position: relative; display: flex; min-height: 100vh; padding: 42px 48px 32px; overflow: hidden; flex-direction: column; color: #fff; background: #1f2328; }
.product-stage::after { position: absolute; inset: auto 0 0; height: 34%; background: #171a1e; content: ""; }
.brand-lockup, .mobile-brand, .portal-brand { display: flex; align-items: center; gap: 11px; }
.brand-lockup { position: relative; z-index: 1; }
.brand-lockup img, .mobile-brand img, .portal-brand img { width: 38px; height: 38px; border-radius: 7px; }
.brand-lockup strong, .brand-lockup span, .portal-brand strong, .portal-brand span { display: block; }
.brand-lockup strong { font-size: 15px; }
.brand-lockup span { margin-top: 3px; color: #aeb5bd; font-size: 9px; text-transform: uppercase; }
.stage-copy { position: relative; z-index: 1; width: min(660px, 90%); margin: 10vh 0 25px; }
.stage-copy h1 { margin: 0 0 14px; font-size: 42px; line-height: 1.16; letter-spacing: 0; }
.stage-copy > p:last-child { max-width: 570px; margin: 0; color: #c7cbd0; font-size: 14px; line-height: 1.8; }
.app-preview { position: relative; z-index: 1; width: min(980px, 92%); margin: auto 0 30px; overflow: hidden; border: 1px solid #454a51; border-radius: 8px; box-shadow: 0 30px 70px rgba(0,0,0,.32); }
.app-preview img { display: block; width: 100%; height: auto; }
.stage-status { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: #aeb5bd; font-size: 10px; }
.stage-status span { width: 7px; height: 7px; background: #27b299; border-radius: 50%; box-shadow: 0 0 0 4px rgba(39,178,153,.12); }

.auth-panel { display: grid; min-height: 100vh; padding: 48px; place-items: center; background: #fff; }
.auth-wrap { width: min(390px, 100%); }
.mobile-brand { display: none; margin-bottom: 44px; }
.mobile-brand strong { font-size: 15px; }
.auth-wrap h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: 0; }
.auth-subtitle { margin: 0 0 28px; color: var(--muted); font-size: 12px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; height: 42px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.auth-tab { position: relative; color: var(--muted); background: transparent; border: 0; font-size: 12px; font-weight: 700; }
.auth-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after { background: var(--accent); }
.auth-form { display: grid; gap: 17px; }
.field { display: block; }
.field > span { display: block; margin-bottom: 7px; color: #555c64; font-size: 11px; font-weight: 700; }
.field-control { position: relative; display: flex; align-items: center; }
.field-control > svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }
.field-control input { width: 100%; height: 43px; padding: 0 44px 0 39px; color: var(--ink); background: #fff; border: 1px solid #d9dde1; border-radius: 6px; outline: 0; }
.field-control input:focus { border-color: #8aa9e3; box-shadow: 0 0 0 3px rgba(47,111,235,.09); }
.password-toggle { position: absolute; right: 5px; display: grid; width: 34px; height: 34px; padding: 0; color: var(--muted-2); background: transparent; border: 0; place-items: center; }
.password-toggle svg { width: 16px; height: 16px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 6px; font-size: 12px; font-weight: 750; }
.primary-button:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.primary-button svg { width: 17px; height: 17px; }
.auth-submit { margin-top: 3px; }
.form-error { min-height: 17px; margin: 12px 0 0; color: var(--danger); font-size: 11px; line-height: 1.5; }
.security-line { display: flex; align-items: center; gap: 7px; margin-top: 25px; color: var(--muted-2); font-size: 9px; }
.security-line svg { width: 13px; height: 13px; color: var(--teal); }

.portal { min-height: 100vh; background: var(--surface); }
.portal-header { display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 0 max(28px, calc((100vw - 1180px) / 2)); background: #202429; border-bottom: 1px solid #353a40; color: #fff; }
.portal-brand img { width: 34px; height: 34px; }
.portal-brand strong { font-size: 13px; }
.portal-brand span { margin-top: 2px; color: #939aa2; font-size: 8px; text-transform: uppercase; }
.account-block { display: flex; align-items: center; gap: 9px; }
.account-avatar { display: grid; width: 30px; height: 30px; color: #fff; background: var(--accent); border-radius: 6px; font-size: 11px; font-weight: 800; place-items: center; }
.account-meta { width: 180px; min-width: 0; }
.account-meta strong, .account-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-meta strong { font-size: 10px; }
.account-meta span { margin-top: 3px; color: #9ea5ad; font-size: 8px; }
.icon-button { display: grid; width: 36px; height: 36px; padding: 0; color: #69717a; background: #fff; border: 1px solid var(--line); border-radius: 5px; place-items: center; }
.icon-button:hover:not(:disabled) { color: var(--accent); border-color: #e2a59f; }
.icon-button svg { width: 16px; height: 16px; }
.portal-header .icon-button { color: #aeb5bd; background: transparent; border-color: #41474e; }
.portal-body { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 54px; }
.release-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.release-heading h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: 0; }
.release-heading h1 span { color: var(--accent); }
.release-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.channel-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: #256d61; background: var(--teal-soft); border: 1px solid #c8e8e1; border-radius: 5px; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.channel-badge i { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.release-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .82fr); min-height: 440px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.download-workspace { padding: 28px 30px; }
.release-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: -28px -30px 30px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.release-facts > div { min-width: 0; padding: 18px 17px; border-right: 1px solid var(--line); }
.release-facts > div:last-child { border-right: 0; }
.release-facts span, .release-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-facts span { margin-bottom: 5px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.release-facts strong { font-size: 10px; }
.warning-text { color: var(--warning); }
.download-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 5px 0 24px; }
.download-copy { min-width: 0; }
.download-copy h2 { margin: 0 0 6px; font-size: 18px; }
.download-copy p { margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.download-button { min-width: 156px; }
.download-progress { margin: 0 0 20px; }
.download-progress > div { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.download-progress strong { color: var(--ink); }
.download-progress progress { display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 8px; }
.download-progress progress::-webkit-progress-bar { background: #e9ebee; }
.download-progress progress::-webkit-progress-value { background: var(--teal); }
.download-progress progress::-moz-progress-bar { background: var(--teal); }
.checksum-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 13px 14px; background: #f7f8f9; border: 1px solid var(--line); border-radius: 6px; }
.checksum-block > div { min-width: 0; }
.checksum-block span { display: block; margin-bottom: 5px; color: var(--muted-2); font-size: 8px; font-weight: 700; }
.checksum-block code { display: block; overflow: hidden; color: #41474e; font: 9px Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.signature-notice { display: flex; gap: 11px; margin-top: 14px; padding: 13px 14px; color: var(--warning); background: var(--warning-soft); border: 1px solid #f0dfbd; border-radius: 6px; }
.signature-notice > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.signature-notice p { margin: 0; }
.signature-notice strong, .signature-notice span { display: block; }
.signature-notice strong { margin-bottom: 4px; font-size: 10px; }
.signature-notice span { color: #80633d; font-size: 9px; line-height: 1.5; }
.product-visual { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #202429; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: .94; }
.product-visual figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 48px 22px 20px; color: #fff; background: linear-gradient(transparent, rgba(16,19,22,.92)); }
.product-visual figcaption span, .product-visual figcaption strong { display: block; }
.product-visual figcaption span { color: #b4bac1; font-size: 8px; text-transform: uppercase; }
.product-visual figcaption strong { margin-top: 5px; font-size: 12px; }
.detail-band { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.detail-band > div { padding: 28px 30px; }
.detail-band > div:first-child { border-right: 1px solid var(--line); }
.detail-band h2 { margin: 0 0 20px; font-size: 18px; }
.release-notes ul { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; margin: 0; padding: 0; list-style: none; }
.release-notes li { display: flex; align-items: flex-start; gap: 8px; color: #4d545c; font-size: 10px; line-height: 1.5; }
.release-notes li svg { width: 14px; height: 14px; color: var(--teal); flex: 0 0 auto; }
.requirements dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 0; }
.requirements dl > div { min-width: 0; }
.requirements dt { color: var(--muted-2); font-size: 8px; text-transform: uppercase; }
.requirements dd { margin: 5px 0 0; font-size: 10px; font-weight: 650; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px max(28px, calc((100vw - 1180px) / 2)); color: #858d96; background: #202429; font-size: 8px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: min(360px, calc(100vw - 32px)); padding: 12px 15px; color: #fff; background: #252a30; border-left: 4px solid var(--teal); border-radius: 6px; box-shadow: 0 12px 35px rgba(0,0,0,.22); font-size: 10px; line-height: 1.5; }
.toast.error { border-left-color: var(--accent); }

@media (max-width: 1040px) {
  .auth-shell { grid-template-columns: minmax(430px, 1fr) minmax(400px, .85fr); }
  .product-stage { padding: 36px; }
  .stage-copy { margin-top: 8vh; }
  .stage-copy h1 { font-size: 34px; }
  .release-grid { grid-template-columns: 1fr; }
  .product-visual { height: 330px; }
}

@media (max-width: 760px) {
  .auth-shell { display: block; }
  .product-stage { display: none; }
  .auth-panel { min-height: 100vh; padding: 30px 22px; }
  .mobile-brand { display: flex; }
  .portal-header { min-height: 64px; padding: 0 16px; }
  .account-meta { width: 120px; }
  .portal-body { width: calc(100% - 28px); padding: 28px 0 36px; }
  .release-heading { align-items: flex-start; flex-direction: column; }
  .release-heading h1 { font-size: 25px; }
  .release-facts { grid-template-columns: 1fr 1fr; }
  .release-facts > div:nth-child(2) { border-right: 0; }
  .release-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .download-workspace { padding: 24px 20px; }
  .release-facts { margin: -24px -20px 24px; }
  .download-action { align-items: stretch; flex-direction: column; }
  .download-button { width: 100%; }
  .product-visual { height: 250px; }
  .detail-band { grid-template-columns: 1fr; }
  .detail-band > div { padding: 24px 20px; }
  .detail-band > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .release-notes ul, .requirements dl { grid-template-columns: 1fr; }
  footer { align-items: flex-start; padding: 18px 16px; flex-direction: column; }
}

@media (max-width: 430px) {
  .account-meta { display: none; }
  .portal-brand span { display: none; }
  .release-facts strong { font-size: 9px; }
  .checksum-block code { max-width: 225px; }
}

/* Shared Aster visual system */
:root {
  --ink: #18212b;
  --muted: #65707c;
  --muted-2: #8a949f;
  --paper: #ffffff;
  --surface: #f3f5f7;
  --line: #dfe3e7;
  --line-soft: #edf0f2;
  --accent: #e1604d;
  --accent-dark: #c94f3e;
  --blue: #2864dc;
  --blue-soft: #edf3ff;
  --teal: #118572;
  --teal-soft: #e7f5f1;
  --warning: #946010;
  --warning-soft: #fff6e5;
  --danger: #c33f38;
}

body { color: var(--ink); background: var(--surface); font-size: 14px; }
.eyebrow { margin-bottom: 9px; font-size: 10px; }

.auth-shell { grid-template-columns: minmax(540px, 1.22fr) minmax(450px, .78fr); }
.product-stage { padding: 42px 52px 34px; background: #191c20; }
.product-stage::after { height: 30%; background: #14171a; }
.brand-lockup img, .mobile-brand img, .portal-brand img { border-radius: 8px; box-shadow: 0 5px 16px rgba(225, 96, 77, .22); }
.brand-lockup strong { font-size: 17px; }
.brand-lockup span { font-size: 10px; }
.stage-copy { width: min(680px, 92%); margin-top: 9vh; }
.stage-copy h1 { margin-bottom: 16px; font-size: 40px; font-weight: 720; }
.stage-copy > p:last-child { max-width: 600px; color: #b8bec5; font-size: 15px; }
.app-preview { width: min(980px, 96%); margin-bottom: 28px; border-color: #3d4248; box-shadow: 0 28px 68px rgba(0, 0, 0, .32); }
.stage-status { font-size: 11px; }

.auth-panel { padding: 48px 52px; }
.auth-wrap { width: min(420px, 100%); }
.auth-wrap h2 { font-size: 29px; }
.auth-subtitle { margin-bottom: 30px; font-size: 13px; }
.auth-tabs { height: 46px; margin-bottom: 26px; }
.auth-tab { font-size: 13px; }
.auth-form { gap: 18px; }
.field > span { margin-bottom: 8px; font-size: 12px; }
.field-control > svg { left: 14px; width: 17px; height: 17px; }
.field-control input { height: 46px; padding-left: 43px; border-color: #d6dbe0; border-radius: 7px; font-size: 13px; }
.primary-button { min-height: 46px; border-radius: 6px; font-size: 13px; }
.form-error { font-size: 12px; }
.security-line { margin-top: 27px; font-size: 11px; }

.portal-header { min-height: 72px; background: #191c20; border-bottom-color: #30343a; }
.portal-brand img { width: 36px; height: 36px; }
.portal-brand strong { font-size: 14px; }
.portal-brand span { color: #9299a1; font-size: 10px; }
.account-block { gap: 10px; }
.account-avatar { width: 32px; height: 32px; border-radius: 6px; font-size: 12px; }
.account-meta strong { font-size: 12px; }
.account-meta span { font-size: 10px; }
.icon-button { width: 38px; height: 38px; border-radius: 6px; }

.portal-body { width: min(1180px, calc(100% - 48px)); padding: 40px 0 52px; }
.release-heading { margin-bottom: 22px; }
.release-heading h1 { margin-bottom: 8px; font-size: 29px; }
.release-heading > div > p:last-child { font-size: 13px; }
.channel-badge { padding: 8px 11px; border-radius: 5px; font-size: 10px; }
.release-grid { grid-template-columns: minmax(0, 1fr) minmax(350px, .78fr); min-height: 450px; border-radius: 8px; }
.download-workspace { padding: 30px 32px; }
.release-facts { margin: -30px -32px 31px; }
.release-facts > div { padding: 18px; }
.release-facts span { margin-bottom: 7px; font-size: 10px; }
.release-facts strong { font-size: 12px; }
.download-action { padding: 6px 0 25px; }
.download-copy h2 { margin-bottom: 7px; font-size: 20px; }
.download-copy p { font-size: 12px; }
.download-button { min-width: 164px; }
.download-progress > div { font-size: 11px; }
.checksum-block { padding: 14px 15px; border-radius: 6px; }
.checksum-block span { font-size: 10px; }
.checksum-block code { font-size: 11px; }
.signature-notice { padding: 14px 15px; }
.signature-notice strong { font-size: 12px; }
.signature-notice span { font-size: 11px; }
.product-visual figcaption span { font-size: 10px; }
.product-visual figcaption strong { font-size: 13px; }
.detail-band { margin-top: 22px; border-radius: 8px; }
.detail-band > div { padding: 27px 30px 30px; }
.detail-band h2 { margin-bottom: 19px; font-size: 20px; }
.release-notes li { font-size: 12px; }
.requirements dt { font-size: 10px; }
.requirements dd { font-size: 12px; }
footer { font-size: 10px; }
.toast { font-size: 12px; }

@media (max-width: 1040px) {
  .auth-shell { grid-template-columns: minmax(460px, 1fr) minmax(420px, .86fr); }
  .product-stage { padding: 38px; }
  .stage-copy h1 { font-size: 35px; }
  .release-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .auth-panel { padding: 30px 22px; }
  .mobile-brand { margin-bottom: 48px; }
  .portal-body { width: calc(100% - 28px); padding-top: 28px; }
  .release-heading h1 { font-size: 26px; }
  .download-workspace { padding: 24px 20px; }
  .release-facts { margin: -24px -20px 25px; }
  .release-facts > div { padding: 16px 14px; }
  .detail-band > div { padding: 24px 20px 27px; }
}

@media (max-width: 430px) {
  .release-facts strong { font-size: 11px; }
  .checksum-block { align-items: flex-start; }
  .checksum-block code { max-width: min(245px, calc(100vw - 105px)); white-space: normal; overflow-wrap: anywhere; }
}
