
    :root {
      --green: #07c160;
      --green-dark: #059a4e;
      --green-deep: #0d2b1e;
      --green-bg: #eafaf1;
      --ink: #1a1f24;
      --ink-2: #4b5563;
      --ink-3: #8a949f;
      --bg: #f6f8f7;
      --card: #ffffff;
      --line: #e5e7eb;
      --warning: #b7791f;
      --warning-bg: #fff8e6;
      --danger: #d92d20;
      --danger-bg: #fff1f0;
      --info: #2563eb;
      --info-bg: #eff6ff;
      --radius: 16px;
      --shadow: 0 18px 54px rgba(13, 43, 30, .08);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--ink);
      background:
        radial-gradient(620px 340px at 8% 8%, rgba(7, 193, 96, .11), transparent 72%),
        radial-gradient(520px 320px at 94% 26%, rgba(7, 193, 96, .07), transparent 74%),
        var(--bg);
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
      line-height: 1.6;
    }

    button, input, textarea { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    a { color: inherit; text-decoration: none; }

    .container {
      width: min(1100px, calc(100% - 40px));
      margin: 0 auto;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 50;
      border-bottom: 1px solid rgba(229, 231, 235, .9);
      background: rgba(255, 255, 255, .92);
      backdrop-filter: blur(12px);
    }

    .nav {
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -.3px;
    }

    .logo-badge {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 9px;
      color: #fff;
      background: linear-gradient(135deg, var(--green), #0abf7a);
      box-shadow: 0 7px 18px rgba(7, 193, 96, .22);
      font-size: 18px;
      font-weight: 900;
    }

    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: var(--ink-2);
      font-size: 14px;
      font-weight: 600;
      transition: color .2s ease;
    }

    .back-link:hover { color: var(--green-dark); }

    main { padding: 58px 0 72px; }

    .hero {
      max-width: 760px;
      margin: 0 auto 28px;
      text-align: center;
      animation: rise-in .45s ease-out both;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 14px;
      padding: 7px 16px;
      border-radius: 999px;
      color: var(--green-dark);
      background: var(--green-bg);
      font-size: 17px;
      font-weight: 700;
    }

    .pulse-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 0 4px rgba(7, 193, 96, .13);
    }

    h1 {
      margin: 0;
      font-size: clamp(32px, 5vw, 44px);
      line-height: 1.18;
      letter-spacing: -1.3px;
    }

    h1 em { color: var(--green); font-style: normal; }

    .hero-copy {
      max-width: 620px;
      margin: 14px auto 0;
      color: var(--ink-2);
      font-size: 16px;
    }

    .trust-row {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px 18px;
      margin-top: 20px;
      color: var(--ink-2);
      font-size: 13px;
    }

    .trust-row span { display: inline-flex; align-items: center; gap: 4px; }
    .trust-row svg { width: 16px; height: 16px; color: var(--green); }

    .workspace {
      width: min(760px, 100%);
      margin: 0 auto;
      scroll-margin-top: 76px;
      overflow: hidden;
      border: 1px solid rgba(217, 224, 220, .95);
      border-radius: 22px;
      background: var(--card);
      box-shadow: var(--shadow);
      animation: rise-in .55s .06s ease-out both;
    }

    .tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      padding: 8px;
      border-bottom: 1px solid var(--line);
      background: #fbfcfb;
    }

    .tab-button {
      min-height: 46px;
      border: 0;
      border-radius: 12px;
      color: var(--ink-2);
      background: transparent;
      cursor: pointer;
      font-weight: 700;
      transition: color .2s ease, background .2s ease, box-shadow .2s ease;
    }

    .tab-button:hover { color: var(--green-dark); }

    .tab-button[aria-selected="true"] {
      color: var(--green-dark);
      background: #fff;
      box-shadow: 0 3px 14px rgba(20, 50, 36, .08), inset 0 0 0 1px rgba(7, 193, 96, .15);
    }

    .panel { padding: 30px; }
    .panel[hidden] { display: none; }

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

    .panel-head h2 { margin: 0; font-size: 22px; letter-spacing: -.35px; }
    .panel-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }

    .panel-title-line,
    .session-field-heading {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    .session-field-heading { margin-bottom: 8px; }
    .session-field-heading label {
      margin: 0;
      font-size: 22px;
      letter-spacing: -.35px;
    }

    .step-chip {
      flex: 0 0 auto;
      padding: 5px 10px;
      border-radius: 999px;
      color: var(--green-dark);
      background: var(--green-bg);
      font-size: 12px;
      font-weight: 800;
    }

    .field { margin-bottom: 18px; }

    label {
      display: inline-block;
      margin-bottom: 8px;
      font-size: 14px;
      font-weight: 700;
    }

    .label-note { color: var(--ink-3); font-size: 12px; font-weight: 500; }

    .input-wrap {
      display: flex;
      align-items: stretch;
      gap: 10px;
    }

    input, textarea {
      width: 100%;
      border: 1px solid #d7ddd9;
      border-radius: 12px;
      outline: none;
      color: var(--ink);
      background: #fff;
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    input {
      min-height: 48px;
      padding: 0 14px;
      letter-spacing: .3px;
    }

    textarea {
      min-height: 150px;
      padding: 13px 14px;
      resize: vertical;
      line-height: 1.55;
    }

    input::placeholder, textarea::placeholder { color: #a2aab2; }

    input:focus, textarea:focus {
      border-color: var(--green);
      box-shadow: 0 0 0 4px rgba(7, 193, 96, .11);
    }

    .button {
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 22px;
      border: 0;
      border-radius: 12px;
      cursor: pointer;
      font-weight: 700;
      white-space: nowrap;
      transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    }

    .button:hover:not(:disabled) { transform: translateY(-1px); }
    .button:active:not(:disabled) { transform: translateY(0); }
    .button:disabled { opacity: .58; cursor: not-allowed; }

    .button-primary {
      color: #fff;
      background: var(--green);
      box-shadow: 0 8px 22px rgba(7, 193, 96, .23);
    }

    .button-primary:hover:not(:disabled) { background: var(--green-dark); }

    .button-secondary {
      color: var(--ink);
      border: 1px solid var(--line);
      background: #fff;
    }

    .button-secondary:hover:not(:disabled) { border-color: rgba(7, 193, 96, .45); color: var(--green-dark); }
    .button-wide { width: 100%; }

    .spinner {
      width: 16px;
      height: 16px;
      display: none;
      border: 2px solid rgba(255, 255, 255, .45);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin .7s linear infinite;
    }

    .is-loading .spinner { display: block; }

    .helper {
      margin: 7px 0 0;
      color: var(--ink-3);
      font-size: 12px;
    }

    .alert {
      display: flex;
      gap: 10px;
      margin: 16px 0;
      padding: 13px 14px;
      border: 1px solid transparent;
      border-radius: 12px;
      font-size: 13px;
      line-height: 1.55;
    }

    .alert[hidden] { display: none; }
    .alert-icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
    .alert-success { color: #08723c; background: var(--green-bg); border-color: #c8efd9; }
    .alert-warning { color: #8a5a12; background: var(--warning-bg); border-color: #f3dfaa; }
    .alert-danger { color: #a92119; background: var(--danger-bg); border-color: #ffd0cc; }
    .alert-info { color: #1e56a6; background: var(--info-bg); border-color: #cfe0ff; }
    .alert-neutral { color: var(--ink-2); background: #f5f7f6; border-color: var(--line); }

    .product-card, .status-card {
      margin-top: 18px;
      padding: 18px;
      border: 1px solid #dbe4df;
      border-radius: 15px;
      background: linear-gradient(145deg, #f7fdf9, #fff 70%);
    }

    .product-card[hidden], .status-card[hidden] { display: none; }

    #query-status-card { scroll-margin-top: 76px; scroll-margin-bottom: 20px; }

    .product-top, .status-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .product-name, .status-title { font-size: 17px; font-weight: 800; }
    .product-caption { margin-top: 2px; color: var(--ink-2); font-size: 13px; }

    .status-badge {
      flex: 0 0 auto;
      padding: 5px 10px;
      border-radius: 999px;
      color: var(--green-dark);
      background: var(--green-bg);
      font-size: 12px;
      font-weight: 800;
    }

    .status-badge.warning { color: #8a5a12; background: var(--warning-bg); }
    .status-badge.danger { color: #a92119; background: var(--danger-bg); }
    .status-badge.info { color: #1e56a6; background: var(--info-bg); }
    .status-badge.neutral { color: var(--ink-2); background: #edf0ef; }

    .status-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

    .status-item {
      padding: 12px 13px;
      border-radius: 11px;
      background: rgba(255, 255, 255, .78);
      border: 1px solid rgba(229, 231, 235, .9);
    }

    .status-item span { display: block; color: var(--ink-3); font-size: 11px; }
    .status-item strong { display: block; margin-top: 2px; overflow-wrap: anywhere; font-size: 13px; }

    .status-message {
      margin: 14px 0 0;
      color: var(--ink-2);
      font-size: 13px;
    }

    .status-actions { display: flex; gap: 10px; margin-top: 16px; }
    .status-actions .button { min-height: 42px; font-size: 13px; }

    .guide {
      margin: 22px 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 15px;
      background: #fbfcfb;
    }

    .guide summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 16px 18px;
      cursor: pointer;
      list-style: none;
      font-size: 14px;
      font-weight: 800;
    }

    .guide summary::-webkit-details-marker { display: none; }
    .guide summary::after {
      content: "";
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      background:
        linear-gradient(var(--green), var(--green)) center / 14px 2px no-repeat,
        linear-gradient(var(--green), var(--green)) center / 2px 14px no-repeat;
      transition: transform .2s;
    }
    .guide[open] summary::after { transform: rotate(45deg); }

    .guide-body { padding: 0 18px 18px; }

    .guide-step {
      display: grid;
      grid-template-columns: 30px 1fr;
      gap: 12px;
      padding: 12px 0;
      border-top: 1px dashed #dfe5e1;
    }

    .guide-num {
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #fff;
      background: var(--green);
      font-size: 13px;
      font-weight: 800;
    }

    .guide-step strong { display: block; font-size: 14px; }
    .guide-step p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
    .guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
    .guide-link { min-height: 38px; padding: 0 14px; font-size: 13px; }
    .guide-after { margin-left: 3px; color: var(--ink-2); font-size: 13px; }
    .guide-actions kbd {
      min-width: 64px;
      padding: 6px 10px;
      border: 1px solid #dddcd8;
      border-radius: 9px;
      color: #5d5a55;
      background: #f1f0ed;
      box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .05);
      font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
      font-size: 13px;
      font-weight: 600;
      text-align: center;
    }

    .session-section {
      margin-top: 22px;
      padding-top: 22px;
      border-top: 1px solid var(--line);
    }

    .session-section[hidden] { display: none; }

    #redeem-step-one[hidden] { display: none; }
    #panel-redeem.is-session-stage .session-section {
      margin-top: 0;
      padding-top: 0;
      border-top: 0;
    }

    .privacy-note {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-top: 11px;
      color: var(--ink-2);
      font-size: 12px;
    }

    .privacy-note svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; color: var(--green-dark); }

    .divider-label {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 22px 0;
      color: var(--ink-3);
      font-size: 12px;
    }

    .divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

    footer {
      padding: 0 20px 34px;
      text-align: center;
      color: var(--ink-3);
      font-size: 12px;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(10, 26, 18, .54);
      backdrop-filter: blur(4px);
    }

    .modal-backdrop[hidden] { display: none; }

    .modal {
      width: min(430px, 100%);
      padding: 26px;
      border-radius: 20px;
      background: #fff;
      box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
      animation: modal-in .2s ease-out both;
    }

    .modal-mark {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      margin-bottom: 16px;
      border-radius: 13px;
      color: var(--green-dark);
      background: var(--green-bg);
    }

    .modal-mark svg { width: 24px; height: 24px; }
    .modal h3 { margin: 0; font-size: 21px; }
    .modal-copy { margin: 7px 0 18px; color: var(--ink-2); font-size: 14px; }

    .confirm-list {
      margin: 0 0 18px;
      padding: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 12px;
    }

    .confirm-row {
      display: grid;
      grid-template-columns: 80px 1fr;
      gap: 14px;
      padding: 11px 13px;
      font-size: 13px;
    }

    .confirm-row + .confirm-row { border-top: 1px solid var(--line); }
    .confirm-row dt { color: var(--ink-3); }
    .confirm-row dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; text-align: right; }
    .modal-warning { margin: -2px 0 18px; color: var(--warning); font-size: 12px; }
    .modal-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }

    .noscript {
      max-width: 760px;
      margin: 24px auto;
      padding: 14px;
      border: 1px solid #ffd0cc;
      border-radius: 12px;
      color: #a92119;
      background: var(--danger-bg);
      text-align: center;
      font-size: 14px;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    :focus-visible { outline: 3px solid rgba(7, 193, 96, .32); outline-offset: 2px; }

    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

    @media (max-width: 860px) {
      .container { width: min(100% - 28px, 760px); }
      main { padding: 38px 0 54px; }
      .back-link span { display: none; }
      .hero { margin-bottom: 22px; }
      .hero-copy { font-size: 15px; }
      .workspace { border-radius: 18px; }
      .panel { padding: 22px 18px; }
      .panel-head { margin-bottom: 20px; }
      .panel-head h2 { font-size: 20px; }
      .session-field-heading label { font-size: 20px; }
      .input-wrap { flex-direction: column; }
      .input-wrap .button { width: 100%; }
      input, textarea { font-size: 16px; }
      .status-grid { grid-template-columns: 1fr; }
      .status-actions { flex-direction: column; }
      .status-actions .button { width: 100%; }
    }

    @media (max-width: 430px) {
      .trust-row { display: grid; grid-template-columns: 1fr; justify-items: center; }
      .product-top, .status-top { align-items: flex-start; }
      .modal { padding: 22px 18px; }
      .modal-actions { grid-template-columns: 1fr; }
      .modal-actions .button-primary { order: -1; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }
  