:root {
  color-scheme: light;
  --ink: #18312f;
  --muted: #71817d;
  --line: #e5ece9;
  --paper: #ffffff;
  --wash: #f5f8f6;
  --teal: #168575;
  --teal-dark: #0b6a5d;
  --danger: #a33a34;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(ellipse at 16% 14%, #e6f3ef 0, transparent 32%), #f7f8f6;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
}
button, input { font: inherit; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 7vw, 104px); border-bottom: 1px solid #e8eeeb; background: #ffffffd9; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: white; background: var(--teal); font-size: 27px; line-height: 1; }
.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.back-link, footer a { color: var(--teal-dark); text-decoration: none; font-size: 13px; }
.layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(340px, 460px); gap: clamp(38px, 9vw, 130px); align-items: center; max-width: 1120px; min-height: calc(100vh - 146px); margin: 0 auto; padding: 56px 28px; }
.intro { max-width: 500px; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.intro h1 { margin: 19px 0 18px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.055em; line-height: 1.15; font-weight: 650; }
.intro p { max-width: 410px; color: var(--muted); font-size: 17px; }
.promise { display: flex; align-items: center; gap: 9px; margin-top: 31px; color: #42645e; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #45aa83; box-shadow: 0 0 0 4px #45aa831c; }
.panel { padding: 29px; border: 1px solid #e8eeeb; border-radius: 22px; background: var(--paper); box-shadow: 0 20px 60px #21453b0b; }
.tabs { display: flex; gap: 7px; padding: 4px; margin-bottom: 27px; border-radius: 11px; background: var(--wash); }
.tab { flex: 1; border: 0; border-radius: 8px; padding: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.tab.active { background: white; color: var(--ink); box-shadow: 0 1px 4px #18312f15; font-weight: 650; }
h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.02em; }
.muted, .fine { color: var(--muted); }
.muted { margin: 0 0 24px; font-size: 13px; }
form label { display: block; margin: 17px 0 7px; font-size: 13px; font-weight: 600; }
input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; color: var(--ink); background: white; outline: none; }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #16857518; }
.primary, .secondary { min-height: 46px; border-radius: 10px; font-weight: 650; cursor: pointer; }
.primary { border: 1px solid var(--teal); color: white; background: var(--teal); }
.primary:hover { background: var(--teal-dark); }
.primary:disabled, .secondary:disabled { opacity: .55; cursor: wait; }
.full { width: 100%; }
form .primary { margin-top: 22px; }
.fine { margin: 15px 0 0; font-size: 11px; }
.account-heading, .purchase-title { display: flex; align-items: center; justify-content: space-between; }
.text-button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.auth-links { display: grid; justify-items: start; gap: 15px; margin-top: 16px; }
.signup-prompt { display: flex; gap: 5px; width: 100%; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.signup-prompt .text-button { padding: 0; }
.auth-links .text-button, .back-button, #manage-recovery { color: var(--teal-dark); }
.code-row { display: flex; align-items: center; gap: 10px; }
.code-row input { min-width: 0; }
.code-row .secondary { flex: none; margin: 0; padding: 0 12px; }
.security-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.security-section h3 { margin: 0 0 6px; font-size: 16px; }
.back-button { margin-bottom: 20px; }
.recovery-fallback { display: block; margin-top: 14px; padding: 0; text-align: left; }
.recovery-fallback[hidden] { display: none; }
.recovery-panel { padding: 16px; margin: 18px 0; border: 1px solid #c8e5dc; border-radius: 13px; background: #fbfefc; }
.recovery-panel p { color: var(--muted); font-size: 13px; }
.recovery-panel code { display: block; overflow-wrap: anywhere; user-select: all; font-size: 14px; }
#manage-recovery { margin-top: 16px; }
.license-card { display: flex; gap: 13px; align-items: center; margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--wash); }
.license-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: none; border-radius: 12px; color: var(--teal); background: #e2f3ee; font-size: 21px; }
.license-card strong { font-size: 14px; }
.license-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.purchase-box { padding: 18px; border: 1px solid #c8e5dc; border-radius: 15px; background: #fbfefc; }
.purchase-box[hidden] { display: none; }
.purchase-account { overflow-wrap: anywhere; }
.purchase-confirm { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; font-size: 13px; }
.purchase-confirm input { width: auto; margin-top: 2px; }
.purchase-title h3 { margin: 4px 0 0; font-size: 17px; }
.price { color: var(--teal-dark); font-size: 26px; }
.purchase-box ul { padding-left: 18px; margin: 17px 0; color: #60736e; font-size: 12px; }
.purchase-box li + li { margin-top: 5px; }
.secondary { margin-top: 11px; border: 1px solid var(--line); color: var(--ink); background: white; }
.payment-link { display: block; padding: 10px 14px; text-align: center; text-decoration: none; }
.payment-link[hidden] { display: none; }
.mobile-qr { margin-top: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.mobile-qr[hidden] { display: none; }
.mobile-qr img { display: block; width: 192px; height: 192px; margin: 0 auto; image-rendering: pixelated; }
.mobile-qr p { max-width: 290px; margin: 9px auto 0; color: var(--muted); font-size: 12px; }
.message, .error { min-height: 20px; margin: 12px 0 0; font-size: 12px; }
.message { color: var(--muted); }
.error { color: var(--danger); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px clamp(22px, 7vw, 104px); border-top: 1px solid #e8eeeb; color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 18px; }
  .layout { grid-template-columns: 1fr; gap: 30px; min-height: auto; padding: 42px 18px 54px; }
  .intro h1 { font-size: 39px; }
  .intro p { font-size: 15px; }
  .promise { margin-top: 18px; }
  .panel { padding: 22px; }
  footer { flex-wrap: wrap; padding: 18px; }
}

img.brand-mark,img.mark{object-fit:contain;background:none;border-radius:0;box-shadow:none;padding:3px;width:28px;height:38px;}
