
  :root {
    --bg: #f2f4f7;
    --ink: #182433;
    --muted: #617085;
    --line: #d9dfe7;
    --accent: #146b9e;
  }
  * { box-sizing: border-box; }
  html, body { min-height: 100%; height: auto; }
  body {
    margin: 0;
    background: linear-gradient(180deg, #f7fafc 0%, #eef3f7 100%);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    display: block;
  }
  .site-footer {
    padding: 18px 24px 26px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
  }
  .site-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .site-footer a {
    color: inherit;
    text-decoration: none;
  }
  .police-record-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .police-record-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }
  .site-footer a:hover,
  .site-footer a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  header {
    background: linear-gradient(120deg, #17293b 0%, #1d3f5c 100%);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
  }
  .tabs {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,.08);
    padding: 5px;
    border-radius: 8px;
  }
  .tabs button {
    border: 1px solid transparent;
    background: transparent;
    color: #c8d3df;
    min-width: 84px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .12s ease;
  }
  .tabs button:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
  }
  .tabs button.active {
    background: #fff;
    color: var(--accent);
    font-weight: 700;
  }
  .tabs button[data-admin-only]:disabled {
    cursor: not-allowed;
    opacity: .62;
  }
  .tabs button[data-admin-only]:disabled::after {
    content: " · 管理员";
    font-size: 11px;
    opacity: .78;
  }
  button {
    -webkit-tap-highlight-color: transparent;
  }
  button:active:not(:disabled) {
    transform: translateY(1px) scale(.98);
  }
  button:focus-visible {
    outline: 3px solid rgba(245, 158, 11, .45);
    outline-offset: 2px;
  }
  .buy-btn {
    border: 0;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(234, 88, 12, .35);
  }
  .ghost-btn {
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.1);
    color: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .12s ease;
  }
  .ghost-btn:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.65);
  }
  .paid-status {
    color: #d9e2ec;
    font-size: 13px;
    white-space: nowrap;
  }
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
  }
  .modal[hidden] {
    display: none;
  }
  .modal-box {
    width: min(420px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(15,23,42,.18);
  }
  #activateModal {
    justify-content: flex-end;
  }
  #activateModal .modal-box {
    width: min(480px, 94vw);
    min-height: min(560px, 88vh);
    margin-right: max(12px, env(safe-area-inset-right));
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: -18px 0 50px rgba(15,23,42,.16);
  }

  /* Desktop login drawer: preserve the first screen while the account panel slides in. */
  @media (min-width: 769px) {
    #activateModal {
      align-items: stretch;
      justify-content: flex-end;
      padding: 0;
      background: rgba(8, 10, 16, .22) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    #activateModal .modal-box {
      width: min(480px, 42vw);
      min-height: 100vh;
      max-height: 100vh;
      margin: 0;
      padding: 42px 38px 32px;
      overflow-y: auto;
      border-radius: 26px 0 0 26px;
      border: 1px solid rgba(255, 255, 255, .72);
      border-right: 0;
      background: rgba(255, 255, 255, .68);
      box-shadow: -22px 0 70px rgba(10, 16, 32, .2), inset 1px 0 0 rgba(255,255,255,.68);
      backdrop-filter: blur(18px) saturate(1.02);
      -webkit-backdrop-filter: blur(18px) saturate(1.02);
      transform: translateX(0);
      animation: login-drawer-in .32s cubic-bezier(.22,.75,.24,1) both;
    }
    #activateModal .modal-box .brand-mark {
      align-self: flex-start;
      margin-left: 0;
    }
    #activateModal .activate-eyebrow,
    #activateModal h2,
    #activateModal .activate-lead,
    #activateModal .auth-mode,
    #activateModal .auth-panel,
    #activateModal .activate-message {
      text-align: left;
    }
    #activateModal h2 { font-size: 36px; }
    #activateModal .activate-lead { margin-bottom: 22px; }
    #activateModal .auth-mode { justify-content: flex-start; }
    #activateModal .modal-actions { flex-direction: row; }
    #activateModal .activate-status-visual { margin-left: auto; margin-right: auto; }
  }
  @keyframes login-drawer-in {
    from { opacity: .35; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
  }
  @media (prefers-reduced-motion: reduce) and (min-width: 769px) {
    #activateModal .modal-box { animation: none; }
  }
  .modal-box h2 {
    margin: 0 0 10px;
    font-size: 20px;
  }
  .modal-box input {
    width: 100%;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 15px;
  }
  .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
  }
  .modal-actions button {
    flex: 1;
  }
  #activateModal .modal-actions {
    gap: 14px;
    margin-top: 18px;
  }
  #activateModal .modal-actions button {
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
  }
  #activateModal #closeActivate {
    order: -1;
  }
  @media (max-width: 480px) {
    #activateModal .modal-actions button {
      min-height: 54px;
      padding-inline: 14px;
    }
  }
  .activate-message {
    margin-top: 10px;
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
  }
  .mobile-login-modal {
    background: rgba(17, 19, 27, .32);
  }
  .mobile-login-box {
    width: min(380px, calc(100vw - 36px));
    padding: 30px 26px 24px;
    border-radius: 22px;
    text-align: center;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .86);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .22);
    backdrop-filter: blur(14px);
  }
  .mobile-login-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 17px;
    color: #fff;
    background: #171719;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .04em;
  }
  .mobile-login-box h2 {
    margin: 0;
    color: #171719;
    font-size: 24px;
  }
  .mobile-login-box p {
    margin: 12px 0 22px;
    color: #5f6064;
    font-size: 14px;
    line-height: 1.7;
  }
  .mobile-login-box #mobileLoginClose {
    width: 100%;
    min-height: 46px;
    border-radius: 13px;
    color: #fff;
    background: #171719;
    border-color: #171719;
  }
  .drawer-close {
    display: none;
  }
  @media (min-width: 769px) {
    #activateModal .drawer-close {
      position: absolute;
      top: 18px;
      right: 20px;
      z-index: 2;
      display: grid;
      width: 38px;
      height: 38px;
      place-items: center;
      padding: 0;
      border: 1px solid rgba(23, 23, 25, .14);
      border-radius: 50%;
      color: #171719;
      background: rgba(255, 255, 255, .42);
      font-size: 25px;
      font-weight: 300;
      line-height: 1;
    }
    #activateModal .drawer-close:hover {
      background: rgba(23, 23, 25, .9);
      color: #fff;
    }
  }
  #partnerModal {
    background: rgba(15, 20, 32, .58);
  }
  #partnerModal .partner-modal-box {
    width: min(460px, 100%);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(132, 149, 202, .32);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(15, 20, 32, .28);
  }
  .partner-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 20px;
    border-bottom: 1px solid #e4e9f6;
  }
  .partner-modal-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #263047;
    font-size: 14px;
    font-weight: 800;
  }
  .partner-modal-mark {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 7px;
    background: #172033;
    color: #fff;
    font: 800 13px/1 Arial, sans-serif;
  }
  .partner-modal-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #d8dfed;
    border-radius: 7px;
    background: #fff;
    color: #526079;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
  }
  .partner-modal-close:hover {
    border-color: #9aa9c7;
    color: #172033;
  }
  .partner-modal-kicker {
    margin: 28px 26px 10px;
    color: #576eb5;
    font-size: 12px;
    font-weight: 800;
  }
  #partnerModal h2 {
    margin: 0 26px;
    color: #172033;
    font-size: 25px;
    line-height: 1.28;
  }
