/* www.vmpmia.com - one style sheet for every page. No inline styles anywhere (the pages are served with a
   strict Content-Security-Policy). The layout follows the usual look of app-hardening services: white bar on
   top, a deep-blue area with the headline, a form card and a floating graphic, cards on light grey below,
   a dark foot. */
:root {
  --ink: #333; --soft: #666; --faint: #999; --line: #e1e5e9; --bg: #f8f9fa;
  --brand: #4a90e2; --brand-deep: #357abd; --navy: #1e3c72; --navy-2: #2a5298; --foot: #2c3e50;
  --good: #1a8a4a; --bad: #c0392b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(255, 255, 255, 0.14); padding: 0.1em 0.4em; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ico { width: 18px; height: 18px; flex: none; }
.nowrap { white-space: nowrap; }

/* ---------- top bar */
.top { position: sticky; top: 0; z-index: 20; height: 65px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #1a1a1a; }
.brand b { display: block; font-size: 18px; font-weight: 600; line-height: 1.25; color: #1a1a1a; }
.brand small { display: block; font-size: 12px; line-height: 1.1; color: #555; letter-spacing: 0.02em; }
.top nav { display: flex; gap: 40px; flex: 1; justify-content: center; }
.top nav a { font-size: 15px; font-weight: 500; color: #555; padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.top nav a:hover, .top nav a.on { color: var(--brand); border-bottom-color: var(--brand); }
/* before login the nav is Home, Updates and Help only (site.js sets html.signed-in) */
html:not(.signed-in) .top nav a[data-member] { display: none; }
.tools { display: flex; align-items: center; gap: 14px; }
.nav-user { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; }
.btn-top { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 96px; padding: 0 20px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 500; }
.btn-top:hover { background: var(--brand-deep); color: #fff; }
.who { font-weight: 600; color: var(--ink); }
.who { display: inline-flex; align-items: center; min-width: 0; }
.nav-username { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user .linklike { flex: none; white-space: nowrap; }
.linklike { font: inherit; border: 0; background: none; padding: 0; color: var(--soft); cursor: pointer; }
.linklike:hover { color: var(--brand); }

/* language: a small drop-down */
.lang { position: relative; font-size: 14px; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); cursor: pointer; user-select: none; background: #fff; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .ico:first-child { color: var(--brand); }
.lang summary .chev { width: 14px; height: 14px; color: var(--faint); }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang .menu { position: absolute; right: 0; top: 46px; min-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); padding: 4px; display: grid; }
.lang .menu button { font: inherit; text-align: left; padding: 8px 12px; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; white-space: nowrap; }
.lang .menu button:hover { background: var(--bg); }
.lang .menu button.on { color: var(--brand); font-weight: 600; }

/* ---------- the blue area */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 700px; color: #fff; padding: 80px 0 120px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, var(--navy) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.1), transparent 38%),
    radial-gradient(circle at 82% 68%, rgba(74, 144, 226, 0.3), transparent 44%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px); }
.hero .wrap { position: relative; width: 100%; display: grid; align-items: center; gap: 32px; }
.hero.home .wrap { grid-template-columns: 1.15fr 0.85fr; }
.hero.auth .wrap { grid-template-columns: 1fr 400px 1fr; }
.hero-text h1 { margin: 0 0 16px; font-size: 36px; line-height: 1.35; font-weight: 700; letter-spacing: 0.01em; }
.hero-text p { margin: 0 0 30px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.85); max-width: 32em; }
.hero.auth .hero-text p { margin-bottom: 0; }
.btn-hero { display: inline-flex; align-items: center; gap: 10px; padding: 14px 34px; border-radius: 8px; background: linear-gradient(45deg, var(--brand), var(--brand-deep)); color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 8px 24px rgba(15, 39, 87, 0.35); }
.btn-hero:hover { color: #fff; filter: brightness(1.08); }
.btn-hero .ico { transform: rotate(-90deg); width: 16px; height: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-hero.secondary { border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); box-shadow: none; }
.btn-hero.secondary:hover { background: rgba(255, 255, 255, .16); }

/* the floating graphic */
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.hero.auth .hero-art { max-width: 300px; }
.hero-art .big { display: block; width: 100%; height: auto; animation: float 4s ease-in-out infinite; }
.hero-text, .hero-art { position: relative; z-index: 1; }
.spark { position: absolute; z-index: 0; width: 40px; height: 40px; opacity: 0.26; animation: float 6s ease-in-out infinite; pointer-events: none; }
.spark.s1 { left: 29%; top: 2%; animation-delay: -1s; }
.spark.s2 { left: 6%; bottom: 2%; width: 28px; height: 28px; animation-delay: -3s; opacity: 0.2; }
.spark.s3 { right: 2%; top: 6%; width: 32px; height: 32px; animation-delay: -2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-art .big, .spark { animation: none; } }

/* ---------- the form card on the blue area (sizes measured on the reference site) */
.card-form { position: relative; z-index: 2; width: 100%; max-width: 400px; justify-self: center; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); }
.card-form .head { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 0; margin-bottom: 24px; }
.card-form h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: #333; }
.card-form .x { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; color: #666; border-radius: 4px; }
.card-form .x:hover { color: #333; background: var(--bg); }
.card-form form { display: block; padding: 0 24px 24px; }
.card-form .lead { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #666; }
.field { position: relative; display: block; margin: 0 0 16px; }
.field .ico { position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; color: #666; }
.field input { width: 100%; height: 38px; font: inherit; font-size: 14px; padding: 10px 14px 10px 40px; color: #000; background: var(--bg); border: 1px solid #e0e0e0; border-radius: 6px; outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.field input::placeholder { color: #757575; }
.field input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12); }
.field.code input { padding-right: 112px; }
/* show / hide a password (site.js adds the button to every password field) */
.field.has-eye input { padding-right: 42px; }
.field .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; padding: 6px; border: 0; border-radius: 4px; background: none; color: #666; cursor: pointer; }
.field .eye:hover, .field .eye:focus-visible { color: var(--brand); }
.field .eye svg { width: 18px; height: 18px; display: block; }
.field .send { position: absolute; right: 8px; top: 6px; height: 26px; padding: 0 12px; font: inherit; font-size: 12px; line-height: 26px; border: 0; border-radius: 4px; background: var(--brand); color: #fff; cursor: pointer; white-space: nowrap; }
.field .send:hover { background: var(--brand-deep); }
.field .send[disabled] { background: #a9c7ec; cursor: default; opacity: 1; }
.card-form.login .field { margin-bottom: 20px; }
.card-form.login .field .ico { left: 14px; top: 12px; }
.card-form.login .field input { height: 42px; padding: 12px 16px 12px 44px; }
.check { display: flex; align-items: center; gap: 8px; margin: 0 0 24px; font-size: 14px; line-height: 22px; color: #666; cursor: pointer; }
.check input { width: 14px; height: 14px; margin: 0; accent-color: var(--brand); }
.check.terms { margin-bottom: 20px; font-size: 12px; line-height: 17px; }
.btn-main { display: block; width: 100%; height: 42px; margin: 0 0 16px; padding: 12px; font: inherit; font-size: 16px; line-height: 18px; font-weight: 600; border: 0; border-radius: 6px; color: #fff; background: linear-gradient(45deg, var(--brand), var(--brand-deep)); cursor: pointer; text-align: center; }
.btn-main:hover { filter: brightness(1.06); color: #fff; }
.card-form.login .btn-main { height: 46.5px; padding: 14px; margin-bottom: 20px; }
button[disabled] { opacity: 0.6; cursor: default; }
.msg { margin: 0 0 16px; padding: 9px 12px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.msg.bad { background: #fdecea; color: #a5281b; }
.msg.good { background: #e8f6ee; color: #17703d; }
.msg .linklike { color: inherit; font-weight: 600; text-decoration: underline; }
.card-form .links { margin: 0; font-size: 14px; line-height: 22px; color: #666; text-align: center; }
.card-form .links a { font-weight: 500; }
.card-form .links.minor { margin-top: 6px; font-size: 13px; }

/* ---------- sections below */
.band { padding: 80px 0; background: var(--bg); }
.band.white { background: #fff; }
.band h2 { margin: 0 0 60px; text-align: center; font-size: 32px; font-weight: 700; color: var(--ink); }
.grid { display: grid; gap: 40px; max-width: 1000px; margin: 0 auto; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1100px; }
.grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.tile { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); padding: 40px 30px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.tile .pic { width: 50px; height: 50px; color: var(--brand); margin-bottom: 20px; }
.tile h3 { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: var(--ink); }
.tile p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--soft); }
.band.white .tile { background: var(--bg); box-shadow: none; }
.tile .num { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 18px; background: linear-gradient(45deg, var(--brand), var(--brand-deep)); color: #fff; font-size: 18px; font-weight: 700; }
.tile.hot { outline: 2px solid var(--brand); background: #f0f6fe; }
.tag { display: inline-block; margin-bottom: 14px; padding: 2px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--brand); background: rgba(74, 144, 226, 0.12); }

/* ---------- signed-in pages */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 720px; }
.page h1 { margin: 0 0 24px; font-size: 26px; }
.panel { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); padding: 28px 30px; margin-bottom: 24px; }
.panel h2 { margin: 0 0 18px; font-size: 18px; font-weight: 600; text-align: left; }
.panel form { max-width: 400px; }
.panel form .btn-main { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0 0 18px; font-size: 15px; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; font-weight: 600; word-break: break-all; }
@media (max-width: 600px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .facts dd { margin-bottom: 10px; overflow-wrap: anywhere; word-break: normal; }
}
.note { margin: 0; padding: 12px 14px; background: var(--bg); border-radius: 8px; color: var(--soft); font-size: 14px; }

/* Membership and checkout: the same calm cards as Help, with an explicit path back to every order. */
.top nav { gap: 24px; }
.page.membership .wrap { max-width: 1200px; }
.page.checkout .wrap { max-width: 940px; }
.page.purchase .wrap { max-width: 720px; }
.membership-heading { text-align: center; margin: 12px 0 48px; }
.membership-heading h1 { font-size: 36px; margin-bottom: 10px; color: #17202e; }
.membership-heading p { color: var(--soft); margin: 0; font-size: 18px; }
.membership-banner { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; align-items: center; gap: 24px; padding: 32px 36px; color: #fff; border-radius: 16px; background: linear-gradient(110deg, #4a90e2, #357abd); box-shadow: 0 6px 18px #357abd20; margin: 0 0 32px; }
.membership-banner > div { min-width: 0; }
.membership-banner span, .membership-banner a { display: block; color: #e2efff; font-size: 13px; margin-bottom: 5px; }
.membership-banner a:hover { color: white; text-decoration: underline; }
.membership-banner strong { display: block; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.membership-banner .member-identity strong { font-size: 26px; }
.membership-banner .member-vip { color: #fff2b0; }
.vip-label { display: inline-block; color: #8c5b04; background: #fff1c5; border: 1px solid #efdc9f; border-radius: 5px; font-size: 12px; font-weight: 700; padding: 1px 6px; margin-left: 7px; }
.facts .vip-label { margin-left: 0; width: fit-content; font-size: 14px; }
.eyebrow { color: var(--soft); font-size: 13px; display: block; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 0 auto 32px; max-width: 860px; }
.plan-card { display: flex; flex-direction: column; position: relative; border: 1px solid #edf0f4; border-radius: 16px; background: white; padding: 34px 30px 28px; box-shadow: 0 3px 14px #00000004; }
.plan-card.featured { border-color: #c9dff8; }
.plan-badge { position: absolute; top: 14px; right: 16px; font-size: 12px; font-weight: 600; background: #f0f6fd; color: var(--brand-deep); border-radius: 20px; padding: 2px 10px; }
.plan-card h2 { font-size: 24px; margin: 16px 0 16px; color: #17202e; }
.plan-price { margin: 0; color: var(--soft); }
.plan-price strong { color: #374151; font-size: 34px; letter-spacing: -1px; line-height: 1.4; }
.plan-card.featured .plan-price strong { color: #2563eb; }
.plan-price span { font-size: 13px; }
.plan-desc { color: var(--soft); font-size: 14px; min-height: 45px; margin: 12px 0 20px; }
.plan-options { color: #374151; font-size: 13px; margin: -6px 0 16px; padding: 10px 12px; background: #f0f6ff; border-radius: 8px; }
.plan-card ul { padding: 0 0 28px; margin: 0; list-style: none; font-size: 14px; color: #46505f; flex: 1; }
.plan-card li { padding: 8px 0 8px 23px; position: relative; }
.plan-card li::before { content: '✓'; color: #526176; position: absolute; left: 0; }
.plan-card .btn-main, .plan-card .btn-outline { margin: 0; width: 100%; text-align: center; }
.plan-card button:disabled { cursor: default; background: #f3f4f6; color: #7c8593; }
.plan-card .pending { visibility: hidden; }        /* keeps its place until /api/me says who this is */
.membership-details ul { padding-left: 20px; margin-bottom: 0; color: var(--soft); font-size: 14px; }
.membership-details li { margin-top: 8px; }
.purchase-step h2 { display: flex; align-items: center; gap: 10px; }
.step-number { background: #2563eb; color: white; width: 25px; height: 25px; line-height: 25px; font-size: 15px; border-radius: 100%; text-align: center; }
.duration-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.duration-option, .payment-option { font: inherit; background: white; border: 2px solid #e3e7ed; border-radius: 8px; padding: 16px 12px; cursor: pointer; text-align: left; color: #334155; }
.duration-option strong, .duration-option span, .duration-option b { display: block; }
.duration-option span { font-size: 12px; color: var(--soft); margin: 5px 0 12px; }
.duration-option b { color: #2563eb; font-size: 18px; }
.duration-option.selected, .payment-option.selected { border-color: #2563eb; background: #f0f6ff; }
.duration-option:focus-visible, .payment-option:focus-visible { outline: 3px solid #84b6ee; outline-offset: 3px; }
.payment-options { display: grid; gap: 12px; }
.payment-option { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 20px; }
.payment-option span { font-size: 13px; color: var(--soft); }
.order-preview .facts dd { text-align: right; }
#preview-total { color: #2563eb; font-size: 24px; font-weight: 700; }
.purchase-safe { text-align: center; font-size: 12px; color: var(--faint); margin-bottom: 0; }
.credit-summary strong { display: block; color: var(--brand-deep); font-size: 30px; }
.credit-summary p { color: var(--soft); font-size: 14px; margin-bottom: 0; }
.credit-row { display: flex; justify-content: space-between; gap: 20px; }
.credit-row code { font-size: 12px; overflow-wrap: anywhere; }
.credit-row > div:last-child { text-align: right; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--brand-deep); font: inherit; font-size: 14px; border-radius: 7px; padding: 9px 16px; cursor: pointer; white-space: nowrap; }
.btn-outline:hover { border-color: var(--brand); background: #f5f9ff; }
.account-actions { display: flex; gap: 14px; margin: 0 0 24px; }
.home-membership { margin-top: 20px; }
.account-actions .btn-main { width: auto; min-width: 180px; margin: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; }
.order-row { display: flex; gap: 16px; justify-content: space-between; }
.order-row h2 { margin-bottom: 8px; }
.order-row code, .order-summary code { font-size: 13px; overflow-wrap: anywhere; padding: 0; }
.order-date { font-size: 13px; color: var(--soft); margin-bottom: 0; }
.order-row-action { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; }
.payment-status { display: inline-block; padding: 4px 12px; background: #eef2f6; border-radius: 20px; font-size: 13px; color: var(--soft); }
.payment-status.pending, .payment-status.confirming, .payment-status.paid { color: #8c5a13; background: #fff3d9; }
.payment-status.delivered { color: #16713f; background: #e8f6ee; }
.order-summary { position: relative; }
.order-summary > .payment-status { position: absolute; top: 28px; right: 30px; }
.order-summary > div { padding-right: 165px; }
.order-summary h2 { margin: 20px 0 4px; font-size: 22px; }
.order-summary p { margin: 8px 0 0; font-size: 14px; color: var(--soft); }
.pay-amount { text-align: center; }
.pay-amount > span { display: block; color: var(--soft); font-size: 14px; }
.pay-amount strong { display: block; font-size: 40px; color: var(--navy); line-height: 1.6; }
.pay-amount small { font-size: 20px; }
.pay-amount .network-pill { display: inline-block; color: #32664d; background: #ecf7ef; padding: 3px 12px; border-radius: 6px; }
#order-countdown { color: var(--soft); font-size: 14px; }
.wallet-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; padding: 20px 0; }
.payment-qr { background: white; text-align: center; }
.payment-qr img { display: block; margin: 0 auto; image-rendering: pixelated; max-width: 100%; }
.qr-caption { font-size: 12px; text-align: center; color: var(--soft); margin: 8px 0 0; }
.wallet-fields label { font-size: 14px; font-weight: 600; }
.wallet-fields input { display: block; width: 100%; font: 13px ui-monospace, monospace; padding: 12px 8px; border: 1px solid var(--line); border-radius: 6px; margin: 8px 0 12px; }
.copy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-result { color: var(--good); margin: 4px 0; font-size: 13px; min-height: 20px; }
.wallet-fields ol { color: var(--soft); font-size: 14px; padding-left: 20px; margin: 0; }
.wallet-fields li { margin: 8px 0; }
.payment-warning { padding: 14px 16px; color: #a5281b; background: #fff0ed; border: 1px solid #f8d3ce; border-radius: 8px; font-size: 14px; }
.payment-success { text-align: center; border: 1px solid #b7e4c8; }
.payment-success h2 { text-align: center; }
.payment-success .btn-main { width: auto; max-width: 300px; margin: 20px auto 14px; }
.success-mark { margin: 4px auto 18px; border-radius: 100%; width: 56px; height: 56px; background: #e8f6ee; color: var(--good); font-size: 32px; }
.checkout-foot { color: var(--soft); font-size: 13px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; }
@media (max-width: 960px) { .top nav { gap: 16px; } .top .wrap { gap: 16px; } .top nav a { font-size: 13px; } }
@media (max-width: 720px) {
  .plan-grid { grid-template-columns: 1fr; } .plan-card { padding: 32px 24px 24px; }
  .membership-heading { margin: 0 0 28px; } .membership-heading h1 { font-size: 28px; } .membership-heading p { font-size: 15px; }
  .membership-banner { grid-template-columns: 1fr 1fr; padding: 24px; gap: 24px 16px; } .membership-banner strong { font-size: 14px; }
  .membership-banner .member-identity strong { font-size: 23px; }
  .duration-options { gap: 8px; } .duration-option { padding: 12px 8px; } .duration-option b { font-size: 15px; }
  .payment-option { flex-wrap: wrap; } .purchase-step { padding: 22px 16px; }
  .purchase-step h2 { font-size: 19px; } .order-preview .facts { grid-template-columns: 1fr; gap: 5px; } .order-preview .facts dd { text-align: left; margin-bottom: 10px; }
  .nav-user { gap: 8px; } .who { display: flex; align-items: center; } .vip-label { margin-left: 4px; }

  .wallet-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .order-summary > div { padding-right: 0; } .order-summary > .payment-status { position: static; margin-top: 12px; }
  .order-row { flex-direction: column; } .order-row-action { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .account-actions { flex-wrap: wrap; } .page-heading { align-items: flex-start; } .page-heading h1 { font-size: 23px; }
}

/* ---------- reading pages: help, updates, agreement */
.page.wide .wrap { max-width: 1000px; }
.page .sub { margin: -14px 0 24px; color: var(--soft); }
.news p { margin: 0; font-size: 14px; color: var(--soft); }
.news .row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--faint); }
.news .row .tag { margin: 0; }
.news h2 { margin-bottom: 8px; }
.legal h2 { margin: 22px 0 8px; font-size: 16px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0; font-size: 14px; line-height: 1.75; color: #555; }

/* ---------- help centre: four tabs over one white card (Usage Process, FAQ, Technical Support, Security Guarantee).
   Without the script every card is shown, one under the other; with it (class "tabbed") only the chosen one. */
.help { padding: 40px 0 80px; }
.help .wrap { max-width: 1040px; }
.help h1 { margin: 0 0 40px; text-align: center; font-size: 32px; font-weight: 700; line-height: 1.4; }
.help-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.help-tabs a { padding: 12px 24px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; color: #666; font-size: 14px; font-weight: 500; line-height: 16px; transition: all 0.3s; }
.help-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.help-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.help-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); padding: 40px; margin-bottom: 24px; scroll-margin-top: 85px; }
.help.tabbed .help-card { display: none; margin-bottom: 0; scroll-margin-top: 300px; }
.help.tabbed .help-card.on { display: block; }
.help-card h2 { margin: 0 0 32px; text-align: center; font-size: 24px; font-weight: 600; line-height: 1.4; }
.help-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.help-card p { margin: 0; color: #666; }
.help-card .pic { flex: none; width: 48px; height: 48px; color: var(--brand); }
.steps { display: grid; gap: 32px; }
.step, .method, .feat { display: flex; align-items: flex-start; padding: 24px; border: 1px solid #f0f0f0; border-radius: 12px; transition: border-color 0.3s, box-shadow 0.3s; }
.step:hover, .method:hover, .feat:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1); }
.step { gap: 24px; min-height: 121px; }
.step .pic { width: 64px; height: 64px; padding: 12px; border-radius: 14px; background: #eef5fd; }
.step h3 { margin-bottom: 12px; font-size: 18px; }
.faq { margin-bottom: 16px; border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; background: #fafafa; cursor: pointer; list-style: none; transition: background 0.3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq[open] summary { background: #f0f8ff; }
.faq summary h3 { margin: 0; font-weight: 500; }
.faq summary .ico { width: 16px; height: 16px; color: #999; transition: transform 0.3s; }
.faq[open] summary .ico { transform: rotate(180deg); }
.faq p { padding: 20px; border-top: 1px solid #f0f0f0; }
.methods, .feats { display: grid; gap: 24px; margin-bottom: 40px; }
.methods { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }   /* one, two or three ways to reach us: the row fills itself */
.feats { grid-template-columns: repeat(2, 1fr); }
.method, .feat { gap: 20px; }
.method p { margin-bottom: 4px; }
.method .tba { color: #999; }
.method .desc { font-size: 12px; color: #999; }
.tips { padding: 24px; border-radius: 8px; background: #f8f9fa; }
.tips h3 { margin-bottom: 16px; }
.tips ul { margin: 0; padding: 0; list-style: none; }
.tips li { position: relative; margin-bottom: 8px; padding-left: 20px; color: #666; }
.tips li::before { content: "\2022"; position: absolute; left: 0; color: var(--brand); }

/* ---------- foot */
.foot { background: var(--foot); color: rgba(255, 255, 255, 0.72); padding: 40px 0 26px; font-size: 14px; }
.foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.foot h4 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #fff; }
.foot p { margin: 0 0 6px; }
.foot .brand b { color: #fff; }
.foot .brand small { color: rgba(255, 255, 255, 0.6); }
.foot .cols p { margin: 12px 0 0; }
.links-col { display: grid; gap: 8px; align-content: start; }
.links-col a { color: rgba(255, 255, 255, 0.78); }
.links-col a:hover { color: #fff; }
.foot .end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.status.good { color: #7ee2a8; }
.status.bad { color: #ff9c8f; }

/* ---------- narrower screens */
@media (max-width: 1020px) {
  .hero.auth .wrap { grid-template-columns: 1fr 400px; }
  .hero.auth .hero-art { display: none; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .top nav { display: none; }
  .brand small { display: none; }
  .hero { padding: 48px 0 64px; min-height: 0; display: block; }
  .hero .wrap, .hero.home .wrap, .hero.auth .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-text h1 { font-size: 26px; }
  .hero-actions { justify-content: center; }
  .hero.auth .hero-text p { display: none; }
  .hero.home .hero-art { max-width: 240px; order: -1; }
  .spark { display: none; }
  .band { padding: 52px 0; }
  .band h2 { font-size: 24px; margin-bottom: 32px; }
  .grid.three, .grid.two { grid-template-columns: 1fr; gap: 20px; }
  .tile { padding: 28px 22px; }
  .help { padding: 28px 0 56px; }
  .help h1 { font-size: 26px; margin-bottom: 24px; }
  .help-tabs { gap: 4px; margin-bottom: 24px; }
  .help-tabs a { padding: 8px 16px; font-size: 13px; }
  .help-card { padding: 20px; }
  .help-card h2 { font-size: 20px; margin-bottom: 20px; }
  .step { flex-direction: column; align-items: center; text-align: center; }
  .methods, .feats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top .wrap { padding: 0 12px; gap: 8px; }
  .tools { gap: 8px; min-width: 0; }
  .brand { gap: 5px; flex: none; } .brand b { font-size: 16px; }
  .nav-username { max-width: 66px; }
  .nav-user { gap: 6px; font-size: 12px; }
  .lang summary { padding: 0 7px; }
  .btn-top { min-width: 0; padding: 0 14px; }
  .lang summary span { display: none; }
  .grid.four { grid-template-columns: 1fr; }
}
/* eight links (including the public SDK) need a second, horizontally scrollable row on narrower screens */
@media (max-width: 1200px) {
  .top { height: 109px; }
  .top .wrap { height: 65px; }
  .top nav { display: flex; position: absolute; top: 65px; left: 0; right: 0; height: 44px; justify-content: flex-start; align-items: center; overflow-x: auto; gap: 22px; padding: 0 20px; background: #fff; border-top: 1px solid #f0f0f0; }
  .top nav a { white-space: nowrap; font-size: 13px; padding: 8px 0; }
}

/* ---------- upload and my tasks (加固 step 1) */
.page.upload .wrap { max-width: 760px; }
.upload-heading { text-align: center; margin: 4px 0 20px; }
.upload-heading h1 { margin-bottom: 8px; }
.upload-heading .sub { margin: 0; }
.page.upload > .wrap > .msg.note { margin-bottom: 16px; }
.consent-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--soft); text-align: center; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px 26px; border: 2px dashed #cfd8e6; border-radius: 12px; background: var(--bg); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus, .drop.over { border-color: var(--brand); background: #f3f8ff; outline: none; }
.drop.off { cursor: not-allowed; opacity: .6; }
.drop .pic { width: 44px; height: 44px; color: var(--brand); }
.drop strong { font-size: 17px; color: var(--ink); }
.drop .linklike { color: var(--brand); font-weight: 600; text-decoration: underline; }
.limits { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; color: var(--soft); line-height: 1.8; }
.chosen { margin: 16px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.bar { height: 8px; margin: 14px 0 6px; border-radius: 4px; background: #e8edf5; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(45deg, var(--brand), var(--brand-deep)); transition: width .2s; }
.progress { margin: 0 0 12px; font-size: 13px; color: var(--soft); }
.upload-card .btn-main { margin: 18px 0 0; }
.upload-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.upload-options .field { min-width: 0; margin: 0; }
.upload-options .field > span { display: block; margin-bottom: 8px; font-weight: 600; }
.upload-options select { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.upload-options select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.upload-options select:disabled { color: #666; background: var(--bg); opacity: 1; }
@media (max-width: 540px) { .upload-options { grid-template-columns: minmax(0, 1fr); } }

.up-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 10px 0 0; }
.up-actions:not(:has(:not([hidden]))) { display: none; }
.up-actions .linklike { font-size: 13px; text-decoration: underline; }
.space-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--soft); }
.hint { font-size: 13px; color: var(--soft); line-height: 1.6; }
.tasks-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.tasks-heading h1 { margin: 0; }
.tasks-summary { padding: 18px 22px; }
.tasks-summary p { margin: 0 0 6px; }
.tasks-summary .sort { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--soft); }
.tasks-summary select { font: inherit; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.task-list { display: grid; gap: 14px; }
.task { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
.task.hot { outline: 2px solid var(--brand); }
.task h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.task .state { justify-self: end; align-self: start; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef2f7; color: #374151; white-space: nowrap; }
.task .state.good { background: #e8f6ee; color: #17703d; }
.task .state.bad { background: #fdecea; color: #a5281b; }
.task .state.busy { background: #fff4e5; color: #9a5b00; }
.task dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 18px; margin: 0; font-size: 13px; }
.task dl > div { min-width: 0; }
.task dt { color: var(--soft); }
.task dd { margin: 0; overflow-wrap: anywhere; }
.task .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.task .note { grid-column: 1 / -1; font-size: 13px; padding: 8px 12px; }
.task .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.task .acts .btn-outline { padding: 6px 14px; font-size: 13px; }
.task .acts .btn-main { display: inline-flex; align-items: center; width: auto; height: auto; margin: 0; padding: 7px 14px; font-size: 13px; font-weight: 600; text-decoration: none; }
.task .acts .danger { color: #a5281b; }
.pager { display: flex; gap: 10px; justify-content: center; margin: 20px 0 0; }
@media (max-width: 600px) {
  .task { grid-template-columns: minmax(0, 1fr); }
  .task .state { justify-self: start; }
  .drop { padding: 26px 14px 20px; }
}

/* ---------- the protection workbench /protect/<taskNo> (加固 step 2): wide screens put the targets and the
   instructions side by side; below 1100px they stack (CLI handoff 14.1) */
.page.protect .wrap { max-width: 1440px; }
.page.protect .panel { padding: 22px 24px; }
.pr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.pr-head h1 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.badge { padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #eef2f7; color: #374151; white-space: nowrap; }
.badge.good { background: #e8f6ee; color: #17703d; }
.badge.bad { background: #fdecea; color: #a5281b; }
.badge.wait { background: #fff4e5; color: #9a5b00; }
.pr-file .facts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 22px; font-size: 14px; }
.pr-file .facts .fact { min-width: 0; }
.pr-file .facts dd { word-break: normal; overflow-wrap: anywhere; }
.progress.busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--brand); border-right-color: transparent; border-radius: 50%; animation: pr-spin 0.9s linear infinite; }
@keyframes pr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress.busy::before { animation: none; } }
.drop.small { padding: 18px 18px 16px; cursor: default; gap: 10px; }
.drop.small p { margin: 0; font-size: 13px; color: var(--soft); line-height: 1.6; max-width: 760px; }
.sym-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; }
.sym-actions .linklike { font-size: 13px; text-decoration: underline; color: #a5281b; }
.sym-choose { display: grid; gap: 6px; margin: 4px 0 0; font-size: 13px; }
.sym-choose .radio { overflow-wrap: anywhere; }
.sym-choose .btn-outline { justify-self: start; margin-top: 6px; }
#pr-sym-state .msg { margin: 12px 0 0; overflow-wrap: anywhere; }
.pr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.pr-stats .stat { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07); padding: 14px 18px; }
.pr-stats b { display: block; font-size: 24px; color: var(--navy); }
.pr-stats span { font-size: 13px; color: var(--soft); }
.findings { margin: 0 0 18px; }
.findings summary { cursor: pointer; font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.findings .msg { margin: 0 0 6px; overflow-wrap: anywhere; }
.pr-split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pr-tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 12px; }
.pr-tools input[type="search"] { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; }
.pr-tools select, .pr-table select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; max-width: 100%; }
.saved { font-size: 13px; color: var(--good); }
.table-wrap { overflow: auto; max-height: 640px; border: 1px solid var(--line); border-radius: 8px; }
.pr-table, .asm { width: 100%; border-collapse: collapse; font-size: 13px; }
.pr-table th { position: sticky; top: 0; background: var(--bg); text-align: left; font-weight: 600; color: var(--soft); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pr-table td { padding: 7px 10px; border-bottom: 1px solid #f0f2f5; vertical-align: top; }
.pr-table tbody tr { cursor: pointer; }
.pr-table tbody tr:hover { background: #f7faff; }
.pr-table tbody tr.focus { background: #eaf2fd; outline: 1px solid var(--brand); outline-offset: -1px; }
.pr-table tbody tr.chosen .name .n { font-weight: 600; }
.pr-table .type { width: 1%; white-space: nowrap; }
.pr-table .covered { display: block; color: var(--soft); font-size: 11px; margin-top: 2px; }
.pr-table .name { max-width: 220px; }
.pr-table .name .n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-table .tag { display: inline-block; margin-bottom: 2px; padding: 0 6px; border-radius: 4px; background: #eef3ff; color: var(--brand-deep); font-size: 11px; font-weight: 600; }
.pr-table .mono, .asm .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; white-space: nowrap; }
.pr-table .num { text-align: right; white-space: nowrap; }
.pr-table .ok { color: var(--good); white-space: nowrap; }
.pr-table .why { color: var(--soft); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-table .empty { color: var(--soft); text-align: center; padding: 22px; cursor: default; }
.pr-asm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pr-asm-head h2 { margin: 0 0 10px; font-size: 16px; overflow-wrap: anywhere; }
.pr-asm .facts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); font-size: 13px; gap: 6px 16px; margin-bottom: 8px; }
.pr-asm .facts .fact { min-width: 0; }
.pr-asm .explain { font-size: 13px; line-height: 1.6; margin: 0 0 6px; }
.pr-asm .tech { font-size: 12px; color: var(--soft); margin: 0 0 6px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pr-asm .tech .k { font-family: inherit; }
.pr-asm .tech.why { color: #a5281b; }
.asm-wrap { max-height: 560px; }
.asm td { padding: 2px 10px; border-bottom: 1px solid #f4f5f7; }
.asm td.dim { color: var(--faint); }
.asm tr.region td { background: #f3f8ff; }
.asm tr.marker td { background: #fff4e5; }
.asm tr.gap td { color: var(--faint); text-align: center; background: var(--bg); }
#pr-asm-more { margin-top: 10px; }
.pr-settings .groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pr-settings .group { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 6px; margin: 0; min-width: 0; }
.pr-settings legend { font-weight: 600; padding: 0 6px; }
.pr-settings .group > .hint { margin: 0 0 8px; }
.switch { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; cursor: pointer; }
.switch input { margin-top: 4px; flex: none; }
.switch .text { display: grid; gap: 2px; min-width: 0; }
.switch b { font-size: 14px; font-weight: 600; }
.switch small { font-size: 12px; color: var(--soft); line-height: 1.5; }
.switch:has(input:disabled) { cursor: default; opacity: .62; }
.switch.abi { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #fff8ec; }
.pr-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 18px; margin: 0 0 30px; }
.pr-submit .btn-main { width: auto; margin: 0; padding-left: 28px; padding-right: 28px; }
.pr-submit .hint { flex-basis: 100%; text-align: right; margin: 0; }
.pr-submit .danger { color: #a5281b; }
.pr-submit .hint.warn { color: #a5281b; }
.pr-back { margin: 0 0 12px; font-size: 15px; }
.pr-back a { color: var(--soft); text-decoration: none; }
.pr-back a:hover { color: var(--ink); text-decoration: underline; }
.pr-run .progress { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.pr-run .msg { margin: 0 0 10px; }
.pr-run .dl { display: inline-block; width: auto; margin: 4px 0 10px; padding-left: 26px; padding-right: 26px; text-decoration: none; }
.pr-run .hint { margin: 4px 0 0; }
@media (max-width: 1100px) {
  .pr-split { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { max-height: 520px; }
}
@media (max-width: 600px) {
  .page.protect .panel { padding: 18px 16px; }
  .pr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-submit, .pr-submit .hint { justify-content: flex-start; text-align: left; }
}

/* ---------- public SDK download and release-owned integration guide */
.page.sdk-page .wrap { max-width: 1120px; }
.sdk-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 24px; align-items: stretch; margin-bottom: 22px; }
.sdk-intro { padding: 12px 6px 12px 0; }
.sdk-intro h1 { margin: 14px 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; color: var(--navy); }
.sdk-intro .sub { max-width: 760px; font-size: 17px; line-height: 1.75; }
.sdk-intro .msg { margin: 18px 0; }
.sdk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.sdk-actions .btn-main, .sdk-actions .btn-outline { display: inline-flex; width: auto; align-items: center; justify-content: center; margin: 0; padding: 10px 20px; text-decoration: none; }
.sdk-actions .off { pointer-events: none; opacity: .55; }
.sdk-identity { margin: 0; }
.sdk-identity h2, .sdk-quick h2, .sdk-guide h2 { margin-top: 0; }
.sdk-identity .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 18px 0; }
.sdk-identity .fact { min-width: 0; }
.sdk-identity .fact:nth-child(n+3) { grid-column: 1 / -1; }
.sdk-identity dt { font-size: 12px; color: var(--soft); }
.sdk-identity dd { margin: 3px 0 0; overflow-wrap: break-word; word-break: normal; }
.sdk-identity dd.mono { font-size: 11px; overflow-wrap: anywhere; word-break: normal; }
.sdk-identity .saved { margin-left: 10px; }
.sdk-quick { margin-bottom: 22px; }
.sdk-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 34px; margin: 0; padding-left: 26px; }
.sdk-steps li { padding-left: 4px; line-height: 1.6; }
.sdk-steps b, .sdk-steps span { display: block; }
.sdk-steps span { color: var(--soft); font-size: 14px; }
.sdk-target-note { margin: 18px 0; }
.codebox { position: relative; margin: 18px 0; }
.codebox pre { margin: 0; padding-right: 86px; }
.code-copy { position: absolute; top: 10px; right: 10px; z-index: 1; border: 1px solid #53637b; border-radius: 6px; background: #1d2939; color: #fff; padding: 5px 10px; cursor: pointer; }
.sdk-guide-head { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.sdk-guide-head .hint { margin-top: -6px; }
.markdown { max-width: 900px; line-height: 1.75; overflow-wrap: anywhere; }
.markdown h2 { margin: 34px 0 10px; font-size: 25px; }
.markdown h3 { margin: 28px 0 8px; font-size: 20px; }
.markdown h4, .markdown h5 { margin: 22px 0 6px; font-size: 17px; }
.markdown p { margin: 10px 0; }
.markdown code, .codebox code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.markdown :not(pre) > code { padding: 1px 5px; border-radius: 4px; background: #f1f4f8; font-size: .92em; }
.markdown pre, .codebox pre { overflow: auto; padding: 18px 20px; border-radius: 9px; background: #162033; color: #eef4ff; font-size: 13px; line-height: 1.65; }
.markdown table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 14px; }
.markdown th, .markdown td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.markdown th { background: var(--bg); }
.markdown ul, .markdown ol { padding-left: 24px; }
@media (max-width: 1100px) {
  .sdk-hero { grid-template-columns: 1fr; }
  .sdk-intro { padding-right: 0; }
}
@media (max-width: 760px) {
  .sdk-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .page.sdk-page .wrap { padding-left: 14px; padding-right: 14px; }
  .sdk-intro h1 { font-size: 30px; }
  .sdk-actions { display: grid; grid-template-columns: 1fr; }
  .sdk-actions .btn-main, .sdk-actions .btn-outline { width: 100%; }
  .sdk-identity, .sdk-quick, .sdk-guide { padding: 20px 16px; }
  .sdk-identity .facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sdk-identity .fact:nth-child(n+3) { grid-column: auto; }
  .codebox pre { padding: 54px 14px 16px; }
  .code-copy { top: 10px; left: 14px; right: auto; }
  .markdown table { display: block; overflow-x: auto; }
}

/* Credit packs: four cards on wide screens, two on tablets, one on phones. */
.membership .plan-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}
.membership .plan-card{min-width:0;padding:26px 20px;display:flex;flex-direction:column}
.membership .plan-card .plan-price strong{font-size:30px;overflow-wrap:anywhere}
.membership .plan-card .btn-main{margin-top:auto}
.membership .membership-banner{grid-template-columns:repeat(5,minmax(0,1fr))}
.duration-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.credit-summary strong{font-size:24px;overflow-wrap:anywhere}
@media(max-width:1050px){.membership .plan-grid,.duration-options{grid-template-columns:repeat(2,minmax(0,1fr))}.membership .membership-banner{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.membership .plan-grid,.duration-options{grid-template-columns:1fr}.membership .membership-banner{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-summary strong{font-size:20px}}
