:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #18345d;
  background: #eaf2f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: #eaf2f7;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 76px;
  padding: 10px clamp(22px, 4vw, 68px);
  border-bottom: 1px solid #d9e3e9;
  background: rgba(251, 252, 251, .96);
}

.site-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #17345e;
  text-decoration: none;
}

.bird-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d4dfe6;
  border-radius: 12px;
  background: #e9f2f7;
}

.bird-mark img { width: 43px; height: 43px; object-fit: contain; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(17px, 2vw, 32px);
  padding: 0 34px;
}

.site-nav a,
.site-actions a,
.language-switch {
  color: #607286;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.language-switch {
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.site-nav a:hover,
.site-actions a:hover,
.language-switch:hover { color: #17345e; background: #edf3f6; }

.site-actions { display: flex; align-items: center; gap: 10px; }

.account-link {
  padding: 10px 13px;
  border-radius: 8px;
}

.cart-nav { padding: 10px 12px; border-radius: 8px; }

.account-link.active { color: #17345e; background: #edf3f6; }

.consult-link {
  padding: 11px 15px;
  border: 1px solid #b9cbd8;
  border-radius: 999px;
  color: #17345e !important;
  background: #fff;
}

button, input { font: inherit; }
button { cursor: pointer; }

.account-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(430px, 46%) minmax(500px, 54%);
  background: #f8faf9;
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: calc(100vh - 76px);
  flex-direction: column;
  padding: clamp(42px, 5vw, 76px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 86%, rgba(111, 159, 190, .13), transparent 28%),
    linear-gradient(145deg, #edf5f8 0%, #dceaf2 100%);
  border-right: 1px solid rgba(104, 137, 166, .22);
}

.brand-panel::after {
  content: "";
  position: absolute;
  right: -21vw;
  bottom: -28vw;
  width: 52vw;
  aspect-ratio: 1;
  border: 1px solid rgba(69, 111, 144, .09);
  border-radius: 50%;
}

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin: auto 0;
}

.eyebrow,
.step-label {
  margin: 0 0 22px;
  color: #6d849c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .29em;
}

.brand-copy h1 {
  margin: 0;
  color: #17345e;
  font-size: clamp(43px, 4.9vw, 72px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.brand-copy > p:last-child {
  max-width: 430px;
  margin: 28px 0 0;
  color: #60758b;
  font-size: 15px;
  line-height: 1.8;
}

.secure-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #70869a;
  font-size: 13px;
  letter-spacing: .02em;
}

.secure-note span { margin-right: 7px; color: #4d7899; }

.form-panel {
  position: relative;
  display: flex;
  min-height: calc(100vh - 76px);
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 110px) clamp(54px, 9vw, 150px) 42px;
  background: #fbfcfb;
}

.language {
  position: absolute;
  top: 34px;
  right: 40px;
  color: #708096;
  font-size: 13px;
}

.auth-view { width: min(470px, 100%); margin: auto; }
.auth-view[hidden] { display: none; }

.mode-switch {
  display: flex;
  gap: 34px;
  margin-bottom: 54px;
  border-bottom: 1px solid #d9e2e9;
}

.mode-switch button {
  position: relative;
  padding: 0 1px 13px;
  border: 0;
  background: transparent;
  color: #8290a1;
  font-size: 14px;
  font-weight: 650;
}

.mode-switch button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.mode-switch button.active { color: #18345d; }
.mode-switch button.active::after { background: #2b62e9; }

.form-heading { margin-bottom: 36px; }
.form-heading .step-label { margin-bottom: 16px; }

.form-heading h2,
.success-view h2 {
  margin: 0;
  color: #17345e;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 670;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.form-heading > p:last-child,
.success-view > p {
  margin: 14px 0 0;
  color: #6b7d8f;
  font-size: 14px;
  line-height: 1.7;
}

form { display: grid; gap: 20px; }

label {
  display: grid;
  gap: 9px;
  color: #294262;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
}

input:not([type="checkbox"]) {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #cad7e2;
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, .82);
  color: #17345e;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

input::placeholder { color: #9aa9b7; font-weight: 400; }

input:not([type="checkbox"]):focus {
  border-color: #4f74cf;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 98, 233, .08);
}

.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 65px; }

.password-wrap button {
  position: absolute;
  top: 50%;
  right: 13px;
  padding: 5px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #61778d;
  font-size: 13px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -2px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #66798b;
  font-size: 13px;
  font-weight: 500;
}

.check-line input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2b62e9;
}

.terms {
  align-items: flex-start;
}

.terms > input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.terms > label {
  display: inline;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: 1.65;
  letter-spacing: inherit;
  cursor: pointer;
}

.terms a {
  color: #2b62e9;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.terms a:hover,
.terms a:focus-visible {
  color: #1f4fc8;
}

.form-panel > footer a {
  color: inherit;
  text-underline-offset: 3px;
}

.text-button,
.back-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2b62e9;
  font-size: 13px;
  font-weight: 600;
}

.primary,
.secondary {
  width: 100%;
  min-height: 50px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s, background .15s, opacity .15s;
}

.primary {
  margin-top: 4px;
  border: 1px solid #2b62e9;
  background: #2b62e9;
  color: white;
  box-shadow: 0 9px 22px rgba(43, 98, 233, .14);
}

.secondary {
  border: 1px solid #cad7e2;
  background: transparent;
  color: #29486d;
}

.primary:hover { background: #2457d3; }
.secondary:hover { background: #f1f6f9; }
.primary:active, .secondary:active { transform: translateY(1px); }
.primary:disabled, .secondary:disabled { cursor: default; opacity: .55; }

.feedback {
  min-height: 19px;
  margin: -2px 0 0;
  color: #a04949;
  font-size: 13px;
  line-height: 1.5;
}
.feedback.success-feedback { color: #367b68; }

.verification-view .back-button { margin-bottom: 50px; color: #6d8095; }
.password-view .back-button { margin-bottom: 50px; color: #6d8095; }
.neutral-feedback { color: #557a70; }

.verification-view strong {
  color: #29486d;
  font-weight: 650;
}

.verification-actions {
  display: grid;
  gap: 20px;
}

.development-code {
  display: block;
  margin: 0;
  padding: 10px 13px;
  border-radius: 7px;
  background: #eef4f7;
  color: #64798b;
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.success-view { text-align: left; }
.success-view .step-label { margin-top: 28px; margin-bottom: 14px; }
.success-view > p { margin-bottom: 36px; }

.success-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid #9fc9c0;
  border-radius: 50%;
  background: #e8f3ef;
  color: #3c8f7a;
  font-size: 27px;
}

.dashboard-view { width: min(640px, 100%); }

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.dashboard-head .step-label { margin-bottom: 13px; }
.dashboard-head h2 { margin: 0; color: #17345e; font-size: 38px; letter-spacing: -.04em; }
.dashboard-head p:last-child { margin: 11px 0 0; color: #6b7d8f; font-size: 13px; line-height: 1.65; }
.dashboard-head strong { color: #29486d; font-weight: 700; }

.secondary.compact {
  width: auto;
  min-height: 38px;
  padding: 0 17px;
}

.account-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 7px 11px;
  border: 1px solid #c8ddd7;
  border-radius: 999px;
  background: #edf6f2;
  color: #3d7d6e;
  font-size: 13px;
  font-weight: 700;
}

.account-status span { width: 6px; height: 6px; border-radius: 50%; background: #4ba68f; }
.downloads-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 16px 20px;
  border: 1px solid #c8dce8;
  border-radius: 12px;
  background: linear-gradient(135deg, #edf6fa, #f9fbfb);
  color: #294262;
  text-decoration: none;
}
.downloads-entry span { display: grid; gap: 5px; }
.downloads-entry b { font-size: 13px; }
.downloads-entry small { color: #7890a2; font-size: 13px; font-weight: 500; }
.downloads-entry strong { color: #2e6289; font-size: 13px; white-space: nowrap; }
.downloads-entry:hover { border-color: #93b6ca; background: #edf7fb; }
.security-card {
  margin: 0 0 18px;
  border: 1px solid #d4e0e8;
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
  overflow: hidden;
}
.security-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  list-style: none;
  color: #294262;
  cursor: pointer;
}
.security-card summary::-webkit-details-marker { display: none; }
.security-card summary span:first-child { display: grid; gap: 5px; }
.security-card summary b { font-size: 13px; }
.security-card summary small { color: #8191a1; font-size: 13px; font-weight: 500; }
.security-card summary > span:last-child { color: #6d849c; font-size: 20px; transition: transform .18s; }
.security-card[open] summary > span:last-child { transform: rotate(45deg); }
.security-card form {
  padding: 0 20px 20px;
  border-top: 1px solid #e2e9ed;
  padding-top: 20px;
}
.security-password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.security-card .secondary { min-height: 44px; }
.security-note { margin: -8px 0 0; color: #8191a1; font-size: 13px; line-height: 1.5; }
.security-card .feedback { margin-bottom: -5px; }
.redeem-card {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid #cbdce6;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(238, 247, 251, .88), rgba(255, 255, 255, .8));
}
.redeem-copy .step-label { margin-bottom: 8px; font-size: 13px; }
.redeem-copy h3 { margin: 0; color: #203b61; font-size: 18px; }
.redeem-copy > p:last-child { margin: 7px 0 0; color: #708397; font-size: 13px; line-height: 1.6; }
.redeem-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.redeem-entry input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .045em; text-transform: uppercase; }
.redeem-entry .primary { width: auto; min-width: 112px; margin: 0; padding: 0 18px; box-shadow: none; }
.redeem-note { margin: -5px 0 0; color: #8191a1; font-size: 13px; line-height: 1.5; }
.redeem-card .feedback { margin: -8px 0 -5px; }
.redeem-card.redeem-success { border-color: #acd2c6; background: #eef7f3; }
.redeem-card.redeem-success .feedback { color: #367b68; }
.product-list { display: grid; gap: 12px; }

.account-product {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 17px;
  border: 1px solid #d4e0e8;
  border-radius: 11px;
  background: rgba(255, 255, 255, .68);
}

.product-symbol {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(23, 52, 94, .08);
}

.account-product h3 { margin: 0; color: #203b61; font-size: 15px; }
.account-product p { margin: 6px 0 0; color: #758697; font-size: 13px; line-height: 1.5; }

.license-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2f5;
  color: #778797;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.license-pill.active { background: #edf6f2; color: #3d7d6e; }
.license-pill.buy { background: #17345e; color: #fff; text-decoration: none; }

.license-summary {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 142px;
  color: #63758a;
  text-align: right;
}

.license-state {
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8f4ef;
  color: #287462;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.license-summary.trial .license-state {
  background: #fff1d9;
  color: #9a6416;
}

.license-summary.expired .license-state,
.license-summary.inactive .license-state {
  background: #f6e6e7;
  color: #9c4c52;
}

.license-summary strong { color: #8b5b17; font-size: 13px; }
.license-summary.perpetual strong { color: #397767; }
.license-summary small { color: #8594a3; font-size: 13px; }
.license-seats { color: #718396; font-size: 13px; font-weight: 700; }

.device-list {
  grid-column: 2 / -1;
  display: grid;
  gap: 8px;
  padding-top: 3px;
}

.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #e1e8ed;
  color: #65788b;
  font-size: 13px;
}

.device-row button {
  padding: 5px 8px;
  border: 1px solid #d6dfe6;
  border-radius: 6px;
  background: transparent;
  color: #6c7e8e;
  font-size: 13px;
}

footer {
  width: min(470px, 100%);
  margin: auto auto 0;
  padding-top: 48px;
  color: #98a5b1;
  font-size: 13px;
  letter-spacing: .04em;
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: auto auto; padding: 10px 18px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 24px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-actions { justify-self: end; }
  .account-link, .consult-link { display: none; }
  .account-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 370px; padding: 34px; border-right: 0; border-bottom: 1px solid rgba(104, 137, 166, .22); }
  .brand-copy { margin: 0; }
  .brand-copy h1 { font-size: 41px; }
  .brand-copy > p:last-child { margin-top: 16px; }
  .secure-note { margin-top: 28px; }
  .form-panel { min-height: 680px; padding: 80px 30px 32px; }
  .language { top: 28px; right: 30px; }
  .account-product { grid-template-columns: 52px minmax(0, 1fr); }
  .license-pill { grid-column: 2; justify-self: start; }
  .license-summary { grid-column: 2; justify-items: start; text-align: left; }
  .device-list { grid-column: 1 / -1; }
  .redeem-entry { grid-template-columns: 1fr; }
  .redeem-entry .primary { width: 100%; }
  .security-password-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .brand-panel { min-height: 330px; }
  .brand-copy h1 { font-size: 35px; }
  .brand-copy > p:last-child { font-size: 13px; }
  .secure-note { display: none; }
  .form-panel { padding-right: 22px; padding-left: 22px; }
}

/* Account details should be readable at normal browser zoom. */

.dashboard-view{font-size:15px;line-height:1.6}

.dashboard-head p:last-child{font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.dashboard-view .step-label{font-size:12px}
.dashboard-view .secondary.compact{font-size:15px;min-height:44px}
.account-status{font-size:14px;padding:8px 13px}

.downloads-entry b,.security-card summary b{font-size:16px}
.downloads-entry small,.security-card summary small,.security-note{font-size:14px;line-height:1.65}
.downloads-entry strong{font-size:14px}

.redeem-copy .step-label{font-size:11px}
.redeem-copy h3{font-size:22px}
.redeem-copy>p:last-child{font-size:15px;line-height:1.7}
.redeem-note{font-size:14px;line-height:1.7}
.dashboard-view label,.dashboard-view input,.dashboard-view .primary,.dashboard-view .secondary{font-size:15px}
.dashboard-view input{min-width:0}

.account-product h3{font-size:19px;line-height:1.4}
.account-product p{font-size:14px;line-height:1.7}
.license-pill,.license-state{font-size:13px}
.license-summary strong,.license-seats{font-size:14px}
.license-summary small{font-size:13px;line-height:1.6}
.device-row{font-size:14px;line-height:1.7;align-items:flex-start}
.device-row>span{min-width:0;overflow-wrap:anywhere}
.device-row button{font-size:13px;padding:7px 12px;flex-shrink:0;min-height:36px}
.dashboard-view .feedback{font-size:14px;line-height:1.6}
@media(max-width:1100px){.account-product{grid-template-columns:56px minmax(0,1fr)}.license-summary,.license-pill{grid-column:2;justify-self:start;justify-items:start;text-align:left}.downloads-entry{align-items:flex-start;flex-wrap:wrap}.downloads-entry strong{white-space:normal}}
@media(max-width:620px){.dashboard-head{gap:16px}.account-product{padding:18px;gap:14px}.account-product h3{font-size:18px}.redeem-card{padding:20px}.redeem-entry{grid-template-columns:1fr}.device-list{grid-column:1 / -1}.device-row{flex-wrap:wrap}.downloads-entry,.security-card summary{padding:18px}.dashboard-view input{font-size:15px}.redeem-entry input{letter-spacing:0;font-size:14px}}

@media(max-width:620px){.dashboard-view input{font-size:16px}.redeem-entry input{font-size:16px;letter-spacing:-.035em}}

/* Keep the original split and anchor the brand to the viewport, not the longer account form. */
.eyebrow,.step-label{font-size:11px}.redeem-copy .step-label{font-size:9px}
@media(min-width:821px){.brand-panel{position:sticky;top:var(--budgie-nav-height,96px);align-self:start;height:calc(100svh - var(--budgie-nav-height,96px));min-height:0}.brand-copy{flex-shrink:0}.secure-note{font-size:12px}}