.partner-modal-lead {
  margin: 14px 26px 0;
  color: #546177;
  font-size: 15px;
  line-height: 1.75;
}
.partner-list {
  display: grid;
  gap: 8px;
  margin: 20px 26px 0;
  padding: 14px;
  border: 1px solid #dfe6f5;
  border-radius: 10px;
  background: #fbfcff;
}
.partner-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  color: #172033;
  font-size: 14px;
}
.partner-list-head span {
  color: #546db7;
  font-size: 12px;
  font-weight: 800;
}
.partner-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #e6ebf6;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-size: 14px;
}
.partner-list-item-official {
  border-color: #bdccef;
  background: #f3f6ff;
}
.partner-list-subhead {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #e6ebf6;
  color: #546177;
  font-size: 12px;
  font-weight: 800;
}
.partner-platform {
  color: #546177;
  font-size: 12px;
}
.partner-list-note {
  margin: 2px 0 0;
  color: #7b879a;
  font-size: 12px;
  line-height: 1.5;
}
.partner-modal-steps {
    display: grid;
    gap: 9px;
    margin: 24px 26px;
    padding: 14px;
    border: 1px solid #dfe6f5;
    border-radius: 7px;
    background: #f6f8fe;
  }
  .partner-modal-step {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .partner-modal-step span {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 50%;
    background: #dce6ff;
    color: #3052a1;
    font-size: 12px;
    font-weight: 800;
  }
  .partner-modal-step p {
    margin: 0;
    color: #33405a;
    font-size: 14px;
  }
  .partner-modal-actions {
    padding: 16px 26px 24px;
    border-top: 1px solid #e4e9f6;
  }
  .partner-modal-actions .primary {
    width: 100%;
    min-height: 48px;
    border-color: #172033;
    border-radius: 7px;
    background: #172033;
    color: #fff;
    box-shadow: none;
    font-size: 15px;
  }
  .partner-modal-actions .primary:hover {
    background: #293754;
    color: #fff;
  }
  .partner-modal-actions .primary:focus-visible {
    outline: 3px solid rgba(87, 110, 181, .38);
    outline-offset: 3px;
  }
  @media (max-width: 480px) {
    #partnerModal { padding: 16px; }
    .partner-modal-head { min-height: 62px; padding: 0 18px; }
    .partner-modal-kicker { margin: 23px 20px 9px; }
    #partnerModal h2 { margin: 0 20px; font-size: 22px; }
  .partner-modal-lead { margin: 12px 20px 0; font-size: 14px; }
  .partner-list { margin: 16px 20px 0; }
  .partner-modal-steps { margin: 20px; }
    .partner-modal-actions { padding: 14px 20px 20px; }
  }
  .admin-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }
  .admin-panel[hidden] {
    display: none;
  }
  .generated-code {
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--ink);
  }
  .pay-qr-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 14px 0;
  }
  .pay-plan-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 8px;
  }
  .pay-plan {
    min-height: 58px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }
  .pay-plan-days, .pay-plan-amount, .pay-plan-badge { display: block; visibility: visible; opacity: 1; }
  .pay-plan-days { color: var(--ink) !important; font-size: 15px; }
  .pay-plan-amount { color: var(--accent) !important; font-size: 18px; }
  .pay-plan-amount s { font-size: 12px; opacity: .65; margin-right: 3px; }
  .pay-plan-badge { color: var(--muted); font-size: 11px; font-weight: 600; }
  .pay-plan-contact { border-style: dashed; }
  .pay-plan.active { color: #fff !important; background: var(--accent); border-color: var(--accent); }
  .pay-plan.active .pay-plan-days, .pay-plan.active .pay-plan-amount, .pay-plan.active .pay-plan-badge { color: #fff !important; }
  .pay-plan.active .pay-plan-amount s { opacity: .8; }
  .payment-account-fields {
    display: grid;
    gap: 9px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.42);
  }
  .payment-account-heading { display: grid; gap: 2px; margin-bottom: 2px; }
  .payment-account-heading strong { color: var(--ink); font-size: 14px; }
  .payment-account-heading span,
  .payment-account-fields label { color: var(--muted); font-size: 12px; }
  .payment-username-field { display: grid; gap: 4px; }
  .payment-username-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .payment-username-row label { color: var(--muted); font-size: 12px; }
  .payment-generate-username { min-height: 30px; padding: 4px 9px; font-size: 12px; }
  .payment-account-fields label { display: grid; gap: 4px; }
  #payModal .payment-account-fields label[hidden] { display: none !important; }
  .payment-account-fields input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255,255,255,.62);
  }
  .payment-account-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; }
  .pay-selected { margin: 8px 0; color: var(--muted); font-size: 13px; text-align: center; }
  #payModal h2 { margin-bottom: 6px; }
  .pay-qr-item {
    width: 150px;
  }
  .pay-qr-item img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    box-shadow: 0 6px 16px rgba(24,36,51,.08);
  }
  .pay-tip {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
  }
  .payment-order-box {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
  }
  .payment-order-box[hidden] { display: none; }
  .payment-order-label { color: var(--muted); font-size: 12px; }
  .payment-order-number {
    margin-top: 4px;
    color: var(--ink);
    font: 800 18px/1.35 Consolas, "Microsoft YaHei", sans-serif;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
  }
  .payment-order-status { margin-top: 5px; color: var(--muted); font-size: 12px; }
  #payQrList[hidden] { display: none; }
  .payment-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .payment-order-actions button { flex: 1 1 140px; }
  .payment-proof-box {
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
  .payment-proof-box[hidden] { display: none; }
  .payment-proof-grid { display: grid; gap: 9px; }
  .payment-proof-grid label { color: var(--muted); font-size: 12px; }
  .payment-proof-grid input,
  .payment-proof-grid textarea {
    width: 100%;
    margin-top: 4px;
    padding: 8px 9px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 5px;
    font: inherit;
  }
  .payment-proof-grid textarea { min-height: 62px; resize: vertical; }
  .payment-proof-status { min-height: 18px; color: var(--muted); font-size: 12px; }
  .lock-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: linear-gradient(150deg, #182c40 0%, #22465f 58%, #1b3a52 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lock-screen[hidden] {
    display: none;
  }
  .lock-box {
    width: min(460px, 100%);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 32px 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(7,20,31,.28);
  }
  .lock-preview {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: center;
    gap: 44px;
  }
  .lock-preview-copy {
    text-align: left;
  }
  .lock-preview-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.15;
  }
  .lock-preview-copy p {
    margin: 0;
    color: #c8d6e4;
    font-size: 16px;
  }
  .preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
  }
  .preview-tile {
    min-height: 108px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
  }
  .preview-tile strong { display: block; margin-bottom: 5px; color: #fff; }
  .preview-tile span { color: #b9cddd; font-size: 13px; }
  .lock-title {
    font-size: 26px;
    font-weight: 800;
  }
  .lock-text {
    margin: 12px 0 20px;
    color: #c8d6e4;
    line-height: 1.7;
  }
  .lock-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .lock-actions .ghost-btn {
    width: 100%;
    color: #fff;
  }
  main {
    min-height: calc(100vh - 92px);
    height: auto;
    display: block;
  }
  iframe {
    width: 100%;
    min-height: calc(100vh - 92px);
    height: calc(100vh - 92px);
    border: 0;
    display: block;
  }
  .hidden { display: none; }
  @media (max-width: 640px) {
    body {
      width: 100vw;
      max-width: 100vw;
      overflow-x: hidden;
    }
    header {
      align-items: stretch;
      flex-direction: column;
      min-width: 0;
      overflow-x: hidden;
    }
    .tabs {
      width: 100%;
      min-width: 0;
      display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 4px;
    }
    .tabs button {
      width: 100%;
      flex: none;
      min-width: 0;
      padding-inline: 8px;
    }
    .paid-status {
      order: -1;
      width: 100%;
    }
    #activateModal {
      align-items: stretch;
      padding: 0;
    }
    #activateModal .modal-box {
      width: min(92vw, 440px);
      min-height: 100%;
      margin-left: auto;
      margin-right: 0;
      border-radius: 16px 0 0 16px;
      padding: 30px 22px;
    }
    .lock-preview {
      grid-template-columns: 1fr;
      gap: 22px;
    }
    .lock-screen { align-items: flex-start; }
    .lock-preview-copy { text-align: center; }
    .preview-grid { margin-top: 18px; }
  }

  /* Purchase modal: monochrome frosted glass treatment. */
  #payModal {
    background: rgba(18, 18, 20, .42) !important;
    backdrop-filter: blur(12px) saturate(.72);
    -webkit-backdrop-filter: blur(12px) saturate(.72);
  }
  #payModal .modal-box {
    color: #171719;
    background: rgba(255, 255, 255, .72) !important;
    border: 1px solid rgba(255, 255, 255, .76) !important;
    border-top: 1px solid rgba(255, 255, 255, .76) !important;
    border-radius: 24px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .78);
    backdrop-filter: blur(26px) saturate(.62);
    -webkit-backdrop-filter: blur(26px) saturate(.62);
  }
  #payModal .pay-modal-kicker,
  #payModal .pay-selected,
  #payModal .pay-tip,
  #payModal .payment-order-label,
  #payModal .payment-order-status,
  #payModal .payment-proof-grid label {
    color: #5f6064;
  }
  #payModal h2,
  #payModal .payment-order-number,
  #payModal .modal-box .pay-plan-days {
    color: #171719 !important;
  }
  #payModal .modal-box .pay-partner-link {
    color: #fff !important;
    background: #171719 !important;
    border-color: #171719 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .13);
  }
  #payModal .modal-box .pay-partner-link:hover {
    color: #171719 !important;
    background: rgba(255, 255, 255, .82) !important;
    border-color: #171719 !important;
  }
  #payModal .modal-box .pay-plan {
    color: #171719 !important;
    background: rgba(255, 255, 255, .42) !important;
    border-color: rgba(36, 36, 40, .18) !important;
  }
  #payModal .modal-box .pay-plan .pay-plan-amount,
  #payModal .modal-box .pay-plan .pay-plan-badge {
    color: #55565b !important;
  }
  #payModal .modal-box .pay-plan.active {
    color: #fff !important;
    background: #171719 !important;
    border-color: #171719 !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
  }
  #payModal .modal-box .pay-plan.active .pay-plan-days,
  #payModal .modal-box .pay-plan.active .pay-plan-amount,
  #payModal .modal-box .pay-plan.active .pay-plan-badge {
    color: #fff !important;
  }
  #payModal .modal-box .pay-plan.active .pay-plan-amount s { color: rgba(255, 255, 255, .7) !important; }
  #payModal .modal-box .pay-plan-contact { border-style: dashed !important; }
  #payModal .pay-selected,
  #payModal .payment-order-box,
  #payModal .payment-proof-box {
    background: rgba(255, 255, 255, .42) !important;
    border-color: rgba(36, 36, 40, .14) !important;
  }
  #payModal .payment-proof-grid input,
  #payModal .payment-proof-grid textarea {
    color: #171719;
    background: rgba(255, 255, 255, .54) !important;
    border-color: rgba(36, 36, 40, .18) !important;
  }
  #payModal .modal-actions button {
    color: #171719 !important;
    background: rgba(255, 255, 255, .52) !important;
    border: 1px solid rgba(36, 36, 40, .32) !important;
    border-radius: 14px;
    box-shadow: none;
  }
  #payModal .payment-generate-username {
    min-height: 36px;
    padding: 7px 12px;
    color: #171719 !important;
    background: rgba(255, 255, 255, .52) !important;
    border: 1px solid rgba(36, 36, 40, .32) !important;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  }
  #payModal .payment-generate-username:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .82) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  }
  #payModal .payment-generate-username:focus-visible {
    outline: 3px solid rgba(23, 23, 25, .28);
    outline-offset: 2px;
  }
  #payModal .modal-actions button.primary {
    color: #fff !important;
    background: #171719 !important;
    border-color: #171719 !important;
  }
  #payModal #createPaymentOrderBtn {
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }
  #payModal .modal-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  }
  #payModal .modal-actions button:focus-visible,
  #payModal .modal-box .pay-partner-link:focus-visible,
  #payModal .modal-box .pay-plan:focus-visible {
    outline: 3px solid rgba(23, 23, 25, .28);
    outline-offset: 2px;
  }

  /* Final glass pass: keep the page visible; frost only the floating sheet. */
  #payModal {
    background: rgba(14, 15, 18, .07) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #payModal .modal-box {
    background: rgba(255, 255, 255, .56) !important;
    border: 1px solid rgba(255, 255, 255, .82) !important;
    border-top: 1px solid rgba(255, 255, 255, .82) !important;
    box-shadow: 0 24px 68px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px) saturate(1) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1) !important;
  }
  #payModal .pay-selected,
  #payModal .payment-order-box,
  #payModal .payment-proof-box {
    background: rgba(255, 255, 255, .38) !important;
  }
  #payModal .modal-box .pay-plan {
    background: rgba(255, 255, 255, .30) !important;
  }
  #payModal .modal-box .pay-plan.active,
  #payModal .modal-box .pay-partner-link,
  #payModal .modal-actions button.primary {
    background: rgba(20, 20, 22, .92) !important;
  }
  @media (max-width: 480px) {
    .pay-qr-item {
      width: 128px;
    }
    .lock-box {
      padding: 26px 18px;
    }
  }

  /* Flight-ops visual layer */
  :root {
    --bg: #eef4f9;
    --ink: #1e3042;
    --muted: #64788a;
    --line: #d2dfe9;
    --accent: #2f6f9f;
  }
  body {
    background-color: #eef4f9;
    background-image:
      linear-gradient(rgba(30,48,66,.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(30,48,66,.035) 1px, transparent 1px);
    background-size: 24px 24px;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  }
  header {
    padding: 14px 28px;
    background: #203a56;
    border-bottom: 3px solid #75a9cf;
  }
  .brand {
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .tabs {
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 4px;
    background: rgba(255,255,255,.05);
  }
  .tabs button {
    min-width: 92px;
    border-radius: 2px;
    color: #b8c5bd;
  }
  .tabs button.active {
    background: #dcecf7;
    color: #1e3042;
  }
  .buy-btn {
    background: #ef7f4d;
    border-radius: 3px;
    box-shadow: 0 5px 0 #b8522d;
  }
  .buy-btn:hover { background: #f28f60; }
  .ghost-btn {
    border-radius: 3px;
    background: transparent;
  }
  .modal {
    background: rgba(24,35,38,.68);
  }
  .modal-box {
    border: 1px solid #d2dfe9;
    border-top: 4px solid #ef7f4d;
    border-radius: 3px;
    box-shadow: 0 24px 70px rgba(24,35,38,.28);
  }
  #activateModal .modal-box {
    box-shadow: -22px 0 60px rgba(24,35,38,.22);
  }
  .modal-box input {
    border-radius: 3px;
    background: #f7f8f2;
  }
  .pay-qr-item img {
    border-radius: 3px;
    box-shadow: 0 8px 18px rgba(24,35,38,.12);
  }
  .lock-screen {
    background: #182326;
    background-image:
      linear-gradient(rgba(217,236,223,.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(217,236,223,.06) 1px, transparent 1px);
    background-size: 32px 32px;
  }
  .lock-preview {
    gap: 56px;
  }
  .lock-preview-copy h1 {
    letter-spacing: .08em;
  }
  .preview-tile {
    min-height: 108px;
    border-radius: 3px;
    border-color: rgba(217,236,223,.22);
    background: rgba(217,236,223,.07);
  }
  .lock-box {
    border: 1px solid #d7e1d8;
    border-left: 5px solid #ef7f4d;
    border-radius: 3px;
    background: #f5f5ed;
    color: #182326;
    box-shadow: 14px 18px 0 rgba(239,127,77,.16), 0 24px 60px rgba(0,0,0,.26);
  }
  .lock-title { color: #182326; }
  .lock-text { color: #65726f; }
  .lock-actions .ghost-btn {
    color: #182326;
    border-color: #aebbb1;
  }
  .lock-actions .ghost-btn:hover {
    background: #d9ecdf;
    border-color: #0f7c73;
  }

  /* Full-screen exchange entrance */
  .lock-screen {
    overflow-y: auto;
    overflow-x: hidden;
    isolation: isolate;
    background: #aebff6;
    background-image:
      linear-gradient(118deg, rgba(255,255,255,.86) 0%, rgba(220,228,255,.56) 30%, rgba(105,121,230,.56) 66%, rgba(41,46,159,.92) 100%),
      linear-gradient(28deg, rgba(17,39,148,.65) 0%, transparent 38%, rgba(255,255,255,.44) 100%);
    background-size: 180% 180%, 220% 220%;
    background-position: 0% 50%, 100% 50%;
    animation: liquid-gradient-flow 20s ease-in-out infinite alternate;
    color: #050509;
  }
  .lock-screen::before,
  .lock-screen::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    opacity: .48;
    border-radius: 48%;
    filter: blur(50px);
    transform-origin: center;
    will-change: transform;
  }
  .lock-screen::before {
    width: 128vw;
    height: 30vh;
    left: -30vw;
    bottom: 4vh;
    background: rgba(50, 52, 176, .62);
    transform: rotate(-12deg) translate3d(-10vw, 6vh, 0) scaleX(1.06);
    animation: liquid-ribbon-one 18s ease-in-out infinite alternate;
  }
  .lock-screen::after {
    width: 118vw;
    height: 24vh;
    right: -34vw;
    top: 10vh;
    background: rgba(255, 255, 255, .52);
    transform: rotate(13deg) translate3d(10vw, -5vh, 0) scaleX(1.12);
    animation: liquid-ribbon-two 23s ease-in-out infinite alternate;
  }
  .lock-preview {
    position: relative;
    z-index: 1;
    display: block;
    width: min(1180px, 100%);
    max-width: 100%;
    min-width: 0;
    text-align: center;
  }
  .lock-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    min-width: 0;
  }
  .brand-mark {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border: 1px solid rgba(255,255,255,.76);
    border-radius: 24px;
    background: rgba(255,255,255,.54);
    color: #11131b;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.04em;
    box-shadow: 0 12px 24px rgba(40,47,117,.14), inset 0 1px 0 rgba(255,255,255,.78);
  }
  .lock-eyebrow,
  .activate-eyebrow {
    color: rgba(5,5,9,.62);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
  }
  .lock-preview-copy { display: none; }
  .lock-hero h1 {
    margin: 8px 0 16px;
    color: #050509;
    font-size: clamp(50px, 8vw, 78px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1;
  }
  .lock-hero > p {
    width: 100%;
    max-width: 560px;
    margin: 0;
    color: rgba(5,5,9,.8);
    font-size: 18px;
  }
  .lock-box { display: none; }
  .lock-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 32px;
  }
  .lock-actions .buy-btn,
  .lock-actions .ghost-btn {
    min-height: 52px;
    padding: 14px 25px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
  }
  .lock-actions .buy-btn {
    background: #050509;
    box-shadow: 0 8px 18px rgba(5,5,9,.22);
  }
  .lock-actions .buy-btn:hover { background: #22232a; }
  .lock-actions .ghost-btn {
    width: auto;
    color: #050509;
    border-color: rgba(5,5,9,.4);
    background: rgba(255,255,255,.24);
  }
  .lock-actions .ghost-btn:hover {
    background: rgba(255,255,255,.54);
    border-color: rgba(5,5,9,.68);
  }
  .lock-proof {
    margin-top: 92px;
    color: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 14px rgba(37,45,135,.3);
  }
  .lock-screen .lock-hero {
    transition: transform 4.5s cubic-bezier(.16,.78,.22,1);
    will-change: transform;
  }
  .lock-screen .lock-actions,
  .lock-screen .lock-free-entry {
    max-height: 100px;
    opacity: 1;
    overflow: hidden;
    transform: translateY(0);
    transition: max-height 1.1s ease, margin-top 1.1s ease,
      opacity .8s ease 1.4s, transform .8s cubic-bezier(.16,.78,.22,1) 1.4s;
  }
  .lock-screen .lock-proof {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .9s ease 7.35s, transform .9s cubic-bezier(.22,.76,.25,1) 7.35s;
  }
  .lock-screen.lock-intro-pending .lock-hero {
    transform: translateY(74px) scale(1.08);
  }
  .lock-screen.lock-intro-pending .lock-actions,
  .lock-screen.lock-intro-pending .lock-free-entry {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(52px);
  }
  .lock-screen.lock-intro-pending .lock-proof {
    opacity: 0;
    transform: translateY(16px);
  }
  .lock-screen.lock-intro-active .lock-hero,
  .lock-screen.lock-intro-active .lock-actions,
  .lock-screen.lock-intro-active .lock-free-entry,
  .lock-screen.lock-intro-active .lock-proof {
    transform: translateY(0) scale(1);
  }
  .lock-screen.lock-intro-active .lock-actions {
    max-height: 220px;
    overflow: visible;
    margin-top: 32px;
    opacity: 1;
    pointer-events: auto;
  }
  .lock-screen.lock-intro-active .lock-free-entry {
    max-height: 40px;
    overflow: visible;
    margin-top: 14px;
    opacity: 1;
    pointer-events: auto;
  }
  .lock-screen.lock-intro-active .lock-proof {
    opacity: 1;
  }

  #activateModal {
    align-items: center;
    justify-content: center;
    padding: 28px;
    isolation: isolate;
    overflow: hidden;
    background: #aebff6;
    background-image:
      linear-gradient(118deg, rgba(255,255,255,.88) 0%, rgba(220,228,255,.58) 32%, rgba(105,121,230,.58) 67%, rgba(41,46,159,.94) 100%),
      linear-gradient(28deg, rgba(17,39,148,.67) 0%, transparent 38%, rgba(255,255,255,.46) 100%);
    background-size: 180% 180%, 220% 220%;
    background-position: 0% 50%, 100% 50%;
    animation: liquid-gradient-flow 20s ease-in-out infinite alternate;
  }
  #activateModal::before,
  #activateModal::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    opacity: .42;
    border-radius: 48%;
    filter: blur(50px);
    transform-origin: center;
    will-change: transform;
  }
  #activateModal::before {
    width: 132vw;
    height: 28vh;
    left: -40vw;
    bottom: 7vh;
    background: rgba(50, 52, 176, .58);
    transform: rotate(-12deg) translate3d(-10vw, 6vh, 0) scaleX(1.08);
    animation: liquid-ribbon-one 18s ease-in-out infinite alternate;
  }
  #activateModal::after {
    width: 120vw;
    height: 23vh;
    right: -40vw;
    top: 12vh;
    background: rgba(255, 255, 255, .5);
    transform: rotate(13deg) translate3d(10vw, -5vh, 0) scaleX(1.12);
    animation: liquid-ribbon-two 23s ease-in-out infinite alternate;
  }
  #activateModal .modal-box {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    min-height: auto;
    margin: 0;
    padding: 42px 42px 34px;
    border: 0;
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    color: #050509;
    text-align: center;
    box-shadow: 0 26px 90px rgba(37,45,135,.28), inset 0 1px 0 rgba(255,255,255,.88);
    backdrop-filter: blur(20px);
  }
  #activateModal .brand-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 19px;
    font-size: 19px;
  }
  #activateModal .activate-eyebrow { margin-bottom: 12px; }
  #activateModal h2 {
    margin: 0;
    color: #050509;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.1;
  }
  .activate-lead {
    margin: 13px 0 28px;
    color: rgba(5,5,9,.62);
    font-size: 15px;
  }
  .auth-mode {
    display: flex;
    gap: 7px;
    margin: 0 0 22px;
    padding: 4px;
    border: 1px solid rgba(5,5,9,.12);
    border-radius: 13px;
    background: rgba(255,255,255,.38);
  }
  .auth-mode button {
    flex: 1;
    min-height: 38px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(5,5,9,.6);
    font-size: 12px;
    cursor: pointer;
  }
  .auth-mode button.active { background: #050509; color: #fff; }
  .auth-mode button[data-auth-mode="legacy"],
  .auth-mode button[data-auth-mode="register"] { display: none; }
  .auth-panel[hidden] { display: none; }
  .auth-panel { text-align: left; }
  .auth-panel .activate-field + .activate-field { margin-top: 14px; }
  .auth-panel .modal-actions { margin-top: 22px; }
  .auth-help { margin: 14px 0 0; color: rgba(5,5,9,.48); font-size: 12px; line-height: 1.6; text-align: left; }
  .guest-trial-action { margin-top: 12px; }
  .guest-trial-action button { width: 100%; min-height: 46px; border: 1px solid rgba(5,5,9,.22); border-radius: 999px; background: rgba(255,255,255,.28); color: #050509; font-size: 14px; font-weight: 700; cursor: pointer; }
  .guest-trial-action button:hover { background: rgba(255,255,255,.72); }
  .activate-field { text-align: left; }
  .activate-field label {
    display: block;
    margin-bottom: 8px;
    color: rgba(5,5,9,.72);
    font-size: 13px;
    font-weight: 700;
  }
  #activateModal .modal-box input {
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 17px;
    border: 1px solid rgba(5,5,9,.2);
    border-radius: 12px;
    background: rgba(255,255,255,.8);
    color: #050509;
    font-size: 16px;
    letter-spacing: .04em;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  }
  #activateModal .modal-box input:focus {
    border-color: #050509;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(5,5,9,.08);
  }
  #activateModal .activate-status {
    min-height: 22px;
    margin-top: 11px;
    color: rgba(5,5,9,.56);
    font-size: 12px;
    text-align: left;
  }
  #activateModal .modal-actions {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    margin-top: 22px;
  }
  #activateModal .modal-actions button {
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
  }
  #activateModal .modal-actions .primary {
    flex: 1.2;
    border: 1px solid #050509;
    background: #050509;
    color: #fff;
    box-shadow: 0 8px 16px rgba(5,5,9,.16);
  }
  #activateModal .modal-actions .primary:hover { background: #24252c; }
  #activateModal .modal-actions .secondary {
    order: 2;
    flex: .8;
    border: 1px solid rgba(5,5,9,.22);
    background: rgba(255,255,255,.28);
    color: #050509;
  }
  #activateModal .modal-actions .secondary:hover { background: rgba(255,255,255,.72); }
  #activateModal .activate-message {
    min-height: 22px;
    margin-top: 14px;
    color: #9a3412;
    font-size: 13px;
  }
  #activateModal .activate-status-visual {
    position: relative;
    display: grid;
    width: 68px;
    height: 68px;
    margin: 18px auto 4px;
    place-items: center;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(255,255,255,.62);
    box-shadow: 0 10px 24px rgba(88,110,201,.20), inset 0 1px 0 rgba(255,255,255,.98);
  }
  #activateModal .activate-status-ring {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(143,163,230,.28);
    border-top-color: #fff;
    border-right-color: #fff;
    border-radius: 50%;
  }
  #activateModal .activate-status-check {
    position: absolute;
    display: none;
    width: 24px;
    height: 13px;
    border-bottom: 4px solid #25a86b;
    border-left: 4px solid #25a86b;
    transform: translateY(-2px) rotate(-45deg) scale(0);
    transform-origin: center;
  }
  #activateModal .activate-status-visual[data-state="loading"] .activate-status-ring {
    animation: activate-status-spin .9s linear infinite;
  }
  #activateModal .activate-status-visual[data-state="success"] .activate-status-ring {
    display: none;
  }
  #activateModal .activate-status-visual[data-state="success"] .activate-status-check {
    display: block;
    animation: activate-status-check .34s cubic-bezier(.2,.8,.2,1) forwards;
  }
  #activateModal .activate-status-visual[data-state="success"] {
    border-color: rgba(37,168,107,.36);
    box-shadow: 0 10px 24px rgba(37,168,107,.16), inset 0 1px 0 rgba(255,255,255,.98);
  }
  @keyframes activate-status-spin {
    to { transform: rotate(360deg); }
  }
  @keyframes activate-status-check {
    to { transform: translateY(-2px) rotate(-45deg) scale(1); }
  }
  #activateModal .activate-note {
    margin-top: 16px;
    color: rgba(5,5,9,.46);
    font-size: 12px;
  }
  @media (max-width: 640px) {
    .lock-screen { padding: 24px 18px; }
    .lock-hero > p { width: 100%; font-size: 16px; }
    .lock-actions { width: 100%; max-width: 340px; flex-direction: column; }
    .lock-screen .lock-actions,
    .lock-screen.lock-intro-active .lock-actions,
    .lock-screen .lock-free-entry,
    .lock-screen.lock-intro-active .lock-free-entry {
      max-height: 220px;
      overflow: visible;
    }
    .lock-actions .buy-btn,
    .lock-actions .ghost-btn { width: 100%; }
    .lock-proof { margin-top: 58px; }
    #activateModal { padding: 16px; }
    #activateModal .modal-box { padding: 34px 22px 28px; border-radius: 20px; }
    #activateModal h2 { font-size: 36px; }
    #activateModal .modal-actions { flex-direction: row-reverse; }
  }
  @media (max-width: 400px) {
    body > header .tabs {
      width: 334px;
      max-width: calc(100vw - 56px);
    }
  }

  /* Compact purchase sheet: keep plans and channel choice visible together. */
  #payModal {
    padding: 12px;
    align-items: center;
  }
  #payModal .modal-box {
    width: min(560px, calc(100vw - 24px));
    max-height: min(760px, calc(100vh - 24px));
    padding: 18px 20px 16px;
    border-radius: 20px;
    border-top-width: 3px;
    overflow-y: auto;
  }
  #payModal .pay-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }
  #payModal .pay-modal-kicker {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
  }
  #payModal h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
  }
  #payModal .pay-partner-link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #c7d7fb;
    border-radius: 999px;
    color: #2858ad;
    background: #f2f6ff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }
  #payModal .pay-partner-link:hover {
    color: #fff;
    background: #356fbd;
    border-color: #356fbd;
  }
  #payModal .pay-plan-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 6px;
  }
  #payModal .pay-plan {
    min-height: 66px;
    padding: 8px 6px;
    border-radius: 14px;
  }
  #payModal .pay-plan-days { font-size: 14px; }
  #payModal .pay-plan-amount { font-size: 16px; }
  #payModal .pay-plan-badge { font-size: 10px; }
  #payModal .pay-selected {
    margin: 6px 0;
    padding: 7px 10px;
    border-radius: 10px;
    background: #f4f7fb;
    font-size: 12px;
  }
  #payModal .payment-order-box,
  #payModal .payment-proof-box {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 14px;
  }
  #payModal .payment-order-number { font-size: 16px; }
  #payModal .payment-order-actions { margin-top: 7px; }
  #payModal .pay-qr-list {
    gap: 10px;
    margin: 8px 0;
  }
  #payModal .pay-qr-item { width: 112px; }
  #payModal .payment-proof-grid { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  #payModal .payment-proof-grid label:last-of-type { grid-column: 1 / -1; }
  #payModal .payment-proof-grid textarea { min-height: 48px; }
  #payModal .pay-tip {
    margin: 8px 0;
    font-size: 12px;
    line-height: 1.5;
  }
  #payModal .modal-actions { margin-top: 8px; }
  #payModal .modal-actions button { min-height: 42px; border-radius: 12px; }
  @media (max-width: 560px) {
    #payModal .pay-modal-topbar { align-items: flex-start; flex-direction: column; }
    #payModal .pay-partner-link { width: 100%; }
    #payModal .pay-plan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #payModal .payment-proof-grid { grid-template-columns: 1fr; }
    #payModal .payment-proof-grid label:last-of-type { grid-column: auto; }
  }
  .payment-claim-modal {
    background: rgba(14, 15, 18, .14);
    backdrop-filter: blur(5px) saturate(.9);
    -webkit-backdrop-filter: blur(5px) saturate(.9);
  }
  .payment-claim-box {
    position: relative;
    width: min(470px, calc(100vw - 32px));
    padding: 34px 34px 30px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 24px;
    background: rgba(255,255,255,.68);
    box-shadow: 0 24px 68px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.78);
    backdrop-filter: blur(18px) saturate(1);
    -webkit-backdrop-filter: blur(18px) saturate(1);
    color: #171719;
    text-align: left;
  }
  .payment-claim-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(23,23,25,.22);
    border-radius: 10px;
    color: #171719;
    background: rgba(255,255,255,.48);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
  }
  .payment-claim-close:hover { color: #fff; background: #171719; border-color: #171719; }
  .payment-claim-close:focus-visible,
  .payment-claim-box input:focus-visible,
  .payment-claim-submit:focus-visible,
  .payment-claim-success .primary:focus-visible { outline: 3px solid rgba(23,23,25,.28); outline-offset: 3px; }
  .payment-claim-heading { padding-right: 52px; }
  .payment-claim-box h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.22; letter-spacing: 0; }
  .payment-claim-lead { max-width: 30ch; margin: 0; color: #5f6064; font-size: 15px; line-height: 1.65; }
  .payment-claim-plan {
    margin: 24px 0 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(36,36,40,.14);
    border-bottom: 1px solid rgba(36,36,40,.14);
    color: #17191d;
    background: transparent;
    font-size: 15px;
    font-weight: 750;
  }
  .payment-claim-form { display: grid; gap: 16px; }
  .payment-claim-form label { color: #454b54; font-size: 14px; font-weight: 700; }
  .payment-claim-box .payment-claim-form input {
    margin: 8px 0 0;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(36,36,40,.2);
    border-radius: 10px;
    color: #171719;
    background: rgba(255,255,255,.46);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  }
  .payment-claim-box .payment-claim-form input:focus {
    border-color: #171719;
    background: rgba(255,255,255,.84);
    box-shadow: 0 0 0 4px rgba(23,23,25,.09);
  }
  .payment-claim-status { min-height: 20px; margin: -4px 0 0; color: #5f6064; font-size: 13px; line-height: 1.45; }
  .payment-claim-submit,
  .payment-claim-success .primary {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    border: 1px solid #171719;
    border-radius: 12px;
    color: #fff;
    background: #171719;
    box-shadow: 0 10px 20px rgba(0,0,0,.14);
    font-size: 15px;
    font-weight: 700;
  }
  .payment-claim-submit:hover,
  .payment-claim-success .primary:hover { background: #333438; border-color: #333438; }
  .payment-claim-success { display: grid; gap: 12px; padding: 4px 0 0; }
  .payment-claim-success[hidden] { display: none; }
  .payment-claim-success p { margin: 0; color: #5f6064; font-size: 14px; }
  .payment-claim-success strong {
    display: block;
    padding: 15px 16px;
    border: 1px solid rgba(36,36,40,.16);
    border-radius: 12px;
    color: #171719;
    background: rgba(255,255,255,.42);
    font-size: 22px;
    letter-spacing: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .payment-claim-success span { color: #5f6064; font-size: 14px; line-height: 1.6; }
  @media (max-width: 480px) {
    .payment-claim-box { padding: 30px 22px 24px; border-radius: 20px; }
    .payment-claim-box h2 { font-size: 25px; }
    .payment-claim-lead { font-size: 14px; }
  }
  body > header,
  body > main {
    transition: opacity .48s ease, transform .48s cubic-bezier(.22,.7,.28,1);
  }
  body.workspace-entering > header { opacity: 0; transform: translateY(-9px); }
  body.workspace-entering > main { opacity: 0; transform: translateY(14px); }
  body.workspace-entered > header,
  body.workspace-entered > main { opacity: 1; transform: none; }
  body.workspace-entered > main iframe:not(.hidden) {
    animation: workspace-frame-enter .52s cubic-bezier(.22,.7,.28,1) both;
  }
  @keyframes workspace-frame-enter {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes liquid-gradient-flow {
    0% {
      background-position: 0% 50%, 100% 50%;
    }
    50% {
      background-position: 48% 42%, 54% 58%;
    }
    100% {
      background-position: 100% 54%, 0% 46%;
    }
  }
  @keyframes liquid-ribbon-one {
    0% {
      transform: rotate(-12deg) translate3d(-10vw, 6vh, 0) scaleX(1.06) scaleY(.84);
    }
    50% {
      transform: rotate(-7deg) translate3d(9vw, -4vh, 0) scaleX(1.2) scaleY(1.12);
    }
    100% {
      transform: rotate(-15deg) translate3d(20vw, 5vh, 0) scaleX(1.02) scaleY(.9);
    }
  }
  @keyframes liquid-ribbon-two {
    0% {
      transform: rotate(13deg) translate3d(10vw, -5vh, 0) scaleX(1.12) scaleY(.9);
    }
    50% {
      transform: rotate(7deg) translate3d(-8vw, 5vh, 0) scaleX(1.02) scaleY(1.14);
    }
    100% {
      transform: rotate(16deg) translate3d(-22vw, -3vh, 0) scaleX(1.18) scaleY(.86);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    body > header,
    body > main { transition: none; }
    body.workspace-entering > header,
    body.workspace-entering > main { opacity: 1; transform: none; }
    body.workspace-entered > main iframe:not(.hidden) { animation: none; }
    .lock-screen,
    .lock-screen::before,
    .lock-screen::after,
    #activateModal,
    #activateModal::before,
    #activateModal::after {
      animation: none;
    }
    .lock-screen .lock-hero,
    .lock-screen .lock-actions,
    .lock-screen .lock-proof,
    .lock-screen.lock-intro-pending .lock-hero,
    .lock-screen.lock-intro-pending .lock-actions,
    .lock-screen.lock-intro-pending .lock-proof {
      transition: none;
      transform: none;
      max-height: 132px;
      margin-top: 32px;
      opacity: 1;
      overflow: visible;
      pointer-events: auto;
    }
  }

  /* Final desktop drawer overrides: placed last so legacy centered-login rules cannot win. */
  @media (min-width: 769px) {
    #activateModal {
      align-items: center !important;
      justify-content: flex-end !important;
      padding: 14px !important;
      background: rgba(8, 10, 16, .22) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    #activateModal .modal-box {
      width: min(480px, 42vw) !important;
      min-height: calc(100vh - 28px) !important;
      max-height: calc(100vh - 28px) !important;
      margin: 0 !important;
      padding: 42px 38px 32px !important;
      overflow-y: auto !important;
      border-radius: 26px !important;
      border: 1px solid rgba(255, 255, 255, .72) !important;
      border-right: 1px solid rgba(255, 255, 255, .72) !important;
      background: rgba(255, 255, 255, .68) !important;
      box-shadow: -22px 0 70px rgba(10, 16, 32, .2), inset 1px 0 0 rgba(255,255,255,.68) !important;
      backdrop-filter: blur(18px) saturate(1.02) !important;
      -webkit-backdrop-filter: blur(18px) saturate(1.02) !important;
      animation: login-drawer-in .32s cubic-bezier(.22,.75,.24,1) both !important;
    }
    #activateModal .modal-box .brand-mark { align-self: flex-start !important; margin-left: 0 !important; }
    #activateModal .activate-eyebrow,
    #activateModal h2,
    #activateModal .activate-lead,
    #activateModal .auth-mode,
    #activateModal .auth-panel,
    #activateModal .activate-message { text-align: left !important; }
    #activateModal h2 { font-size: 36px !important; }
    #activateModal .activate-lead { margin-bottom: 22px !important; }
    #activateModal .auth-mode { justify-content: flex-start !important; }
    #activateModal .modal-actions { flex-direction: row !important; }
    #activateModal .activate-status-visual { margin-left: auto !important; margin-right: auto !important; }
  }
  body > header {
    background: #2f516e;
    color: #f2f7fb;
    border-bottom-color: #8faac4;
  }
  body > header .tabs {
    border-color: rgba(220,236,247,.18);
    background: rgba(220,236,247,.06);
  }
  body > header .tabs button { color: #c7d7e5; }
  body > header .tabs button:hover { background: rgba(220,236,247,.14); color: #fff; }
  body > header .tabs button.active { background: #e8eef7; color: #26384d; }
  body > header .buy-btn {
    border: 1px solid #d69b7d;
    border-radius: 7px;
    background: #f6dfd2;
    color: #79442f;
    box-shadow: 0 5px 12px rgba(31, 55, 76, .16), inset 0 1px 0 rgba(255,255,255,.72);
  }
  body > header .buy-btn:hover {
    background: #fae9df;
    border-color: #e1ad92;
  }
  body > header .paid-status { color: #cbd9e5; }
  body > header .account-expiry-status {
    color: #f1c7a8;
    font-size: 12px;
    white-space: nowrap;
  }
  body > header .ghost-btn {
    color: #edf5fb;
    border-color: #8faac4;
  }
  body > header .ghost-btn:hover { background: rgba(220,236,247,.12); border-color: #a9c5da; }
  .particle-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .lock-screen,
  #activateModal {
    background: #cbd5fb;
    background-image: linear-gradient(155deg, #edf1ff 0%, #cbd5fb 46%, #7e89df 100%);
  }
  .lock-screen::before,
  .lock-screen::after,
  #activateModal::before,
  #activateModal::after {
    display: none;
  }
  .lock-screen > *:not(.particle-background),
  #activateModal > *:not(.particle-background) {
    position: relative;
    z-index: 1;
  }
  .lock-screen .brand-mark {
    border-color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.52);
    color: #11131b;
    box-shadow: 0 12px 30px rgba(75,88,177,.18), inset 0 1px 0 rgba(255,255,255,.8);
  }
  .lock-screen .lock-eyebrow,
  .lock-screen .lock-hero h1,
  .lock-screen .lock-hero > p {
    color: #11131b;
    text-shadow: 0 2px 22px rgba(255,255,255,.18);
  }
  .lock-screen .lock-hero > p { color: rgba(17,19,27,.76); }
  .lock-screen .lock-actions .ghost-btn {
    color: #11131b;
    border-color: rgba(17,19,27,.4);
    background: rgba(255,255,255,.2);
  }
  .lock-screen .lock-actions .ghost-btn:hover {
    background: rgba(255,255,255,.48);
    border-color: rgba(17,19,27,.68);
  }
  @media (prefers-reduced-motion: reduce) {
    .particle-background { opacity: .78; }
  }
  @media (max-width: 640px) {
    body > header .tabs {
      width: 100%;
      max-width: calc(100vw - 56px);
      min-width: 0;
    }
    body > header .tabs button {
      width: 100%;
      min-width: 0;
      padding-inline: 8px;
    }
  }
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 3px solid #f2b84b;
    outline-offset: 2px;
  }
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    border-color: var(--accent);
  }
  input[aria-invalid="true"],
  textarea[aria-invalid="true"],
  select[aria-invalid="true"] {
    border-color: #b42318 !important;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .16) !important;
  }
  @media (max-width: 640px) {
    body > header .tabs {
      max-width: 100%;
    }
    body > header .tabs button {
      min-height: 44px;
    }
  }

  /* Stable login drawer: the legacy liquid background animation made the panel appear to shake. */
  @media (min-width: 769px) {
    #activateModal {
      animation: none !important;
      background-image: none !important;
      background-color: rgba(8, 10, 16, .22) !important;
    }
    #activateModal::before,
    #activateModal::after {
      display: none !important;
      animation: none !important;
    }
    #activateModal .modal-box {
      transform: none !important;
      animation: login-drawer-fade-in .18s ease-out both !important;
      will-change: opacity;
    }
  }
  @keyframes login-drawer-fade-in {
    from { opacity: .72; }
    to { opacity: 1; }
  }
  @media (max-width: 640px) {
    #shapeFilter button,
    #difficultyFilter button,
    #timerOptions button,
    .timer-row button,
    .actions button {
      min-height: 44px;
    }
    .modal-box input,
    .modal-box select,
    .modal-box textarea {
      min-height: 44px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    body > header,
    body > main,
    body > header *,
    body > main * {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: .01ms !important;
    }
  }
  @media (max-width: 400px) {
    .modal {
      padding: 10px;
    }
    .modal-box {
      padding: 16px;
    }
    .pay-plan-list {
      gap: 6px;
    }
    .payment-order-actions button {
      flex-basis: 100%;
    }
    .pay-qr-item {
      width: min(128px, calc(50vw - 28px));
    }
    .pay-tip {
      line-height: 1.7;
    }
  }
  /* Stage 6: keep action, status, and narrow-screen states consistent. */
  button:disabled {
    cursor: not-allowed;
    filter: saturate(.72);
    opacity: .58;
    box-shadow: none !important;
    transform: none !important;
  }
  .activate-message:not(:empty),
  .payment-order-status:not(:empty),
  .payment-proof-status:not(:empty) {
    display: block;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f7f9fb;
    overflow-wrap: anywhere;
  }
  .payment-order-status,
  .payment-proof-status {
    line-height: 1.6;
  }
  @media (max-width: 640px) {
    body > header {
      padding: 12px 16px;
      gap: 10px;
    }
    body > header .buy-btn,
    body > header .ghost-btn {
      min-height: 44px;
    }
    body > header .paid-status,
    body > header .account-expiry-status {
      white-space: normal;
      overflow-wrap: anywhere;
    }
  }
@media (max-width: 400px) {
  body > header {
      padding: 10px 12px;
    }
    body > header #partnerBtn,
    body > header #staticActivateBtn,
    body > header #logoutBtn {
      flex: 1 1 calc(50% - 6px);
      min-width: 0;
    }
    body > header .paid-status,
    body > header .account-expiry-status {
      flex-basis: 100%;
    }
    #activateModal .modal-actions {
      flex-direction: column;
    }
    #activateModal .modal-actions button {
      width: 100%;
    }
  }

@media (max-width: 640px) {
  body > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
  }
  body > header .brand,
  body > header .buy-btn,
  body > header .paid-status,
  body > header .account-expiry-status {
    display: none;
  }
  body > header .tabs {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    padding: 2px;
    gap: 2px;
  }
  body > header .tabs button {
    min-height: 34px;
    padding: 4px 6px;
    font-size: 13px;
  }
  body > header #staticActivateBtn,
  body > header #logoutBtn {
    grid-row: 2;
    min-height: 32px;
    padding: 4px 10px;
    font-size: 13px;
  }
  body > header .account-entry-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }
  body > header #staticActivateBtn { grid-column: 1; justify-self: start; }
  body > header #logoutBtn { grid-column: 2; justify-self: end; }
body > main iframe {
    min-height: calc(100vh - 102px);
    height: calc(100vh - 102px);
  }
}

/* Simulation owns its scroll inside the retrospective iframe. */
body.simulation-frame-active {
  overflow: hidden;
}
/* Keep the shell navigation mounted, but remove it from the viewport while a confirmed simulation is active. */
body.simulation-frame-active > header {
  display: none;
}
body.simulation-frame-active > main {
  min-height: 100dvh;
}
body.simulation-frame-active .site-footer {
  display: none;
}

/* Logged-in account status: keep the navigation stable while making the account state scannable. */
body > header {
  align-items: stretch;
  gap: 12px 20px;
}
body > header .header-left,
body > header .header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}
body > header .header-left {
  flex: 1 1 auto;
  gap: 18px;
}
body > header .header-left .brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body > header .brand-mark--header {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  color: #f4f8fb;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 5px 12px rgba(8,20,31,.16), inset 0 1px 0 rgba(255,255,255,.16);
}
body > header .header-left .tabs {
  flex: 0 1 auto;
  min-width: 0;
}
body > header .header-right {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
}
body > header .account-entry-btn {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
body > header .paid-status {
  flex: 0 0 auto;
}
body > header .account-status-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 330px;
  max-width: min(560px, 48vw);
  padding: 7px 9px;
  color: #eef4f8;
  background: rgba(15,36,53,.34);
  border: 1px solid rgba(220,236,247,.24);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
body > header .account-status-area[hidden] {
  display: none;
}
body > header .account-status-content {
  min-width: 0;
  flex: 1 1 270px;
}
body > header .account-status-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  color: #f4f8fb;
  font-size: 13px;
  line-height: 1.25;
}
body > header .account-status-heading strong,
body > header .account-status-heading span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body > header .account-status-heading span:last-child {
  color: #b9cad6;
  font-size: 12px;
}
body > header .account-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #e6eef3;
  box-shadow: 0 0 0 3px rgba(230,238,243,.14);
}
body > header .account-status-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 7px;
}
body > header .account-status-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  color: #dce8ef;
  font-size: 12px;
  line-height: 1.3;
}
body > header .account-status-item small {
  color: #a9bdca;
  font-size: 11px;
  white-space: nowrap;
}
body > header .account-status-item strong {
  color: #f4f8fb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
body > header .account-status-area .ghost-btn {
  flex: 0 0 auto;
  color: #e8f0f5;
  background: transparent;
  border-color: rgba(220,236,247,.42);
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 12px;
}
body > header .account-status-area .ghost-btn:hover {
  color: #fff;
  background: rgba(220,236,247,.12);
  border-color: rgba(220,236,247,.7);
}
body > header .theme-settings {
  position: relative;
  flex: 0 0 auto;
}
body > header .theme-settings-btn {
  min-width: 52px;
}
.theme-settings-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 216px;
  padding: 12px;
  border: 1px solid #c8d7e3;
  border-radius: 8px;
  background: #ffffff;
  color: #26384d;
  box-shadow: 0 12px 28px rgba(19, 45, 68, .18);
}
.theme-settings-panel[hidden] {
  display: none;
}
#selfCheckInstallBtn[hidden] { display: none !important; }
.theme-settings-panel p {
  margin: 0 0 9px;
  color: #48617a;
  font-size: 12px;
  font-weight: 700;
}
.theme-support-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  margin: 0 0 10px;
  padding: 6px 8px;
  border: 1px solid #b7c8d8;
  border-radius: 6px;
  background: #f4f8fb;
  color: #26384d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.theme-support-button:hover { background: #eaf1f7; border-color: #91a9c0; }
.theme-support-button:focus-visible { outline: 3px solid rgba(79,111,174,.36); outline-offset: 2px; }
.theme-support-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #4f6fae;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.theme-support-button strong,
.theme-support-button small { display: block; }
.theme-support-button strong { font-size: 13px; }
.theme-support-button small { margin-top: 2px; color: #647b91; font-size: 11px; }
.theme-option-list {
  display: grid;
  gap: 5px;
}
.theme-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #26384d;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.theme-option:hover {
  background: #f0f5f9;
}
.theme-option[aria-pressed="true"] {
  border-color: #91a9c0;
  background: #eaf1f7;
  font-weight: 700;
}
.theme-swatch {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-right: 8px;
  border: 1px solid rgba(38,56,77,.18);
  border-radius: 50%;
}
.theme-swatch-default { background: #eef4f9; }
.theme-swatch-cyan { background: #f1f8f6; }
.theme-swatch-blue { background: #f2f5fa; }
.theme-swatch-green { background: #f2f7f0; }
.theme-swatch-rose { background: #fcf4f5; }
.self-check-install-modal { background: rgba(18, 32, 48, .38); }
.self-check-install-box {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #d2dfe9;
  border-radius: 10px;
  background: #fff;
  color: #26384d;
  box-shadow: 0 24px 70px rgba(24,35,38,.28);
}
.self-check-install-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #c8d7e3;
  border-radius: 50%;
  background: #fff;
  color: #48617a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.self-check-install-close:hover { background: #f0f5f9; color: #26384d; }
.self-check-install-close:focus-visible,
.self-check-install-actions :is(a, button):focus-visible { outline: 3px solid rgba(79,111,174,.36); outline-offset: 2px; }
.self-check-install-kicker { margin-bottom: 8px; color: #4f6fae; font-size: 12px; font-weight: 700; }
.self-check-install-box h2 { margin: 0 42px 8px 0; font-size: 24px; line-height: 1.25; }
.self-check-install-lead { margin: 0 0 18px; color: #647b91; font-size: 14px; line-height: 1.6; }
.self-check-install-steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: install-step; }
.self-check-install-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 11px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid #dbe5ed;
  border-radius: 6px;
  background: #f7fafc;
  counter-increment: install-step;
}
.self-check-install-steps li::before {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #e5eef7;
  color: #355d87;
  content: counter(install-step);
  font-size: 14px;
  font-weight: 700;
}
.self-check-install-steps strong { align-self: end; color: #26384d; font-size: 14px; line-height: 1.35; }
.self-check-install-steps span { grid-column: 2; margin-top: 3px; color: #647b91; font-size: 13px; line-height: 1.5; }
.self-check-install-notice { margin: 15px 0 0; padding: 10px 12px; border-left: 3px solid #d6a44d; background: #fff9ec; color: #725824; font-size: 12px; line-height: 1.55; }
.self-check-install-support { margin: 10px 0 0; color: #647b91; font-size: 13px; line-height: 1.55; }
.self-check-install-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.self-check-install-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #050509;
  border-radius: 7px;
  background: #050509;
  color: #fff;
  box-shadow: 0 5px 0 #22232a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.self-check-install-download:hover { border-color: #22232a; background: #22232a; box-shadow: 0 5px 0 #050509; color: #fff; }
.after-sales-modal { background: rgba(18, 32, 48, .32); }
.after-sales-box {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  border: 1px solid #d2dfe9;
  border-radius: 10px;
  background: #fff;
  color: #26384d;
  text-align: center;
  box-shadow: 0 24px 70px rgba(24,35,38,.28);
}
.after-sales-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #c8d7e3;
  border-radius: 50%;
  background: #fff;
  color: #48617a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.after-sales-close:hover { background: #f0f5f9; color: #26384d; }
.after-sales-close:focus-visible,
.after-sales-close-action:focus-visible { outline: 3px solid rgba(79,111,174,.36); outline-offset: 2px; }
.after-sales-kicker { margin-bottom: 8px; color: #4f6fae; font-size: 12px; font-weight: 700; }
.after-sales-box h2 { margin: 0 42px 8px; font-size: 24px; line-height: 1.25; }
.after-sales-lead { margin: 0 auto 18px; color: #647b91; font-size: 14px; line-height: 1.6; }
.after-sales-qr-wrap { width: min(286px, 100%); margin: 0 auto 14px; padding: 8px; border: 1px solid #d2dfe9; background: #111; }
.after-sales-qr { display: block; width: 100%; height: auto; }
.after-sales-expiry { margin: 0; color: #647b91; font-size: 12px; line-height: 1.55; }
.after-sales-contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 12px 14px; border: 1px solid #d2dfe9; border-radius: 6px; background: #f4f8fb; text-align: left; }
.after-sales-contact span { color: #647b91; font-size: 13px; }
.after-sales-contact strong { color: #26384d; font-size: 15px; }
.after-sales-close-action {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 14px 25px;
  border: 1px solid #050509;
  border-radius: 999px;
  background: #050509;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(5,5,9,.22);
  cursor: pointer;
}
.after-sales-close-action:hover { background: #22232a; border-color: #22232a; color: #fff; }
.feedback-modal { background: rgba(18, 32, 48, .32); }
.feedback-box {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #d2dfe9;
  border-radius: 10px;
  background: #fff;
  color: #26384d;
  box-shadow: 0 24px 70px rgba(24,35,38,.28);
}
.feedback-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #c8d7e3;
  border-radius: 50%;
  background: #fff;
  color: #48617a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.feedback-close:hover { background: #f0f5f9; color: #26384d; }
.feedback-close:focus-visible,
.feedback-form :is(textarea, input, button):focus-visible { outline: 3px solid rgba(79,111,174,.36); outline-offset: 2px; }
.feedback-kicker { margin-bottom: 8px; color: #4f6fae; font-size: 12px; font-weight: 700; }
.feedback-box h2 { margin: 0 42px 8px 0; font-size: 24px; line-height: 1.25; }
.feedback-lead { margin: 0 0 20px; color: #647b91; font-size: 14px; line-height: 1.6; }
.feedback-form { display: grid; gap: 13px; }
.feedback-content-label { display: grid; gap: 7px; color: #334c64; font-size: 14px; font-weight: 700; }
.feedback-content-label > span { color: #a13f2f; }
.feedback-content-label small { color: #708399; font-size: 12px; font-weight: 500; }
.feedback-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 140px;
  padding: 11px 12px;
  border: 1px solid #b9c9d8;
  border-radius: 6px;
  background: #fff;
  color: #26384d;
  font: inherit;
  font-weight: 400;
  line-height: 1.55;
  resize: vertical;
}
.feedback-form textarea::placeholder { color: #8a9bae; }
.feedback-attachment-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #334c64; font-size: 14px; font-weight: 700; }
.feedback-attachment-heading label span { color: #708399; font-size: 12px; font-weight: 500; }
.feedback-attachment-heading > span { color: #708399; font-size: 12px; font-weight: 500; text-align: right; }
.feedback-form input[type="file"] {
  width: 100%;
  min-height: 42px;
  color: #48617a;
  font: inherit;
  font-size: 13px;
}
.feedback-form input[type="file"]::file-selector-button {
  min-height: 40px;
  margin-right: 12px;
  padding: 9px 16px;
  border: 1px solid #b9c7d2;
  border-radius: 9px;
  background: #fff;
  color: #334c64;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.feedback-form input[type="file"]::file-selector-button:hover { background: #f0f6fa; border-color: #9bbbd2; }
.feedback-form input[type="file"]:focus-visible::file-selector-button { box-shadow: 0 0 0 3px rgba(79,111,174,.24); }
.feedback-form input[type="file"]:disabled::file-selector-button { cursor: not-allowed; opacity: .55; }
.feedback-attachment-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.feedback-attachment-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 7px; border-top: 1px solid #e0e8ef; color: #48617a; font-size: 13px; }
.feedback-attachment-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-attachment-list small { flex: 0 0 auto; color: #708399; font-size: 12px; }
.feedback-status { min-height: 20px; margin: 0; color: #647b91; font-size: 13px; line-height: 1.5; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 5px; }
.feedback-actions button {
  min-width: 108px;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.feedback-cancel { border: 1px solid #b9c7d2; background: #fff; color: #334c64; }
.feedback-cancel:hover { border-color: #9bbbd2; background: #f0f6fa; }
.feedback-submit { border: 1px solid #0f766e; background: #0f766e; color: #fff; box-shadow: 0 5px 12px rgba(15,118,110,.17); }
.feedback-submit:hover:not(:disabled) { border-color: #0b5b55; background: #0b5b55; }
.feedback-actions button:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.feedback-actions button:focus-visible { outline: 3px solid rgba(79,111,174,.36); outline-offset: 2px; }
.feedback-submit:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 480px) {
  .self-check-install-box { padding: 24px 20px 20px; }
  .self-check-install-box h2 { font-size: 22px; }
  .self-check-install-actions { align-items: stretch; flex-direction: column; }
  .after-sales-box { padding: 24px 20px 20px; }
  .after-sales-box h2 { font-size: 22px; }
  .feedback-box { padding: 24px 20px 20px; }
  .feedback-box h2 { font-size: 22px; }
  .feedback-attachment-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .feedback-attachment-heading > span { text-align: left; }
}
@media (max-width: 380px) {
  .feedback-actions { flex-direction: column-reverse; }
  .feedback-actions button { width: 100%; }
}
body[data-page-theme="mist-cyan"] { background-color: #f1f8f6; background-image: none; }
body[data-page-theme="cloud-blue"] { background-color: #f2f5fa; background-image: none; }
body[data-page-theme="mist-green"] { background-color: #f2f7f0; background-image: none; }
body[data-page-theme="morning-rose"] { background-color: #fcf4f5; background-image: none; }
body > header .tabs button.active {
  border-color: #4f6fae;
  box-shadow: inset 0 0 0 1px #4f6fae;
}
body > header .tabs button:focus-visible {
  outline: 3px solid rgba(79,111,174,.42);
  outline-offset: 2px;
}

@media (max-width: 1100px) and (min-width: 641px) {
  body > header .header-left {
    flex-basis: 100%;
  }
  body > header .header-right {
    flex-basis: 100%;
    justify-content: flex-end;
  }
  body > header .account-status-area {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body > header {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  body > header .header-left {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  body > header .header-left .brand {
    display: block;
    font-size: 20px;
  }
  body > header .header-left .brand {
    display: inline-flex;
  }
  body > header .brand-mark--header {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 10px;
  }
  body > header .header-left .tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex: 1 1 100%;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    overflow: hidden;
    order: 3;
  }
  body > header .header-left .tabs button {
    width: auto;
    min-width: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body > header .header-right {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  body > header .header-right .buy-btn,
  body > header .header-right .header-download-btn,
  body > header .header-right #staticActivateBtn {
    min-height: 36px;
    padding: 7px 11px;
  }
  body > header .account-status-area {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    align-items: flex-start;
  }
  body > header .account-status-details {
    gap: 6px 12px;
  }
}

@media (max-width: 400px) {
  body > header .account-status-area {
    gap: 8px;
    padding: 8px;
  }
  body > header .account-status-area .ghost-btn {
    padding-inline: 9px;
  }
  .theme-settings-panel {
    right: auto;
    left: 0;
  }
}

/* Agreement confirmation gate */
#agreementModal {
  z-index: 300;
  background: rgba(0,0,0,.72);
}
#agreementModal .agreement-box {
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 30px;
  border: 1px solid #d9d9d9;
  border-top: 4px solid #111;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
}
.agreement-kicker {
  margin-bottom: 10px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#agreementModal h2 {
  margin: 0;
  color: #111;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}
.agreement-lead {
  margin: 10px 0 18px;
  color: #666;
  font-size: 14px;
}
.agreement-timer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #f5f5f5;
  color: #222;
  font-size: 14px;
  font-weight: 800;
}
.agreement-preview {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.agreement-preview-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #fff;
}
.agreement-preview-index {
  color: #666;
  font-size: 12px;
  font-weight: 900;
}
.agreement-preview-item strong,
.agreement-preview-item span {
  display: block;
}
.agreement-preview-item strong {
  color: #111;
  font-size: 14px;
}
.agreement-preview-item div span {
  margin-top: 2px;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
}
.agreement-preview-item a {
  color: #111;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #f5f5f5;
  color: #222;
  font-size: 13px;
  line-height: 1.6;
}
.agreement-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: #111;
}
.agreement-actions {
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  margin-top: 16px;
}
.agreement-actions button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}
.agreement-actions .primary {
  flex: 1.2;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,.16);
}
.agreement-actions .primary:hover:not(:disabled) {
  background: #2b2b2b;
  border-color: #2b2b2b;
}
.agreement-actions .primary:disabled {
  border-color: #d1d1d1;
  background: #d1d1d1;
  color: #fff;
  box-shadow: none;
}
.agreement-actions .secondary {
  flex: .8;
  border: 1px solid #bdbdbd;
  background: #fff;
  color: #111;
}
.agreement-actions .secondary:hover { background: #f2f2f2; }
.agreement-actions button:focus-visible,
.agreement-preview-item a:focus-visible {
  outline: 3px solid rgba(0,0,0,.2);
  outline-offset: 2px;
}
.agreement-check:focus-within {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,.12);
}
.agreement-note {
  margin: 14px 0 0;
  color: #777;
  font-size: 11px;
  line-height: 1.6;
}

/* Login opening: a flat DX face is revealed as a shallow dimensional mark. */
.lock-screen { overflow: hidden; }
.lock-screen .brand-mark--intro {
  position: absolute;
  left: 0;
  top: auto;
  bottom: clamp(-140px, -13vh, -88px);
  z-index: 0;
  display: grid;
  place-items: center start;
  width: min(43vw, 520px);
  min-width: 310px;
  height: min(31vw, 340px);
  min-height: 0;
  margin: 0;
  overflow: visible;
  isolation: isolate;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.lock-screen .lock-hero > :not(.brand-mark--intro) {
  position: relative;
  z-index: 1;
  transform: none;
}
.lock-screen .lock-hero > .brand-mark__volume {
  position: absolute;
  left: clamp(110px, 12vw, 170px);
  bottom: clamp(-44px, -4vh, -24px);
  z-index: 0;
  width: min(82vw, 1080px);
  height: min(52vw, 520px);
  pointer-events: none;
  opacity: .42;
  background:
    linear-gradient(151deg, transparent 0 42%, rgba(255,255,255,.52) 43% 48%, transparent 49% 58%, rgba(149,216,255,.36) 59% 65%, transparent 66%),
    linear-gradient(151deg, transparent 0 57%, rgba(111,190,255,.28) 58% 64%, transparent 65%),
    linear-gradient(151deg, transparent 0 70%, rgba(255,255,255,.30) 71% 74%, transparent 75%);
  filter: blur(1px);
  transform: translate3d(-32px, 22px, 0) scale(.86);
  transform-origin: 0 100%;
}
.lock-screen .lock-hero > .brand-mark__volume::before,
.lock-screen .lock-hero > .brand-mark__volume::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.36), rgba(121,187,255,.16));
  clip-path: polygon(0 56%, 100% 0, 100% 12%, 0 66%);
}
.lock-screen .lock-hero > .brand-mark__volume::after {
  background: linear-gradient(180deg, rgba(202,241,255,.28), rgba(114,164,255,.14));
  clip-path: polygon(0 69%, 100% 19%, 100% 27%, 0 76%);
}
.lock-screen.lock-intro-active .lock-hero > .brand-mark__volume {
  animation: dx-volume-reveal 1.8s cubic-bezier(.16,.78,.22,1) .18s both;
}
.lock-mobile-break { display: none; }
.lock-screen .brand-mark--intro::before {
  content: attr(data-mark);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(91, 125, 214, .38);
  font-family: Arial, sans-serif;
  font-size: clamp(166px, 24vw, 286px);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .82;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  text-shadow:
    4px 5px 0 rgba(69, 92, 179, .28),
    9px 11px 0 rgba(69, 92, 179, .22),
    15px 18px 0 rgba(69, 92, 179, .16),
    22px 26px 0 rgba(69, 92, 179, .10);
  will-change: transform, opacity;
}
.lock-screen .brand-mark--intro .brand-mark__face {
  position: relative;
  z-index: 5;
  display: block;
  font-family: Arial, sans-serif;
  font-size: clamp(166px, 24vw, 286px);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .82;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
  -webkit-text-stroke: 1px rgba(236, 250, 255, .96);
  opacity: .88;
  filter: drop-shadow(0 0 2px rgba(238, 253, 255, .98)) drop-shadow(0 0 12px rgba(119, 191, 255, .44)) drop-shadow(120px -84px 34px rgba(151, 218, 255, .22)) drop-shadow(15px 20px 24px rgba(66, 91, 187, .20));
  will-change: filter;
}
.lock-screen .brand-mark--intro::after {
  content: attr(data-mark);
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  color: transparent;
  font-family: Arial, sans-serif;
  font-size: clamp(166px, 24vw, 286px);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .82;
  pointer-events: none;
  opacity: 0;
  background-image: linear-gradient(42deg, transparent 0%, transparent 39%, rgba(204,214,255,.88) 47%, rgba(107,120,221,.82) 52%, transparent 61%, transparent 100%);
  background-size: 330% 330%;
  background-position: 108% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  will-change: background-position, opacity;
}
.lock-screen .brand-mark__rays,
.lock-screen .brand-mark__ground {
  position: absolute;
  pointer-events: none;
}
.lock-screen .brand-mark__rays {
  top: -34%;
  right: -96%;
  bottom: -20%;
  left: 8%;
  z-index: 4;
  opacity: .42;
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(124,193,255,.24));
  clip-path: polygon(0 58%, 100% 0, 100% 16%, 0 70%);
  background:
    linear-gradient(154deg, transparent 0 42%, rgba(255,255,255,.58) 43% 47%, transparent 48% 61%, rgba(184,229,255,.46) 62% 66%, transparent 67%),
    linear-gradient(154deg, transparent 0 55%, rgba(121,193,255,.44) 56% 61%, transparent 62%),
    linear-gradient(154deg, transparent 0 68%, rgba(255,255,255,.34) 69% 72%, transparent 73%);
  mix-blend-mode: screen;
  filter: blur(1px);
  transform: translate3d(-18px, 18px, 0) scale(.86);
  transform-origin: 20% 78%;
}
.lock-screen .brand-mark__rays::before,
.lock-screen .brand-mark__rays::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.44), rgba(154,214,255,.20));
  filter: blur(.5px);
}
.lock-screen .brand-mark__rays::before {
  clip-path: polygon(0 57%, 100% 0, 100% 12%, 0 68%);
}
.lock-screen .brand-mark__rays::after {
  background: linear-gradient(180deg, rgba(205,241,255,.34), rgba(127,173,255,.16));
  clip-path: polygon(0 70%, 100% 20%, 100% 27%, 0 77%);
}
.lock-screen .brand-mark__ground {
  right: 8%;
  bottom: -3%;
  left: 3%;
  z-index: 2;
  height: 18%;
  opacity: .28;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(116, 154, 235, .36) 0%, rgba(136, 187, 255, .18) 34%, transparent 74%);
  filter: blur(10px);
  transform: scaleX(.72);
}
.lock-screen.lock-intro-active .brand-mark--intro::before {
  animation: dx-logo-depth-reveal .86s cubic-bezier(.16,1,.3,1) .28s forwards;
}
.lock-screen.lock-intro-active .brand-mark--intro .brand-mark__face {
  text-shadow:
    1px 1px 0 rgba(105, 171, 226, .82),
    3px 4px 0 rgba(105, 147, 222, .44),
    8px 10px 0 rgba(83, 111, 197, .24),
    16px 19px 0 rgba(83, 111, 197, .13);
}
.lock-screen.lock-intro-active .brand-mark--intro::after {
  animation: dx-logo-light-sweep 1.05s cubic-bezier(.2,.8,.2,1) .04s both;
}
.lock-screen.lock-intro-active .brand-mark__rays {
  animation: dx-logo-rays-reveal 1.65s cubic-bezier(.16,.78,.22,1) .26s both;
}
.lock-screen.lock-intro-active .brand-mark__ground {
  animation: dx-logo-ground-reveal .9s ease .72s both;
}
@keyframes dx-logo-light-sweep {
  0% { opacity: 0; background-position: 108% 100%; }
  10% { opacity: 1; }
  70% { opacity: .96; }
  100% { opacity: 0; background-position: -8% 0%; }
}
@keyframes dx-logo-depth-reveal {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  72% { opacity: .78; transform: translate3d(25px, 29px, 0); }
  100% { opacity: .72; transform: translate3d(21px, 25px, 0); }
}
@keyframes dx-logo-rays-reveal {
  0% { opacity: 0; transform: translate3d(-18px, 18px, 0) scale(.86); }
  45% { opacity: .78; }
  100% { opacity: .58; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes dx-logo-ground-reveal {
  0% { opacity: 0; transform: scaleX(.42); }
  100% { opacity: .68; transform: scaleX(1); }
}
@keyframes dx-volume-reveal {
  0% { opacity: 0; transform: translate3d(-32px, 22px, 0) scale(.86); }
  42% { opacity: .62; }
  100% { opacity: .42; transform: translate3d(0, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lock-screen .brand-mark--intro::before {
    animation: none;
    opacity: .72;
    transform: translate3d(21px, 25px, 0);
  }
  .lock-screen .brand-mark--intro .brand-mark__face {
    animation: none;
  }
  .lock-screen .brand-mark--intro::after {
    animation: none;
    display: none;
  }
  .lock-screen .brand-mark__rays {
    opacity: .58;
    transform: none;
  }
  .lock-screen .brand-mark__ground {
    opacity: .68;
    transform: none;
  }
  .lock-screen .lock-hero > .brand-mark__volume {
    opacity: .42;
    transform: none;
  }
}
@media (max-width: 560px) {
  .lock-screen .brand-mark--intro {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: 128px;
    min-width: 0;
    height: 90px;
    margin: 0 auto 20px;
    opacity: 1;
    transform: none;
  }
  .lock-screen .lock-hero > :not(.brand-mark--intro) {
    transform: none;
  }
  .lock-screen .brand-mark--intro::before,
  .lock-screen .brand-mark--intro .brand-mark__face,
  .lock-screen .brand-mark--intro::after {
    font-size: clamp(70px, 24vw, 112px);
  }
  .lock-screen .brand-mark__rays,
  .lock-screen .brand-mark__ground,
  .lock-screen .lock-hero > .brand-mark__volume {
    display: none;
  }
  .lock-screen .lock-hero > p {
    width: min(100%, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    padding: 0 4px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .lock-screen .lock-mobile-break { display: inline; }
  .lock-screen .lock-hero {
    min-height: 0;
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  #agreementModal { padding: 12px; }
  #agreementModal .agreement-box { width: 100%; max-height: calc(100vh - 24px); padding: 22px 18px; }
  .agreement-preview-item { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
  .agreement-preview-item a { grid-column: 2; }
  .agreement-actions { flex-direction: column; }
  .agreement-actions button { width: 100%; }
}

/* Public shell refresh: keep training iframe content and data untouched. */
body > header {
  position: relative;
  z-index: 30;
  background: #ffffff;
  color: #171717;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 3px 14px rgba(17, 24, 39, .06);
}
body > header .brand { color: #111111; }
body > header .brand-mark--header {
  border-color: #202124;
  background: #202124;
  color: #ffffff;
  box-shadow: none;
}
body > header .tabs {
  background: transparent;
  padding: 0;
  gap: 4px;
}
body > header .tabs button {
  color: #4b5563;
  border-color: transparent;
  border-radius: 6px;
}
body > header .tabs button:hover {
  background: #f3f4f6;
  color: #111111;
}
body > header .tabs button.active {
  background: #f1f1f1;
  color: #111111;
  border-color: #d1d5db;
  box-shadow: none;
}
body > header .ghost-btn,
body > header .account-entry-btn {
  color: #202124;
  background: #ffffff;
  border-color: #d1d5db;
}
body > header .ghost-btn:hover,
body > header .account-entry-btn:hover {
  color: #111111;
  background: #f5f5f5;
  border-color: #9ca3af;
}
body > header .buy-btn {
  background: #202124;
  color: #ffffff;
  border: 1px solid #202124;
  border-radius: 7px;
  box-shadow: none;
}
body > header .buy-btn:hover {
  background: #383a3d;
  border-color: #383a3d;
}
body > header .paid-status { color: #6b7280; }
body > header .announcement-bell {
  position: relative;
  width: 42px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
}
.announcement-bell-icon {
  position: relative;
  width: 16px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 5px 5px;
  display: block;
}
.announcement-bell-icon::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.announcement-bell-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.announcement-bell-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #e05a47;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.announcement-bell-badge[hidden] {
  display: none !important;
}
.announcement-modal {
  background: rgba(8, 10, 16, .34) !important;
  backdrop-filter: blur(10px) saturate(.9);
  -webkit-backdrop-filter: blur(10px) saturate(.9);
}
.announcement-modal-box {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 30px 32px 32px;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  border-top: 1px solid rgba(255, 255, 255, .78) !important;
  border-radius: 22px;
  background: rgba(255, 255, 255, .78) !important;
  color: #050509;
  box-shadow: 0 26px 90px rgba(10, 16, 32, .24), inset 0 1px 0 rgba(255, 255, 255, .88);
  backdrop-filter: blur(20px) saturate(1.02);
  -webkit-backdrop-filter: blur(20px) saturate(1.02);
}
.announcement-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.announcement-modal-head h2 { margin: 0; color: #050509; font-size: 36px; font-weight: 500; letter-spacing: 0; line-height: 1.1; }
.announcement-modal .activate-eyebrow { margin-bottom: 10px; color: rgba(5, 5, 9, .54); }
.announcement-modal-description { margin: 13px 0 22px; color: rgba(5, 5, 9, .62); font-size: 14px; line-height: 1.65; }
.announcement-list { display: grid; gap: 12px; max-height: min(62vh, 560px); overflow: auto; padding-right: 2px; }
.announcement-item { padding: 15px 16px; border: 1px solid rgba(5, 5, 9, .12); border-radius: 12px; background: rgba(255, 255, 255, .56); }
.announcement-item.unread { border-color: rgba(224, 90, 71, .48); background: rgba(255, 250, 248, .86); }
.announcement-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.announcement-item-title { margin: 0; color: #171719; font-size: 16px; line-height: 1.45; }
.announcement-item-meta { color: rgba(5, 5, 9, .48); font-size: 12px; white-space: nowrap; }
.announcement-item-content { margin: 9px 0 0; color: rgba(5, 5, 9, .74); font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement-item-status { margin-top: 9px; color: rgba(5, 5, 9, .48); font-size: 12px; }
.announcement-item-status.important { color: #b44131; font-weight: 700; }
.announcement-empty { padding: 26px 12px; color: rgba(5, 5, 9, .54); text-align: center; }
.announcement-modal .drawer-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(5, 5, 9, .14);
  border-radius: 50%;
  color: #171719;
  background: rgba(255, 255, 255, .42);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}
.announcement-modal .drawer-close:hover { color: #fff; background: rgba(23, 23, 25, .9); }
.announcement-modal .drawer-close:focus-visible { outline: 3px solid rgba(5, 5, 9, .18); outline-offset: 2px; }
@media (max-width: 768px) {
  body > header .announcement-bell { width: 38px; height: 38px; }
  .announcement-modal-box { width: min(100%, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 24px 18px 20px; border-radius: 18px; }
  .announcement-modal-head h2 { font-size: 32px; }
  .announcement-item-head { display: block; }
  .announcement-item-meta { display: block; margin-top: 5px; }
}
body > header .account-menu {
  position: relative;
  flex: 0 0 auto;
}
body > header .theme-settings-btn {
  border-radius: 7px;
}
body > header .account-entry-btn {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}
body > header .account-status-area {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  display: block;
  width: min(360px, calc(100vw - 24px));
  min-width: 0;
  max-width: none;
  padding: 16px;
  color: #202124;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(17, 24, 39, .14);
}
body > header .account-status-heading {
  color: #111111;
}
body > header .account-status-heading span:last-child { color: #6b7280; }
body > header .account-status-dot {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}
body > header .account-status-item { color: #374151; }
body > header .account-status-item small { color: #6b7280; }
body > header .account-status-item strong { color: #111111; }
body > header .account-status-area .ghost-btn {
  color: #202124;
  border-color: #d1d5db;
}
body > header .account-status-area .ghost-btn:hover {
  color: #111111;
  background: #f3f4f6;
  border-color: #9ca3af;
}
body > header .header-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;
}
/* The self-check utility is a supporting test action; account activation remains
   the primary header action beside it. */
body > header .self-check-header-btn {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  color: #202124;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .12s ease;
}
body > header .self-check-header-btn:hover {
  color: #111111;
  background: #f5f5f5;
  border-color: #9ca3af;
}
body > header .self-check-header-btn:focus-visible {
  outline: 3px solid rgba(32, 33, 36, .22);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  body > header .self-check-header-btn {
    min-height: 36px;
    padding: 7px 11px;
  }
  body > header .account-menu { flex: 0 0 auto; }
  body > header .account-entry-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }
  body > header .account-status-area {
    position: fixed;
    top: 78px;
    right: 12px;
    width: min(360px, calc(100vw - 24px));
  }
}

/* Free entry remains a quiet secondary route. The two established account actions
   retain their original button hierarchy above it. */
.lock-free-entry {
  display: flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 14px auto 0;
  padding: 7px 17px;
  border: 1px solid rgba(5, 5, 9, .36);
  border-radius: 999px;
  color: #050509;
  background: rgba(255, 255, 255, .22);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 5px 12px rgba(40, 47, 117, .08);
  transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.lock-free-entry:hover {
  border-color: rgba(5, 5, 9, .68);
  background: rgba(255, 255, 255, .54);
  box-shadow: 0 8px 16px rgba(40, 47, 117, .14);
}
.free-login-entry {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 25, .28);
  color: #424247;
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.free-login-entry:hover { color: #111111; border-bottom-color: #111111; }
.free-experience-modal {
  background: rgba(7, 13, 24, .44);
  backdrop-filter: blur(10px) saturate(.9);
  -webkit-backdrop-filter: blur(10px) saturate(.9);
}
.free-experience-box {
  position: relative;
  width: min(500px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 34px 34px 28px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 18px;
  color: #171719;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 26px 80px rgba(5, 14, 25, .28);
}
.free-experience-box .brand-mark { margin-bottom: 24px; }
.free-experience-box h2 {
  max-width: 11em;
  margin: 0;
  color: #111111;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.13;
}
.free-experience-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  color: #202124;
  background: #ffffff;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.free-experience-close:hover { color: #ffffff; background: #202124; border-color: #202124; }
.free-experience-lead {
  margin: 16px 0 22px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.75;
}
.free-experience-benefits {
  margin: 0;
  padding: 0;
  border-top: 1px solid #e5e7eb;
  list-style: none;
}
.free-experience-benefits li {
  display: grid;
  grid-template-columns: minmax(128px, .85fr) minmax(0, 1.45fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}
.free-experience-benefits strong { color: #171719; font-size: 14px; line-height: 1.55; }
.free-experience-benefits span { color: #5b6472; font-size: 13px; line-height: 1.6; }
.free-experience-error {
  margin: 18px 0 0;
  color: #9b1c1c;
  font-size: 13px;
  line-height: 1.65;
}
.free-experience-error[hidden] { display: none; }
.free-experience-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.free-experience-actions button {
  min-height: 46px;
  flex: 1;
  border-radius: 8px;
}
.free-experience-actions .primary { color: #ffffff; background: #202124; border-color: #202124; }
.free-experience-actions .primary:hover { background: #383a3d; border-color: #383a3d; }
.free-experience-actions .secondary { color: #202124; background: #ffffff; border-color: #d1d5db; }
.free-experience-actions .secondary:hover { background: #f3f4f6; border-color: #9ca3af; }
.free-experience-close:focus-visible,
.free-login-entry:focus-visible,
.lock-free-entry:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .48);
  outline-offset: 3px;
}
.free-experience-box :is(button):focus-visible { outline: 3px solid rgba(17, 24, 39, .22); outline-offset: 3px; }
@media (max-width: 560px) {
  .lock-free-entry { max-width: min(100%, 320px); }
  .free-experience-box { width: min(100%, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 28px 20px 20px; border-radius: 16px; }
  .free-experience-box .brand-mark { margin-bottom: 20px; }
  .free-experience-box h2 { max-width: 100%; font-size: 30px; }
  .free-experience-benefits li { grid-template-columns: 1fr; gap: 3px; padding: 12px 0; }
  .free-experience-actions { flex-direction: column-reverse; gap: 9px; margin-top: 20px; }
  .free-experience-actions button { width: 100%; }
}
/* Cloud-backed free diagnostic workspace. No legacy training iframe is used here. */
.free-workspace-modal {
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 13, 24, .56);
  backdrop-filter: blur(12px) saturate(.9);
  -webkit-backdrop-filter: blur(12px) saturate(.9);
}
.free-workspace-box {
  display: flex;
  width: min(760px, calc(100vw - 36px));
  max-height: min(820px, calc(100vh - 36px));
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9) !important;
  border-top: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 20px;
  background: rgba(250, 252, 255, .97) !important;
  color: #171719;
  box-shadow: 0 26px 80px rgba(5,14,25,.34);
}
.free-workspace-head { position: relative; padding: 30px 34px 22px; border-bottom: 1px solid #e5e7eb; background: linear-gradient(125deg, #edf3ff, #f9fbff 62%, #eef3ff); }
.free-workspace-kicker, .free-content-eyebrow { display: block; color: #52677f; font-size: 12px; font-weight: 800; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; }
.free-workspace-head h2 { max-width: 14em; margin: 8px 42px 7px 0; color: #111827; font-size: clamp(27px, 4vw, 38px); font-weight: 650; letter-spacing: -.035em; line-height: 1.08; }
.free-workspace-head p { margin: 0; color: #657182; font-size: 14px; line-height: 1.65; }
.free-workspace-head .free-experience-close { top: 25px; right: 26px; color: #202124; background: rgba(255,255,255,.56); border-color: rgba(17,24,39,.12); }
.free-workspace-rail { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1px; border-bottom: 1px solid #e5e7eb; background: #e5e7eb; }
.free-rail-item, .free-rail-expiry { min-height: 64px; padding: 12px 18px; background: #fff; }
.free-rail-label { display: block; color: #667085; font-size: 12px; line-height: 1.4; }
.free-rail-value { display: block; margin-top: 4px; color: #111827; font-size: 17px; letter-spacing: -.02em; }
.free-rail-expiry { display: flex; align-items: center; color: #667085; font-size: 12px; white-space: nowrap; }
.free-workspace-tabs { display: flex; gap: 22px; padding: 0 34px; border-bottom: 1px solid #e5e7eb; background: #fff; }
.free-workspace-tabs button { position: relative; min-height: 52px; padding: 0; border: 0; border-bottom: 2px solid transparent; color: #667085; background: transparent; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.free-workspace-tabs button.active { border-bottom-color: #111827; color: #111827; }
.free-workspace-content { min-height: 310px; overflow-y: auto; padding: 28px 34px 30px; outline: 0; }
.free-content-intro h3 { margin: 8px 0 8px; color: #111827; font-size: 25px; font-weight: 650; letter-spacing: -.028em; line-height: 1.18; }
.free-content-intro > p { max-width: 60ch; margin: 0 0 20px; color: #667085; font-size: 14px; line-height: 1.75; }
.free-primary-action, .free-secondary-action, .free-text-action { min-height: 45px; padding: 10px 16px; border: 1px solid #111827; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; transition: transform .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease; }
.free-primary-action { color: #fff; background: #111827; box-shadow: 0 8px 18px rgba(17,24,39,.16); }
.free-primary-action:hover { background: #26303d; transform: translateY(-1px); }
.free-secondary-action { color: #1f2937; border-color: #cbd5e1; background: #fff; }
.free-secondary-action:hover { border-color: #94a3b8; background: #f8fafc; }
.free-text-action { min-height: 40px; padding: 8px 0; border: 0; color: #52677f; background: transparent; }
.free-text-action:hover { color: #111827; }
.free-primary-action:disabled, .free-secondary-action:disabled { cursor: wait; opacity: .62; transform: none; }
.free-question-card { margin-top: 20px; padding: 22px; border: 1px solid #dbe3ed; border-radius: 14px; background: #fff; }
.free-question-meta { display: flex; align-items: center; gap: 10px; color: #667085; font-size: 12px; }
.free-question-tag { padding: 4px 8px; border-radius: 99px; color: #34485d; background: #edf3f8; font-weight: 750; }
.free-question-tags { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.free-question-card h4, .free-answer-detail h4, .free-report h4 { margin: 14px 0 10px; color: #111827; font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.45; }
.free-question-prompt { margin: 0; color: #374151; font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.free-question-condition { margin-top: 16px; padding: 14px 15px; border-left: 3px solid #9ab8d1; border-radius: 0 8px 8px 0; background: #f3f7fa; }
.free-question-condition strong { color: #34485d; font-size: 12px; letter-spacing: .06em; }
.free-question-condition p { margin: 6px 0 0; color: #46576a; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.free-choice-list { display: grid; gap: 9px; margin-top: 18px; }
.free-choice { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 11px; width: 100%; padding: 12px 14px; border: 1px solid #d7e0ea; border-radius: 9px; color: #374151; background: #fff; text-align: left; font: inherit; font-size: 14px; line-height: 1.55; cursor: pointer; }
.free-choice:hover { border-color: #8ca7bd; background: #f8fbfd; }
.free-choice.selected { border-color: #1f3f5b; color: #102a42; background: #edf5fb; box-shadow: inset 0 0 0 1px #1f3f5b; }
.free-choice-key { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #52677f; background: #edf2f7; font-size: 12px; font-weight: 800; }
.free-choice.selected .free-choice-key { color: #fff; background: #1f3f5b; }
.free-answer-label { display: block; margin-top: 18px; color: #52677f; font-size: 13px; font-weight: 750; }
.free-answer-label textarea { box-sizing: border-box; display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid #cbd5e1; border-radius: 9px; color: #111827; background: #fff; font: inherit; font-size: 14px; line-height: 1.65; resize: vertical; }
.free-answer-label textarea:focus { border-color: #698ba6; outline: 3px solid rgba(105,139,166,.17); }
.free-question-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.free-answer-detail, .free-report, .free-summary-empty { margin-top: 20px; padding: 22px; border: 1px solid #d5e4d8; border-radius: 14px; background: #f7fcf8; }
.free-answer-value { margin: 0 0 10px; color: #214331; font-size: 15px; font-weight: 750; }
.free-answer-copy { margin: 0; color: #3f5548; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.free-content-status { margin: 16px 0 0; color: #52677f; font-size: 13px; line-height: 1.6; }
.free-content-status.is-success { color: #247247; }
.free-content-status.is-error { color: #a1422b; }
.free-exam-notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #d9e6f2; border-radius: 9px; color: #496176; background: #f4f8fb; font-size: 13px; line-height: 1.65; }
.free-exam-index { display: block; margin: 19px 0 -10px; color: #52677f; font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.free-report-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.free-report-metrics > div { padding: 13px 14px; border: 1px solid #d8e8dc; border-radius: 9px; background: rgba(255,255,255,.7); }
.free-report-metrics dt { color: #61806d; font-size: 12px; }
.free-report-metrics dd { margin: 6px 0 0; color: #193225; font-size: 14px; font-weight: 750; line-height: 1.5; }
.free-report-boundary { margin: 16px 0 0; color: #63746a; font-size: 12px; line-height: 1.65; }
.free-summary-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.free-summary-empty strong { color: #1f3d2b; font-size: 16px; }
.free-summary-empty span { color: #5e7065; font-size: 13px; line-height: 1.6; }
.free-summary-empty .free-secondary-action { margin-top: 6px; }
.free-workspace-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 34px; border-top: 1px solid #e5e7eb; color: #7a8492; background: #fff; font-size: 12px; line-height: 1.55; }
.free-workspace-foot button { flex: 0 0 auto; padding: 0; border: 0; border-bottom: 1px solid #8b96a5; color: #34485d; background: transparent; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.free-workspace-foot button:hover { color: #111827; border-bottom-color: #111827; }
@media (max-width: 640px) {
  .free-workspace-modal { padding: 12px; }
  .free-workspace-box { width: 100%; max-height: calc(100vh - 24px); border-radius: 15px; }
  .free-workspace-head { padding: 24px 20px 18px; }
  .free-workspace-head .free-experience-close { top: 18px; right: 14px; }
  .free-workspace-head h2 { max-width: 11em; font-size: 29px; }
  .free-workspace-rail { grid-template-columns: 1fr 1fr; }
  .free-rail-expiry { grid-column: span 2; min-height: 42px; justify-content: center; padding: 8px 14px; }
  .free-workspace-tabs { gap: 16px; overflow-x: auto; padding: 0 20px; }
  .free-workspace-tabs button { flex: 0 0 auto; }
  .free-workspace-content { padding: 22px 20px 24px; }
  .free-question-card, .free-answer-detail, .free-report, .free-summary-empty { padding: 17px; border-radius: 11px; }
  .free-question-actions .free-primary-action, .free-question-actions .free-secondary-action { flex: 1 1 160px; }
  .free-report-metrics { grid-template-columns: 1fr; }
  .free-workspace-foot { display: block; padding: 14px 20px; }
  .free-workspace-foot button { display: inline-block; margin-top: 8px; }
}
/* 免费会话使用与正式用户相同的主界面外壳；内容仍由云函数按权限返回。 */
.free-workspace-modal { display: none !important; }
.free-workspace-host {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 92px);
  max-height: none;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  color: var(--ink);
}
.free-workspace-host[hidden] { display: none !important; }
.free-workspace-host .free-workspace-head {
  padding: 28px clamp(24px, 5vw, 72px) 22px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(125deg, #edf3ff, #f9fbff 62%, #eef3ff);
}
.free-workspace-host .free-workspace-head h2 { max-width: 20em; }
.free-workspace-host .free-workspace-rail {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, auto);
}
.free-workspace-host .free-workspace-tabs { display: none; }
.free-workspace-host .free-workspace-content {
  width: min(100%, 1040px);
  min-height: calc(100vh - 330px);
  margin: 0 auto;
  padding: 36px clamp(24px, 5vw, 72px) 48px;
  overflow: visible;
}
.free-workspace-host .free-workspace-foot {
  margin-top: auto;
  padding-inline: clamp(24px, 5vw, 72px);
}
.free-session-active main { background: #fff; }
@media (max-width: 640px) {
  .free-workspace-host {
    min-height: calc(100vh - 102px);
  }
  .free-workspace-host .free-workspace-content {
    min-height: calc(100vh - 340px);
    padding: 22px 20px 32px;
  }
}

/* Account center reuses the established purchase sheet so account facts and
   plan selection stay in one predictable workflow. */
#payModal .modal-box {
  width: min(560px, calc(100vw - 32px));
}
#payModal .pay-plan[hidden] {
  display: none !important;
}
.account-center-summary {
  margin: -4px -2px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(36, 36, 40, .14);
}
.account-center-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.account-center-summary-head h2 {
  margin: 3px 0 0 !important;
  font-size: 28px !important;
}
.account-center-tier {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(36, 36, 40, .18);
  border-radius: 999px;
  color: #171719;
  background: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.account-center-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 16px;
}
.account-center-identity strong {
  color: #171719;
  font-size: 18px;
}
.account-center-identity span,
.account-center-copy {
  color: #5f6064;
  font-size: 13px;
}
.account-center-copy {
  margin: 7px 0 14px;
  line-height: 1.6;
}
.account-center-benefits {
  display: grid;
  gap: 7px;
  color: #34353a;
  font-size: 12px;
  line-height: 1.5;
}
.account-center-benefits span::before {
  content: "✓";
  display: inline-block;
  width: 18px;
  color: #171719;
  font-weight: 800;
}
.account-center-organization {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(36, 36, 40, .1);
  color: #6b6c72;
  font-size: 12px;
  line-height: 1.5;
}
.account-center-organization strong {
  color: #35363b;
  white-space: nowrap;
}
#accountCenterBtn {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
}
.auth-mode button[data-auth-mode="register"] {
  display: block;
}
.auth-mode button[data-auth-mode="legacy"] {
  display: none;
}
@media (max-width: 560px) {
  .account-center-summary-head {
    flex-direction: column;
    gap: 10px;
  }
  .account-center-tier {
    align-self: flex-start;
  }
  .account-center-organization {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

/* Authentication always has an explicit exit, including the email tab on mobile. */
@media (max-width: 768px) {
  #activateModal .modal-box { position: relative; }
  #activateModal .drawer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d5dee6;
    border-radius: 50%;
    color: #334b5e;
    background: #fff;
    font-size: 28px;
    line-height: 1;
    z-index: 2;
    cursor: pointer;
  }
  #activateModal .drawer-close:focus-visible { outline: 3px solid #6f98c2; outline-offset: 3px; }
}

/* Billing-only desktop sessions suppress the login cover only while billing is visible. */
body.account-center-desktop-payment #lockScreen { display: none !important; }

/* The account center is a workspace page, not an interrupting purchase modal. */
#payModal.account-center-panel {
  --account-border: #dce3e9;
  --account-muted: #687580;
  display: block;
  width: 100%;
  min-height: calc(100vh - 92px);
  padding: 29px 48px 36px;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#payModal.account-center-panel[hidden], #payModal [hidden] { display: none !important; }
#payModal .account-center-shell {
  display: grid;
  width: min(1512px, 100%);
  margin: 0 auto;
  gap: 20px;
  min-width: 0;
  color: #202123;
}
#payModal .account-center-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#payModal .account-center-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  margin: 0;
  border: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow: visible;
  color: inherit;
  background: transparent;
}
#payModal .pay-modal-kicker { color: #607587; font-size: 12px; letter-spacing: 0; }
#payModal .account-center-page-head h1 {
  margin: 5px 0 8px;
  color: inherit;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.025em;
}
#payModal .account-center-page-head p { margin: 0; color: var(--account-muted); font-size: 14px; line-height: 1.6; }
#payModal .account-center-back {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #cfd9e2;
  border-radius: 10px;
  color: #334b5e;
  background: rgba(255, 255, 255, .75);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#payModal .account-center-back:hover { background: #fff; border-color: #9aaab8; }
#payModal button:focus-visible, #payModal input:focus-visible, #payModal textarea:focus-visible { outline: 3px solid #6f98c2; outline-offset: 3px; }
#payModal .account-center-summary,
#payModal .account-center-purchase,
#payModal .account-center-security,
#payModal .account-center-allowance { min-width: 0; border: 1px solid var(--account-border); border-radius: 16px; background: #fff; }
#payModal .account-center-summary { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 4.07fr); align-items: center; min-height: 114px; margin: 0; padding: 22px 26px; }
#payModal .account-center-identity { display: flex; align-items: center; flex-wrap: nowrap; gap: 14px; margin: 0; padding-right: 16px; min-width: 0; }
#payModal .account-center-identity > div { min-width: 0; }
#payModal .account-center-avatar { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid #e2e8ed; border-radius: 14px; color: #51687e; background: #eef3f7; }
#payModal .account-center-avatar svg { width: 24px; height: 24px; }
#payModal .account-center-identity span:not(.account-center-avatar), #payModal .account-center-status-grid span { display: block; margin-bottom: 7px; color: #75808a; font-size: 12px; line-height: 1.4; }
#payModal .account-center-identity strong { display: block; color: #202123; font-size: 19px; line-height: 1.3; font-weight: 680; overflow-wrap: anywhere; }
#payModal .account-center-status-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.27fr) minmax(0, .8fr); gap: 0; margin: 0; }
#payModal .account-center-status-grid > div { min-width: 0; padding-left: 28px; border-left: 1px solid #e5eaf0; }
#payModal .account-center-status-grid strong { display: block; color: #202123; font-size: 17px; line-height: 1.4; font-weight: 680; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#payModal #accountCenterExpiry { font-size: 16px; }
#payModal #accountCenterDays { font-size: 26px; }
#payModal .account-center-work-grid { display: grid; grid-template-columns: minmax(0, 1.96fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
#payModal .account-center-work-grid.account-center-work-grid--single { grid-template-columns: minmax(0, 1fr); }
#payModal .account-center-purchase { padding: 25px 27px 24px; }
#payModal .pay-modal-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
#payModal .account-center-purchase .pay-modal-kicker { display: none; }
#payModal .pay-modal-topbar h2, #payModal .account-center-security h2 { margin: 0; color: #202123; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
#payModal .pay-partner-link { width: auto; padding: 8px 11px; border: 1px solid #dce3e9; border-radius: 9px; color: #546779; background: #fff; font-size: 12px; font-weight: 500; line-height: 1.5; }
#payModal .account-center-section-description { margin: 8px 0 0; color: var(--account-muted); font-size: 13px; line-height: 1.7; }
#payModal .pay-plan-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 23px 0 0; }
#payModal .pay-plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; min-height: 125px; padding: 15px 16px; border: 1px solid #dbe2e8; border-radius: 12px; text-align: left; color: #202123; background: #fbfcfd; }
#payModal .pay-plan:hover { border-color: #8d9eac; }
#payModal .pay-plan.active { border-color: #202123; color: #fff; background: #202123; }
#payModal .pay-plan.active::after { content: "✓"; position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); font-size: 12px; }
#payModal .pay-plan-days { display: block; margin-bottom: 4px; color: inherit; font-size: 15px; font-weight: 650; line-height: 1.5; }
#payModal .pay-plan-amount { display: block; color: inherit !important; font-size: 26px; font-weight: 730; line-height: 1.35; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#payModal .pay-plan-badge { display: block; margin-top: 5px; padding: 0; border: 0; border-radius: 0; color: #75808b; background: transparent; font-size: 12px; font-weight: 400; line-height: 1.5; }
#payModal .pay-plan.active .pay-plan-badge { color: #d1d5da; }
#payModal .account-center-admin-notice { margin: 22px 0; padding: 14px; border: 1px solid var(--account-border); border-radius: 10px; color: var(--account-muted); font-size: 14px; line-height: 1.6; background: #f7f9fb; }
#payModal .payment-account-fields { display: grid; gap: 12px; margin: 23px 0 0; padding: 21px 0 0; border: 0; border-top: 1px solid #e8edf1; border-radius: 0; background: transparent; }
#payModal .payment-account-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; }
#payModal .payment-account-heading strong { color: #202123; font-size: 15px; }
#payModal .payment-account-heading span { color: #738291; font-size: 12px; line-height: 1.6; }
#payModal .payment-username-field { display: flex; align-items: center; gap: 13px; min-width: 0; }
#payModal .payment-username-row { flex: 0 0 auto; margin: 0; }
#payModal .payment-account-fields label { color: #5f6e7a; font-size: 13px; }
#payModal .payment-account-fields input { height: 43px; min-width: 0; margin: 0; padding: 0 14px; border: 1px solid #e0e6ec; border-radius: 9px; color: #42586b; background: #fff; font-size: 16px; }
#payModal .payment-username-field input { flex: 1; width: 0; }
#payModal .payment-account-fields input[readonly] { background: #f7f9fb; }
#payModal .payment-account-status { margin: 0; color: #73808d; font-size: 12px; line-height: 1.6; }
#payModal .pay-tip { text-align: left; margin: 10px 0 0; color: #73808d; font-size: 12px; line-height: 1.7; }
#payModal .account-center-checkout { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e8edf1; }
#payModal .account-center-selected-price { min-width: 0; }
#payModal .pay-selected { margin: 0 0 4px; padding: 0; border: 0; border-radius: 0; color: #74808b; background: transparent !important; font-size: 12px; font-weight: 400; line-height: 1.6; }
#payModal .account-center-selected-amount { display: block; color: #202123; font-size: 28px; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#payModal .account-center-checkout .modal-actions { flex: 0 0 auto; margin: 0; }
#payModal #createPaymentOrderBtn { min-height: 46px; padding: 12px 27px; border-radius: 10px; font-size: 14px; font-weight: 600; }
#payModal .account-center-security { display: flex; flex-direction: column; padding: 25px; }
#payModal .account-center-security h2 { display: flex; align-items: center; gap: 9px; }
#payModal .account-center-security h2 svg { width: 22px; height: 22px; color: #647d92; }
#payModal .email-auth-binding { display: block; min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
#payModal .email-auth-form { gap: 9px; }
#payModal .email-auth-form label { margin-top: 5px; color: #4d5d6a; font-size: 13px; }
#payModal .email-auth-form input { height: 46px; margin: 0; padding: 0 13px; border-color: #d5dee6; border-radius: 9px; background: #fff; font-size: 16px; }
#payModal .email-auth-form button { border-color: #d5dee6; border-radius: 9px; font-size: 13px; }
#payModal .email-auth-code-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
#payModal .email-auth-form [data-email-send] { white-space: nowrap; color: #334b5e; background: #f8fafc; }
#payModal .email-auth-form [data-email-submit] { margin-top: 7px; min-height: 46px; border-color: #8d9da9; color: #2d4456; background: #fff; font-weight: 650; }
#payModal .email-auth-form [data-email-submit]:hover:not(:disabled) { background: #f2f6f9; }
#payModal .email-auth-help { grid-row: 9; margin: 6px 0 0; padding: 12px 13px; border-radius: 9px; color: #607689; background: #f2f6f9; font-size: 12px; line-height: 1.7; }
#payModal .email-auth-bound { grid-row: 1; margin: 0 0 3px; color: #957449; font-size: 12px; line-height: 1.7; }
#payModal .email-auth-status { margin: 3px 0 0; color: #73808d; font-size: 12px; line-height: 1.7; }
#payModal .email-auth-form .email-auth-refresh { justify-self: start; grid-row: 10; min-height: 36px; margin: 1px 0 0; padding: 7px 0; border: 0; border-radius: 0; color: #617587; background: transparent; font-size: 12px; }
#payModal .account-center-allowance { padding: 19px 25px 17px; }
#payModal .account-center-allowance-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 17px; }
#payModal .account-center-allowance h2 { flex: 0 0 auto; margin: 0; color: #202123; font-size: 16px; line-height: 1.3; font-weight: 650; }
#payModal .account-center-copy { margin: 0; color: #72818e; font-size: 12px; line-height: 1.7; }
#payModal .account-center-benefits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; color: #34353a; font-size: 13px; line-height: 1.6; }
#payModal .account-center-quota { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; padding-right: 23px; }
#payModal .account-center-quota:not(:first-child) { padding-left: 23px; border-left: 1px solid #e7ecf1; }
#payModal .account-center-quota-label { color: #5d6f7f; font-size: 13px; line-height: 1.5; }
#payModal .account-center-quota-value { color: #202123; font-size: 21px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
#payModal .account-center-quota-value small { margin-left: 4px; color: #82909b; font-size: 11px; font-weight: 400; }
#payModal .account-center-benefits span::before { content: none; }
#payModal .account-center-benefits--features { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
#payModal .account-center-benefits--features span::before { content: "✓"; width: 18px; color: #607689; }
#payModal .account-center-benefits-note { margin: 13px 0 0; color: #80909c; font-size: 11px; line-height: 1.6; }
#payModal .account-center-benefits-note:empty { display: none; }
#payModal .account-center-organization { display: flex; justify-content: flex-start; gap: 9px; margin: -3px 0 0; padding: 0; border: 0; color: #82909b; font-size: 11px; line-height: 1.7; }
#payModal .account-center-organization strong { color: #627586; font-weight: 550; }
@media (min-width:1800px) {
  #payModal.account-center-panel { padding-inline: 64px; }
  #payModal .account-center-shell { width: min(1680px,100%); }
  #payModal .account-center-purchase, #payModal .account-center-security { padding: 28px 30px; }
  #payModal .account-center-summary { min-height: 120px; }
  #payModal .pay-plan { min-height: 133px; }
}
@media (max-width:1160px) {
  #payModal.account-center-panel { padding-inline: 24px; }
  #payModal .account-center-work-grid { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); }
  #payModal .account-center-purchase, #payModal .account-center-security { padding: 21px; }
  #payModal .account-center-summary { padding: 21px; }
  #payModal .account-center-status-grid > div { padding-left: 16px; }
  #payModal .account-center-avatar { display: none; }
  #payModal .account-center-identity strong { font-size: 17px; }
  #payModal .account-center-status-grid strong { font-size: 15px; }
  #payModal .pay-plan { padding: 13px 11px; }
  #payModal .pay-plan-amount { font-size: 23px; }
  #payModal .pay-plan-badge { font-size: 11px; }
  #payModal .account-center-quota { padding-right: 16px; }
  #payModal .account-center-quota:not(:first-child) { padding-left: 16px; }
  #payModal .account-center-quota-label { font-size: 12px; }
  #payModal .account-center-quota-value { font-size: 19px; }
}
@media (max-width:1000px) {
  #payModal .account-center-work-grid { grid-template-columns: minmax(0,1fr); }
  #payModal .account-center-summary { grid-template-columns: minmax(0,1fr); gap: 20px; }
  #payModal .account-center-identity { padding: 0 0 16px; border-bottom: 1px solid #e5eaf0; }
  #payModal .account-center-status-grid > div:first-child { padding-left: 0; border-left: 0; }
  #payModal .account-center-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 0; }
  #payModal .account-center-quota:nth-child(3) { padding-left: 0; border-left: 0; }
  #payModal .account-center-benefits--features { gap: 12px; }
}
@media (max-width:560px) {
  #payModal.account-center-panel { padding: 20px 14px 28px; }
  #payModal .account-center-shell { gap: 15px; }
  #payModal .account-center-page-head { align-items: flex-start; gap: 12px; }
  #payModal .account-center-page-head h1 { font-size: 27px; }
  #payModal .account-center-page-head p { font-size: 12px; }
  #payModal .account-center-page-head .pay-modal-kicker { font-size: 11px; }
  #payModal .account-center-back { min-height: 40px; margin-top: 22px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
  #payModal .account-center-summary { padding: 20px 18px; }
  #payModal .account-center-avatar { display: grid; }
  #payModal .account-center-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
  #payModal .account-center-status-grid > div { padding: 0; border: 0; }
  #payModal #accountCenterDays { font-size: 22px; }
  #payModal .account-center-work-grid { gap: 15px; }
  #payModal .account-center-purchase, #payModal .account-center-security { padding: 21px 18px; }
  #payModal .pay-modal-topbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  #payModal .pay-modal-topbar h2, #payModal .account-center-security h2 { font-size: 20px; }
  #payModal .pay-partner-link { padding: 7px 10px; }
  #payModal .pay-plan-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 19px; }
  #payModal .pay-plan { min-height: 121px; padding: 14px; }
  #payModal .pay-plan-amount { font-size: 25px; }
  #payModal .payment-account-heading { display: grid; gap: 5px; }
  #payModal .payment-username-field { gap: 10px; }
  #payModal .account-center-checkout { align-items: stretch; flex-direction: column; gap: 14px; }
  #payModal .account-center-checkout .modal-actions { flex: none; width: 100%; }
  #payModal #createPaymentOrderBtn { width: 100%; }
  #payModal .email-auth-form input { font-size: 16px; }
  #payModal .account-center-allowance { padding: 19px 18px; }
  #payModal .account-center-allowance-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  #payModal .account-center-quota { flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 12px; }
  #payModal .account-center-quota:not(:first-child) { padding-left: 12px; }
  #payModal .account-center-quota:nth-child(3) { padding-left: 0; }
  #payModal .account-center-quota-label { font-size: 12px; }
  #payModal .account-center-benefits--features { grid-template-columns: minmax(0,1fr); }
  #payModal .account-center-organization { align-items: flex-start; flex-direction: column; gap: 3px; }
}
