    :root {
      --bg: #ffffff;
      --bg-soft: #f6f8fb;
      --panel: #ffffff;
      --panel-soft: #f4f7fb;
      --line: #dde4ec;
      --line-strong: #c9d2dc;
      --ink: #18212c;
      --muted: #5f6b7a;
      --accent: #0f62fe;
      --accent-soft: #eef5fc;
      --danger: #b63b31;
      --danger-soft: #fdf0ef;
      --warning: #9a6a19;
      --warning-soft: #fdf6e8;
      --shadow: none;
      --radius-xl: 18px;
      --radius-lg: 14px;
      --radius-md: 10px;
      --radius-sm: 8px;
      --max-width: 1460px;
    }

    * { box-sizing: border-box; }
    html, body { min-height: 100%; }

    body {
      margin: 0;
      color: var(--ink);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      background: var(--bg);
    }

    body.modal-open {
      overflow: hidden;
    }

    .support-fab { position: fixed; right: 24px; bottom: 86px; z-index: 80; border: 0; border-radius: 22px; padding: 11px 16px; background: var(--accent); color: #fff; font: 700 14px/1.2 inherit; box-shadow: 0 8px 24px rgba(21, 68, 115, .22); cursor: pointer; }
    .support-fab[hidden], .support-modal[hidden], .support-unread-dot[hidden] { display: none; }
    .support-unread-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: #ff5d5d; vertical-align: middle; }
    .support-modal { position: fixed; right: 24px; bottom: 140px; z-index: 81; display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); height: min(520px, calc(100vh - 180px)); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 18px 50px rgba(16, 35, 56, .22); }
    .support-modal-head { height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
    .support-modal-close { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 20px; cursor: pointer; }
    .support-message-list { flex: 1; overflow: auto; padding: 14px; background: #f7f9fb; }
    .support-message { max-width: 84%; margin: 0 0 10px; padding: 9px 11px; border-radius: 8px; color: var(--ink); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
    .support-message.user { margin-left: auto; background: #dceeff; }
    .support-message.platform { background: #fff; border: 1px solid var(--line); }
    .support-modal-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
    .support-modal-form textarea { flex: 1; min-height: 62px; resize: vertical; border: 1px solid var(--line); border-radius: 6px; padding: 8px; font: inherit; }
    .support-modal-form button { align-self: flex-end; border: 0; border-radius: 6px; padding: 9px 13px; background: var(--accent); color: #fff; cursor: pointer; }

    button, input, select, textarea {
      font: inherit;
    }

    .hidden { display: none !important; }

    .playground-example-placeholder {
      display: grid;
      place-items: center;
      min-height: 96px;
      color: var(--muted);
      background: var(--panel-soft);
      font-size: 13px;
    }
    .icp-hidden { display: none !important; }

    .auth-shell {
      min-height: 100vh;
      padding: 0 12px 28px;
      background: linear-gradient(180deg, rgba(15, 98, 254, 0.03) 0, rgba(15, 98, 254, 0) 160px), var(--bg);
    }

    .landing {
      width: 100%;
      margin: 0;
    }

    .landing-layout {
      display: block;
      align-items: start;
    }

    .landing-nav {
      position: sticky;
      top: 0;
      z-index: 10;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 300px;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 14px 0 16px;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.98);
    }

    .landing-top-links {
      display: none;
      align-items: center;
      gap: 24px;
      height: 34px;
      min-height: 34px;
    }

    .landing-top-links button {
      display: inline-flex;
      align-items: center;
      height: 34px;
      border: 0;
      background: transparent;
      color: #1f2933;
      padding: 0;
      font-size: 14px;
      font-weight: 400;
      line-height: 1;
      cursor: pointer;
    }

    .landing-top-links button:hover,
    .landing-top-links button.active {
      color: var(--accent);
    }

    .landing-brand {
      display: none;
      align-items: center;
      gap: 10px;
      font-size: 22px;
      font-weight: 900;
      letter-spacing: -0.05em;
    }

    .brand-mark {
      width: 34px;
      height: 34px;
      display: inline-grid;
      place-items: center;
      background: var(--accent);
      color: #fff;
      font-size: 14px;
      letter-spacing: -0.04em;
    }

    .landing-links {
      position: static;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 24px;
      height: 34px;
      min-height: 34px;
      padding: 0;
      border: 0;
      background: transparent;
      z-index: 12;
      overflow-x: auto;
      overflow-y: visible;
    }

    .landing-app-links {
      display: none;
    }

    .landing-play-mode .landing-nav {
      position: relative;
      padding: 18px 24px 0;
      border-bottom: 0;
      background: #fff;
    }

    .landing-play-mode .landing-brand {
      display: none;
    }

    .landing-play-mode.landing-logged-in .landing-app-links {
      display: flex;
    }

    .landing-top-links,
    .landing-play-mode.landing-logged-in .landing-links:not(.landing-app-links) {
      display: none;
    }

    .landing-docs-mode .landing-nav {
      padding: 18px 24px 0;
      border-bottom: 0;
      background: #fff;
    }

    .landing-docs-mode .landing-brand {
      display: none;
    }

    .landing-docs-mode .landing-links {
      display: flex;
    }

    .landing-docs-mode .landing-app-links {
      display: none;
    }

    .landing-play-mode .landing-main {
      width: 100%;
      margin-left: 0;
      padding-right: 0;
    }

    .landing-docs-mode .landing-main {
      width: min(1120px, calc(100vw - 48px));
      margin: 38px auto 78px;
      padding-right: 0;
    }

    .product-doc-layout {
      display: contents;
    }

    .product-doc-sidebar {
      display: none;
    }

    .landing-docs-mode.product-api-docs-active .product-doc-layout {
      display: block;
      width: 100%;
      margin: 38px 0 78px;
      padding: 0 34px 0 258px;
    }

    .landing-docs-mode.product-api-docs-active .landing-main {
      width: 100%;
      margin: 0;
      max-width: 1040px;
    }

    .landing-docs-mode.product-api-docs-active .product-doc-sidebar {
      position: fixed;
      top: 96px;
      left: 24px;
      width: 200px;
      display: block;
      max-height: calc(100vh - 112px);
      overflow: auto;
      border-right: 1px solid var(--line);
      padding: 6px 18px 18px 0;
    }

    .product-doc-nav {
      display: grid;
      gap: 6px;
    }

    .product-doc-nav-group {
      display: grid;
      gap: 4px;
    }

    .product-doc-nav button {
      position: relative;
      width: 100%;
      min-height: 32px;
      border: 0;
      border-radius: 4px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.4;
      text-align: left;
      padding: 7px 12px;
    }

    .product-doc-nav-primary {
      color: var(--ink) !important;
      font-weight: 700 !important;
    }

    .product-doc-nav-children {
      display: none;
      gap: 2px;
      margin: -2px 0 6px 12px;
      padding-left: 10px;
      border-left: 1px solid var(--line);
    }

    .product-doc-nav-children.expanded {
      display: grid;
    }

    .product-doc-nav-children button {
      min-height: 30px;
      font-size: 13px;
      font-weight: 500;
      padding: 6px 10px;
    }

    .product-doc-nav button:hover,
    .product-doc-nav button.active {
      background: transparent;
      color: var(--accent) !important;
    }

    .product-doc-nav button.active {
      box-shadow: none;
    }

    .billing-doc-layout {
      display: contents;
    }

    .billing-doc-sidebar {
      display: none;
    }

    .landing-docs-mode.billing-docs-active .billing-doc-layout {
      display: block;
      width: 100%;
      margin: 38px 0 78px;
      padding: 0 34px 0 258px;
    }

    .landing-docs-mode.billing-docs-active .landing-main {
      width: 100%;
      margin: 0;
      max-width: 1040px;
    }

    .landing-docs-mode.billing-docs-active .billing-doc-sidebar {
      position: fixed;
      top: 96px;
      left: 24px;
      width: 200px;
      display: block;
      max-height: calc(100vh - 112px);
      overflow: auto;
      border-right: 1px solid var(--line);
      padding: 6px 18px 18px 0;
    }

    #walletSection .billing-doc-layout {
      display: block;
      width: 100%;
      padding-left: 234px;
    }

    #walletSection .billing-doc-sidebar {
      position: fixed;
      top: 96px;
      left: 24px;
      width: 200px;
      display: block;
      max-height: calc(100vh - 112px);
      overflow: auto;
      border-right: 1px solid var(--line);
      padding: 6px 18px 18px 0;
    }

    .landing-play-mode .landing-section {
      border-bottom: 0;
    }

    .landing-play-mode .landing-main > section.active-landing-section {
      width: 100%;
      max-width: none;
    }

    .capabilities-docs {
      display: none;
    }

    .landing-docs-mode #capabilities .playground {
      display: none;
    }

    .landing-docs-mode #capabilities .capabilities-docs {
      display: block;
    }

    .landing-links a {
      display: flex;
      align-items: center;
      height: 34px;
      gap: 0;
      color: var(--ink);
      text-decoration: none;
      font-size: 14px;
      font-weight: 400;
      line-height: 1;
      padding: 0;
      border-radius: 10px;
      white-space: nowrap;
    }

    .landing-links a:hover {
      color: var(--accent);
      background: transparent;
    }

    .landing-links a.active {
      color: var(--accent);
      background: transparent;
    }

    .nav-icon {
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
      display: inline-block;
      background-color: currentColor;
      -webkit-mask: center / contain no-repeat;
      mask: center / contain no-repeat;
      opacity: 0.86;
    }

    .landing-links a.active .nav-icon {
      opacity: 1;
    }

    .icon-capabilities {
      -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l1.9 6.1L20 10l-6.1 1.9L12 18l-1.9-6.1L4 10l6.1-1.9L12 2z"/><path d="M5 15l1 3 3 1-3 1-1 3-1-3-3-1 3-1 1-3z"/></svg>');
      mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2l1.9 6.1L20 10l-6.1 1.9L12 18l-1.9-6.1L4 10l6.1-1.9L12 2z"/><path d="M5 15l1 3 3 1-3 1-1 3-1-3-3-1 3-1 1-3z"/></svg>');
    }
    .icon-workflow {
      -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 5l7 7-7 7"/><path d="M4 12h16"/><path d="M4 7h6"/><path d="M4 17h6"/></svg>');
      mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 5l7 7-7 7"/><path d="M4 12h16"/><path d="M4 7h6"/><path d="M4 17h6"/></svg>');
    }
    .icon-api {
      -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="5" width="16" height="14" rx="2"/><path d="M8 9h8"/><path d="M8 13h5"/></svg>');
      mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="5" width="16" height="14" rx="2"/><path d="M8 9h8"/><path d="M8 13h5"/></svg>');
    }
    .icon-pricing {
      -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1l3 7h7l-5.5 4.2 2.1 7L12 14.9 5.4 19.2l2.1-7L2 8h7z"/></svg>');
      mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1l3 7h7l-5.5 4.2 2.1 7L12 14.9 5.4 19.2l2.1-7L2 8h7z"/></svg>');
    }
    .icon-payments {
      -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="6" width="18" height="12" rx="2"/><path d="M3 10h18"/><path d="M7 14h4"/></svg>');
      mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="6" width="18" height="12" rx="2"/><path d="M3 10h18"/><path d="M7 14h4"/></svg>');
    }
    .icon-agentAccess {
      -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12h16"/><path d="M12 4v16"/><circle cx="12" cy="12" r="3"/></svg>');
      mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12h16"/><path d="M12 4v16"/><circle cx="12" cy="12" r="3"/></svg>');
    }
    .icon-demos {
      -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5v10"/><path d="M8 11l4 4 4-4"/><path d="M5 19h14"/></svg>');
      mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5v10"/><path d="M8 11l4 4 4-4"/><path d="M5 19h14"/></svg>');
    }

    .landing-links-footer {
      margin-top: auto;
      padding: 14px 12px 0;
      border-top: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.75;
      display: grid;
      gap: 8px;
    }

    .landing-links-footer a {
      color: var(--ink);
      text-decoration: none;
      font-weight: 600;
      padding: 0;
      background: transparent;
    }

    .landing-links-footer a:hover {
      color: var(--accent);
      background: transparent;
    }

    .landing-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-start;
      justify-self: start;
      width: 300px;
    }

    .landing-play-mode .landing-actions {
      gap: 16px;
      height: 34px;
      flex-wrap: nowrap;
      align-items: center;
    }

    .landing-actions .locale-inline {
      height: 34px;
      align-items: center;
    }

    .landing-actions .locale-inline select {
      height: 34px;
      min-height: 34px;
      padding-top: 0;
      padding-bottom: 0;
    }

    .landing-play-mode .landing-actions .secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 0;
      background: transparent;
      color: #1f2933;
      height: 34px;
      min-height: 34px;
      padding: 0;
      line-height: 34px;
    }

    .landing-actions .primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 34px;
      min-height: 34px;
      padding: 0 15px;
      border-radius: 7px;
      background: #4e6ef2;
      border-color: #4e6ef2;
      font-size: 14px;
      font-weight: 700;
      line-height: 34px;
    }

    .landing-account-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 34px;
      max-width: 180px;
      border: 0;
      background: transparent;
      color: #1f2933;
      padding: 0;
      font-size: 14px;
      font-weight: 400;
      line-height: 34px;
      cursor: pointer;
    }

    .landing-account-link span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .landing-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
      padding: 30px 0 24px;
      border-bottom: 1px solid var(--line);
      align-items: start;
    }

    .landing-hero-copy {
      display: grid;
      gap: 14px;
      align-content: start;
    }

    .eyebrow {
      margin: 0;
      color: var(--accent);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .landing-title {
      margin: 0;
      font-size: clamp(28px, 3vw, 42px);
      line-height: 1.04;
      letter-spacing: -0.07em;
      max-width: none;
    }

    .landing-lead {
      margin: 0;
      max-width: 900px;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.9;
    }

    .hero-panel {
      background: #fff;
      padding: 0;
      border: 1px solid var(--line);
      box-shadow: none;
      overflow: hidden;
    }

    .hero-panel-title {
      margin: 0;
      padding: 16px 18px 12px;
      font-size: 18px;
      letter-spacing: -0.03em;
      text-transform: none;
      color: var(--ink);
      border-bottom: 1px solid var(--line);
    }

    .hero-metrics {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      background: #fff;
    }

    .hero-metric {
      padding: 18px 18px 16px;
      border-top: 1px solid var(--line);
    }

    .hero-metric:last-child {
      padding-bottom: 18px;
    }

    .hero-metric-head {
      display: flex;
      align-items: baseline;
      gap: 10px;
      margin-bottom: 8px;
    }

    .hero-metric-index {
      color: var(--accent);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.16em;
    }

    .hero-metric strong {
      font-size: 20px;
      line-height: 1.2;
      color: var(--ink);
      letter-spacing: -0.04em;
    }

    .hero-metric span {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
    }

    .playground {
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 14px;
      padding: 28px 0 12px;
    }

    .landing-play-mode .landing-hero-section {
      padding: 16px 18px 18px;
    }

    .landing-play-mode .playground {
      height: calc(100vh - 92px);
      min-height: 680px;
      align-content: start;
      padding: 0;
    }

    .landing-play-mode .playground-shell {
      height: 100%;
      min-height: 0;
    }

    .landing-play-mode .playground-settings {
      height: 100%;
      min-height: 0;
      overflow: hidden;
      grid-template-rows: minmax(0, 1fr) auto;
    }

    .landing-play-mode .playground-result {
      padding: 8px;
    }

    .landing-play-mode .playground-preview {
      min-height: 0;
    }

    .playground-title {
      display: block;
      text-align: center;
      margin: 0;
      color: #111827;
      font-size: 30px;
      line-height: 1.2;
      font-weight: 900;
      letter-spacing: 0;
    }

    .playground-head {
      display: grid;
      grid-template-columns: 330px minmax(0, 980px);
      align-items: center;
      gap: 14px;
    }

    .playground-tabs {
      display: grid;
      grid-template-columns: repeat(5, 180px);
      justify-content: center;
      gap: 8px;
      width: 100%;
      margin: 0;
    }

    .playground-tabs button {
      height: 46px;
      padding: 0 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--ink);
      font-weight: 900;
      white-space: nowrap;
      cursor: pointer;
    }

    .playground-tabs button.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .playground-shell {
      width: 100%;
      min-height: 0;
      justify-self: center;
      display: grid;
      grid-template-columns: 330px minmax(0, 1fr);
      gap: 14px;
    }

    .playground-settings,
    .playground-result {
      min-height: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 12px 32px rgba(18, 32, 54, 0.08);
    }

    .playground-settings {
      display: grid;
      align-content: start;
      gap: 14px;
      padding: 16px;
    }

    .playground-settings h2 {
      margin: 0;
      font-size: 18px;
      line-height: 1.25;
    }

    .playground-controls {
      min-height: 0;
      display: grid;
      gap: 10px;
    }

    .playground-feature-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
    }

    #playgroundImageFeatureControls .playground-feature-head h2 {
      margin: 0;
      font-size: 18px;
      line-height: 1.25;
      font-weight: 800;
      letter-spacing: 0;
      min-width: 0;
    }

    .playground-feature-head button {
      min-height: 34px;
      height: 34px;
      padding: 0 12px;
      border-radius: 8px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
    }

    .playground-feature-head button:hover {
      transform: none;
    }

    .playground-feature-settings-grid {
      display: grid;
      gap: 10px;
    }

    .playground-feature-settings-grid .field-input {
      display: grid;
      grid-template-columns: 150px max-content;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      font-weight: 800;
    }

    .playground-feature-settings-grid input {
      width: 90px;
      min-height: 34px;
      height: 34px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--ink);
      padding: 5px 8px;
      font-size: 13px;
    }

    #playgroundDownloadControls {
      grid-template-rows: auto auto minmax(0, 1fr) auto;
      align-content: stretch;
      gap: 10px;
    }

    .playground-feature-upload-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      align-items: start;
    }

    .playground-control {
      display: grid;
      gap: 7px;
      min-width: 0;
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
    }

    .playground-control select,
    .playground-control input[type="file"],
    .playground-control input[type="text"],
    .playground-control textarea {
      width: 100%;
      min-height: 42px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      color: var(--ink);
      padding: 11px 12px;
    }

    .playground-control textarea {
      min-height: 84px;
      resize: vertical;
      line-height: 1.5;
    }

    .playground-control input[type="file"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      z-index: 2;
      height: 46px;
      min-height: 46px;
      padding: 0 12px 0 0;
      line-height: 44px;
      overflow: hidden;
      cursor: pointer;
    }

    .playground-file-button {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 44px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #f7f9fc;
      color: var(--ink);
      padding: 0 13px;
      font-size: 14px;
      line-height: 1;
      cursor: pointer;
      pointer-events: none;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .playground-image-actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      min-width: 0;
    }

    .playground-example-button {
      min-width: 0;
      height: 44px;
      border: 0;
      background: transparent;
      color: var(--accent);
      padding: 0 4px;
      font-size: 14px;
      font-weight: 800;
      line-height: 1;
      cursor: pointer;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .playground-example-button:hover {
      color: var(--accent-dark);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .playground-example-stack {
      display: grid;
      gap: 20px;
      margin-top: 2px;
    }

    .playground-example-card {
      display: grid;
      gap: 5px;
      border: 0;
      background: transparent;
      padding: 0;
      color: var(--ink);
      text-align: center;
      cursor: pointer;
    }

    .playground-example-card img {
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: var(--panel-soft);
      display: block;
    }

    .playground-example-card span {
      color: var(--accent);
      font-size: 13px;
      font-weight: 900;
      line-height: 1.35;
    }

    .playground-example-card:hover span {
      color: var(--accent-dark);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .playground-feature-example-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      margin-top: auto;
      min-height: 0;
      overflow: auto;
      padding-right: 2px;
    }

    .playground-feature-example-grid .playground-example-card img {
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }

    .playground-file-wrap {
      position: relative;
      min-width: 0;
      display: block;
      width: 100%;
      height: 46px;
    }

    .playground-file-wrap input[type="file"] {
      display: block;
    }

    .playground-file-name {
      margin-top: 6px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      pointer-events: none;
    }

    .playground-file-name:empty {
      display: none;
    }

    .playground-control input[type="text"]:disabled {
      background: #f7f9fc;
      color: transparent;
      cursor: not-allowed;
    }

    .playground-hint {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }

    .playground-hint a {
      color: var(--accent);
      font-weight: 900;
      text-decoration: none;
    }

    .playground-hint a:hover {
      color: var(--accent-dark);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .playground-demo-actions {
      display: grid;
      gap: 10px;
    }

    .playground-demo-actions button {
      width: 100%;
      min-height: 38px;
      border-radius: 8px;
      white-space: nowrap;
      padding: 0 14px;
    }

    .playground-demo-actions button.primary {
      background: var(--accent);
      color: #fff;
      border: 0;
    }

    .playground-run {
      display: flex;
      gap: 10px;
      flex-direction: column;
      align-items: center;
    }

    .playground-feature-action-row {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }

    .playground-feature-inline-result {
      min-width: 112px;
      color: var(--ink);
      font-size: 16px;
      font-weight: 800;
      line-height: 1.4;
      text-align: left;
      white-space: nowrap;
    }

    .playground-run .primary,
    .playground-run .secondary,
    .button-like {
      width: 100px;
      min-height: 42px;
      border-radius: 8px;
      white-space: nowrap;
      padding-left: 14px;
      padding-right: 14px;
    }

    .playground-run button:disabled {
      cursor: not-allowed;
      opacity: 0.62;
    }

    .button-like {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 16px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      text-decoration: none;
      font-weight: 800;
      font-size: 14px;
    }

    .playground-status {
      min-height: 20px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .playground-result {
      display: grid;
      padding: 14px;
      overflow: hidden;
    }

    .playground-preview {
      position: relative;
      display: grid;
      place-items: center;
      min-height: 100%;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #f8fafc;
      overflow: hidden;
    }

    .playground-preview canvas {
      max-width: 100%;
      max-height: 720px;
      display: block;
    }

    .playground-feature-compare {
      width: 100%;
      height: 100%;
      min-height: 500px;
      display: grid;
      grid-template-rows: minmax(0, 1fr);
      gap: 12px;
      padding: 12px;
      background: #fff;
    }

    .playground-feature-images {
      min-height: 0;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .playground-feature-panel {
      min-width: 0;
      min-height: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #f8fafc;
      overflow: hidden;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .playground-feature-title {
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
      font-size: 13px;
      font-weight: 800;
      color: var(--ink);
    }

    .playground-feature-stage {
      position: relative;
      min-height: 260px;
      overflow: auto;
      display: grid;
      place-items: center;
      background: #eef3f8;
    }

    .playground-feature-stage canvas {
      max-width: 100%;
      max-height: 100%;
      display: block;
    }

    .playground-feature-candidates {
      border-top: 1px solid var(--line);
      padding: 8px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .playground-feature-candidates button {
      min-height: 30px;
      border-radius: 6px;
      padding: 0 10px;
      font-size: 12px;
    }

    .playground-feature-candidates button.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .playground-empty {
      color: var(--muted);
      font-size: 14px;
      text-align: center;
      padding: 20px;
      line-height: 1.8;
    }

    .playground-empty a {
      color: var(--accent);
      font-weight: 900;
      text-decoration: none;
    }

    .playground-demo-result {
      width: 100%;
      height: 100%;
      min-height: 420px;
      display: grid;
      place-items: center;
      background: #0f172a;
    }

    .playground-demo-result video,
    .playground-demo-result img {
      width: 100%;
      height: 100%;
      max-height: 720px;
      object-fit: contain;
      display: block;
      background: #0f172a;
    }

    .playground-demo-result .playground-empty {
      color: #d8e1ef;
    }

    .playground-client-layout {
      width: 100%;
      height: 100%;
      min-height: 500px;
      display: grid;
      gap: 10px;
      min-width: 0;
    }

    .playground-client-layout.pose {
      grid-template-columns: 150px minmax(0, 1fr);
    }

    .playground-client-layout.gait {
      grid-template-columns: 130px minmax(360px, 1fr);
    }

    .playground-client-section {
      min-width: 0;
      min-height: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      overflow: hidden;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
    }

    .playground-client-head {
      min-height: 46px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .playground-client-head.paged {
      display: grid;
      grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
    }

    .playground-client-head h2,
    .playground-client-video h3 {
      margin: 0;
      color: var(--ink);
      font-size: 13px;
      line-height: 1.25;
    }

    .playground-client-tools,
    .playground-client-pager {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .playground-client-tools {
      justify-content: flex-end;
    }

    .playground-client-pager {
      justify-content: center;
    }

    .playground-client-tools button,
    .playground-client-pager button {
      min-height: 30px;
      height: 30px;
      border-radius: 6px;
      padding: 0 10px;
      font-size: 12px;
    }

    .playground-client-pager.is-hidden {
      visibility: hidden;
      pointer-events: none;
    }

    .playground-client-body {
      min-height: 0;
      overflow: auto;
      padding: 12px;
    }

    .playground-client-sequences {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
      gap: 8px;
      align-content: start;
    }

    .playground-client-sequences.single {
      grid-template-columns: 1fr;
      height: 100%;
      overflow: auto;
      padding-right: 2px;
    }

    .playground-client-card {
      position: relative;
      min-width: 0;
      display: grid;
      gap: 6px;
      padding: 6px;
      border: 2px solid transparent;
      border-radius: 8px;
      background: #f8fafc;
      cursor: pointer;
      user-select: none;
    }

    .playground-client-card:hover {
      border-color: #9fb9e8;
    }

    .playground-client-card.selected {
      border-color: var(--accent);
      background: #edf5ff;
    }

    .playground-client-video-card video {
      width: 100%;
      aspect-ratio: 16 / 10;
      border-radius: 6px;
      background: #0b1220;
      object-fit: cover;
      display: block;
      pointer-events: none;
    }

    .playground-side-demo-videos {
      min-height: 0;
      display: grid;
      gap: 8px;
      align-content: start;
      overflow: auto;
      padding-right: 2px;
    }

    .playground-side-video {
      display: grid;
      gap: 8px;
      width: 100%;
      min-width: 0;
      color: var(--ink);
      font-size: 14px;
      font-weight: 800;
      text-align: center;
    }

    .playground-side-video video {
      display: block;
      width: 100%;
      max-width: 100%;
      height: auto;
      max-height: none;
      aspect-ratio: auto;
      object-fit: contain;
      background: #0b1220;
    }

    .playground-demo-upload-row {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .playground-demo-upload {
      position: relative;
      display: grid;
      min-width: 0;
      height: 42px;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #f7f9fc;
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      overflow: hidden;
      cursor: pointer;
    }

    .playground-demo-upload input {
      position: absolute;
      inset: 0;
      width: 100%;
      opacity: 0;
      cursor: pointer;
    }

    .playground-feature-preview {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      width: 100%;
      height: 100%;
      padding: 16px;
    }

    .playground-feature-preview-card {
      min-width: 0;
      min-height: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: #f1f5f9;
    }

    .playground-feature-preview-card h3 {
      margin: 0;
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
      font-size: 14px;
      line-height: 1.2;
    }

    .playground-feature-preview-card img {
      width: 100%;
      height: 100%;
      min-height: 0;
      object-fit: contain;
      display: block;
    }

    .playground-feature-preview-card.empty {
      display: grid;
      place-items: center;
      color: var(--muted);
    }

    .playground-side-demo-videos .playground-client-card {
      padding: 6px;
    }

    .playground-side-group {
      display: grid;
      gap: 8px;
    }

    .playground-side-group + .playground-side-group {
      margin-top: 6px;
    }

    .playground-side-group-title {
      font-size: 13px;
      font-weight: 700;
      color: #334155;
    }

    .playground-client-check {
      position: absolute;
      top: 7px;
      right: 7px;
      z-index: 2;
      width: 24px;
      height: 24px;
      min-height: 24px;
      padding: 0;
      border-radius: 5px;
      border: 1px solid rgba(23, 33, 43, 0.18);
      background: rgba(255, 255, 255, 0.92);
      color: transparent;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 900;
    }

    .playground-client-card.selected .playground-client-check {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .playground-client-thumb {
      height: 120px;
      border-radius: 6px;
      background: #e9eef5;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .playground-client-thumb img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
    }

    .playground-client-meta {
      display: grid;
      gap: 3px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .playground-client-line {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .playground-client-line strong {
      min-width: 0;
      overflow: hidden;
      color: var(--ink);
      font-size: 13px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .playground-client-score {
      color: var(--accent);
      font-size: 18px;
      font-weight: 900;
      text-align: center;
      white-space: nowrap;
    }

    .playground-client-videos {
      height: 100%;
      min-height: 0;
      display: grid;
      grid-template-rows: minmax(500px, 1fr) auto;
      gap: 10px;
      overflow: hidden;
    }

    .playground-client-video-pair {
      min-height: 500px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      overflow: hidden;
    }

    .playground-client-video {
      min-width: 0;
      min-height: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: #fff;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
    }

    .playground-client-video h3 {
      padding: 9px 10px;
      border-bottom: 1px solid var(--line);
    }

    .playground-client-video video {
      width: 100%;
      height: 100%;
      min-height: 0;
      object-fit: contain;
      background: #fff;
      display: block;
    }

    .playground-client-video canvas {
      width: 100%;
      height: 100%;
      min-height: 0;
      background: #071019;
      display: block;
      cursor: grab;
      touch-action: none;
    }

    .playground-client-video canvas.dragging {
      cursor: grabbing;
    }

    .playground-client-sync {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .playground-download-only {
      width: 100%;
      min-height: 0;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 12px 32px rgba(18, 32, 54, 0.08);
      display: grid;
      place-items: center;
      padding: 24px;
    }

    .playground-download-only .playground-empty {
      max-width: 620px;
    }

    .playground-overlay {
      position: absolute;
      top: 16px;
      left: 50%;
      transform: translateX(-50%);
      padding: 8px 12px;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid var(--line);
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .playground-message {
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      text-align: center;
      padding: 20px;
      line-height: 1.8;
    }

    .playground-message.error {
      color: var(--danger);
    }

    .playground-sequence-summary {
      width: min(980px, 100%);
      min-height: 420px;
      padding: 34px 44px;
      background: #f8faf7;
      color: var(--ink);
      text-align: left;
    }

    .playground-sequence-summary h2 {
      margin: 0 0 26px;
      font-size: 32px;
      line-height: 1.2;
      letter-spacing: -0.04em;
    }

    .playground-sequence-list {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      column-gap: 16px;
      row-gap: 20px;
      margin: 0;
    }

    .playground-sequence-list dt {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.6;
    }

    .playground-sequence-list dd {
      margin: 0;
      color: var(--ink);
      font-size: 15px;
      line-height: 1.6;
      word-break: break-word;
    }

    .playground-sequence-section {
      margin-top: 28px;
    }

    .playground-sequence-section h3 {
      margin: 0 0 10px;
      font-size: 20px;
      line-height: 1.3;
    }

    .playground-sequence-section p {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.8;
    }

    .playground-pose-grid {
      width: 100%;
      display: grid;
      grid-template-columns: minmax(280px, 1fr) minmax(240px, 0.72fr);
      grid-template-rows: 540px auto;
      column-gap: 18px;
      row-gap: 10px;
      align-items: start;
    }

    .playground-pose-panel {
      display: grid;
      place-items: center;
      height: 540px;
      background: #fff;
      overflow: hidden;
    }

    .playground-pose-panel canvas,
    .playground-pose-panel video {
      max-width: 100%;
      max-height: 540px;
      background: #fff;
    }

    .playground-pose-controls {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 46px;
      margin-top: 0;
    }

    .playground-pose-controls button {
      min-height: 36px;
      padding: 8px 12px;
      border: 1px solid var(--line);
      background: #fff;
      cursor: pointer;
      font-weight: 800;
    }

    .playground-pose-controls label {
      display: grid;
      gap: 4px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .playground-pose-controls input {
      width: 82px;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 7px 8px;
    }

    .playground-pose-frame-label {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .playground-json-panel {
      width: min(1080px, 100%);
      height: 540px;
      display: grid;
      grid-template-rows: auto 1fr;
      background: #fff;
    }

    .playground-json-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 0 10px;
    }

    .playground-json-toolbar strong {
      font-size: 15px;
    }

    .playground-json-toolbar button {
      border: 1px solid var(--line);
      background: #fff;
      padding: 8px 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .playground-json-panel pre {
      margin: 0;
      overflow: auto;
      border: 1px solid var(--line);
      background: #fff;
      padding: 14px;
      color: var(--ink);
      font: 12px/1.65 "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .landing-play-footer {
      display: none;
    }

    .landing-play-mode .landing-play-footer {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
      min-height: 36px;
      padding: 8px 18px;
      background: #f5f5f6;
      color: #8a929d;
      font-size: 12px;
      line-height: 1.5;
    }

    .landing-play-footer a {
      color: #8a929d;
      text-decoration: none;
    }

    .landing-play-footer a:hover {
      color: var(--accent);
    }

    .site-footer {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
      min-height: 36px;
      padding: 8px 18px;
      background: #f5f5f6;
      color: #8a929d;
      font-size: 12px;
      line-height: 1.5;
    }

    .site-footer a {
      color: #8a929d;
      text-decoration: none;
    }

    .site-footer a:hover {
      color: var(--accent);
    }

    .landing-copy {
      display: grid;
      gap: 14px;
      max-width: 900px;
      margin-top: 28px;
    }

    #docsSection .landing-copy {
      max-width: none;
    }

    .capabilities-docs .landing-copy {
      max-width: none;
    }

    .capabilities-docs .api-decision-table-wrap {
      margin-top: 50px;
    }

    .landing-copy-item {
      display: grid;
      grid-template-columns: 200px minmax(0, 1fr);
      gap: 22px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }

    .landing-copy-item h2 {
      margin: 0;
      font-size: 18px;
      letter-spacing: -0.03em;
    }

    .landing-copy-item p {
      margin: 0;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.65;
    }

    .landing-section {
      padding: 38px 0;
      border-bottom: 1px solid var(--line);
    }

    .landing-main {
      margin-left: 224px;
      width: calc(100% - 224px);
      min-width: 0;
      padding-right: 10px;
    }

    .landing-main > section,
    .landing-main > div.footer {
      display: none;
    }

    .landing-main > section.active-landing-section {
      display: block;
    }

    .landing-section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 28px;
      margin-bottom: 18px;
    }

    .landing-section h2,
    .landing-section-head h2 {
      margin: 0;
      font-size: clamp(24px, 2.5vw, 36px);
      letter-spacing: -0.05em;
    }

    .landing-section .landing-copy-item h2 {
      font-size: 18px;
      letter-spacing: -0.03em;
    }

    .landing-section .playground-client-head h2,
    .landing-section .playground-client-video h3 {
      font-size: 13px;
      letter-spacing: 0;
    }

    .section-kicker {
      margin: 8px 0 0;
      max-width: none;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.8;
    }

    .capability-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      border-left: 1px solid var(--line);
      background: #fff;
    }

    .capability-item {
      min-height: 220px;
      padding: 24px;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .capability-index {
      color: var(--accent);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.14em;
    }

    .capability-item h3 {
      margin: 12px 0 10px;
      font-size: 22px;
      letter-spacing: -0.04em;
    }

    .capability-item p {
      margin: 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.8;
    }

    .flow-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border-top: 1px solid var(--line);
      background: #fff;
    }

    .flow-step {
      padding: 22px 20px;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .flow-step:last-child {
      border-right: 0;
    }

    .flow-step span {
      display: block;
      color: var(--accent);
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 18px;
    }

    .flow-step h3 {
      margin: 0 0 8px;
      font-size: 18px;
    }

    .flow-step p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.8;
    }

    .api-showcase {
      display: block;
    }

    .api-doc-window {
      border-top: 1px solid var(--line);
      border-left: 1px solid var(--line);
      background: #fff;
      height: 640px;
      overflow: auto;
    }

    .api-doc-area {
      min-width: 0;
    }

  .api-doc-head {
      margin-bottom: 12px;
    }

    .api-doc-head h3 {
      margin: 0;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.3;
      color: var(--ink);
    }

    .api-connection-hint {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }

    .api-connection-hint strong {
      color: var(--ink);
    }

    .api-example-block {
      padding: 18px 20px;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .api-example-block h3 {
      margin: 0 0 12px;
      font-size: 16px;
    }

    .api-example-block h4 {
      margin: 18px 0 8px;
      color: var(--accent);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .api-example-block h5 {
      margin: 12px 0 6px;
      color: var(--ink);
      font-size: 12px;
      font-weight: 800;
    }

    .api-step-note {
      margin: -2px 0 8px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }

    .api-task-guide {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 18px;
    }

    .api-task-guide-item {
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 14px;
      background: #fff;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.65;
    }

    .api-task-guide-item strong {
      display: block;
      margin-bottom: 6px;
      color: var(--ink);
      font-size: 14px;
    }

    .api-decision-table-wrap {
      overflow-x: auto;
      margin-bottom: 18px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }

    .api-decision-table {
      width: 100%;
      min-width: 760px;
      border-collapse: collapse;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }

    .api-decision-table th,
    .api-decision-table td {
      padding: 12px 14px;
      text-align: left;
      vertical-align: top;
      border-bottom: 1px solid var(--line);
    }

    .api-decision-table th {
      color: var(--ink);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      background: var(--soft);
    }

    .api-decision-table tr:last-child td {
      border-bottom: 0;
    }

    .api-decision-table strong {
      color: var(--ink);
      font-weight: 800;
    }

    .api-example-block pre {
      margin: 0;
      overflow: auto;
      color: var(--ink);
      font: 13px/1.7 "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
      white-space: pre;
    }

    .api-example-block ul {
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.9;
    }

    .api-example-block code {
      color: var(--ink);
      font-size: 13px;
    }

    .payment-band {
      display: block;
    }

    .payment-list {
      margin-top: 24px;
      background: #fff;
      border-top: 1px solid var(--line);
    }

    .payment-line {
      display: grid;
      grid-template-columns: 200px minmax(0, 1fr);
      gap: 18px;
      padding: 16px 18px;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      line-height: 1.8;
    }

    .payment-line strong {
      color: var(--ink);
    }

    .contact-band {
      padding: 30px 0;
    }

    .contact-band h2 {
      margin: 0 0 10px;
      font-size: clamp(24px, 2.6vw, 38px);
      letter-spacing: -0.05em;
    }

    .contact-band p {
      margin: 0;
      color: var(--muted);
      line-height: 1.8;
    }

    .demo-downloads {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 16px;
    }

    .demo-downloads a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 10px 15px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      text-decoration: none;
      font-size: 14px;
    }

    .demo-downloads a.primary-link {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .resource-table-wrap {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      overflow: auto;
    }

    .resource-table-group {
      display: grid;
      gap: 32px;
    }

    .resource-table-title {
      margin: 0 0 8px;
      color: var(--ink);
      font-size: 17px;
      font-weight: 800;
    }

    .resource-table-note {
      margin: -2px 0 10px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .resource-table-heading {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin: 0 0 8px;
      flex-wrap: wrap;
    }

    .resource-table-heading .resource-table-title,
    .resource-table-heading .resource-table-note {
      margin: 0;
    }

    .resource-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 16px;
      line-height: 1.7;
    }

    .resource-table th,
    .resource-table td {
      border: 1px solid var(--line);
      padding: 15px 14px;
      text-align: center;
      vertical-align: middle;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .resource-table th {
      background: #f8fafc;
      color: var(--ink);
      font-weight: 800;
    }

    .resource-table td:first-child {
      text-align: left;
      font-weight: 800;
      color: var(--ink);
    }

    .resource-table col.resource-col-algorithm {
      width: 20%;
    }

    .resource-table col.resource-col-lang {
      width: 20%;
    }

    .resource-table col.resource-col-client {
      width: 40%;
    }

    .resource-table a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 700;
    }

    .resource-table a:hover {
      text-decoration: underline;
    }

    .resource-empty {
      color: var(--muted);
    }

    .demo-groups {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 22px;
      margin-top: 16px;
    }

    .demo-group {
      border-top: 1px solid var(--line);
      padding-top: 16px;
    }

    .demo-group h3 {
      margin: 0 0 8px;
      font-size: 18px;
    }

    .demo-group p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.8;
    }

    .payment-route-text {
      margin-top: 12px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.8;
    }

    .auth-card {
      min-height: 100vh;
      margin: 0;
      padding: 0 0 78px;
    }

    .panel,
    .stat-card,
    .info-card,
    .modal-card {
      background: var(--panel);
      border: 1px solid var(--line);
      box-shadow: none;
      backdrop-filter: none;
    }

    .action-confirm-card { width: min(460px, 100%); }
    .action-confirm-message { margin: 0; white-space: pre-wrap; line-height: 1.65; }
    .action-confirm-actions { justify-content: space-between; }
    .action-confirm-actions .secondary, .action-confirm-actions .primary { min-width: 88px; }

    .auth-card {
      width: 100%;
      background: var(--bg);
      border: 0;
      box-shadow: none;
    }

    .auth-card .landing-nav {
      padding: 18px 24px 0;
      border-bottom: 0;
      background: #fff;
    }

    .auth-form-body {
      width: min(520px, calc(100vw - 48px));
      margin: 92px auto 0;
      background: var(--panel);
      border: 1px solid var(--line);
      border-top: 3px solid var(--accent);
      border-radius: var(--radius-md);
      overflow: hidden;
      padding: 32px;
    }

    .locale-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }

    .locale-inline {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
    }

    .locale-inline select {
      width: auto;
      min-width: 112px;
      padding: 8px 12px;
      border-radius: 10px;
    }

    .auth-title {
      margin: 12px 0 8px;
      font-size: 34px;
      letter-spacing: -0.03em;
    }

    .auth-banner,
    .banner {
      display: none;
      border-radius: var(--radius-md);
      padding: 13px 16px;
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 18px;
    }

    .auth-banner.success,
    .banner.success {
      display: block;
      background: var(--accent-soft);
      color: var(--accent);
      border: 1px solid rgba(23, 95, 73, 0.16);
    }

    .auth-banner.error,
    .banner.error {
      display: block;
      background: var(--danger-soft);
      color: var(--danger);
      border: 1px solid rgba(170, 61, 46, 0.16);
    }

    .form-grid {
      display: grid;
      gap: 14px;
    }

    .form-grid.two {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-input {
      display: grid;
      gap: 8px;
    }

    .deposit-modal-methods {
      display: grid;
      gap: 10px;
      margin-top: 2px;
    }

    .deposit-method-label {
      font-size: 12px;
      font-weight: 800;
      color: var(--muted);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .deposit-channel-row {
      display: flex;
      flex-wrap: nowrap;
      gap: 10px;
      align-items: center;
    }

    .deposit-channel-row.inline {
      justify-content: flex-start;
    }

    .deposit-channel-btn {
      min-height: 38px;
      padding: 9px 14px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .deposit-channel-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .deposit-channel-btn:hover {
      border-color: var(--accent);
    }

    .deposit-channel-icon {
      width: 20px;
      height: 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      color: #fff;
      font-size: 12px;
      font-weight: 900;
      line-height: 1;
    }

    .deposit-channel-icon.alipay {
      background: #1677ff;
    }

    .deposit-channel-icon.wechat_pay {
      background: #07c160;
    }

    .deposit-mode-row,
    .deposit-amount-row {
      display: flex;
      flex-wrap: nowrap;
      gap: 10px;
      align-items: center;
      justify-content: flex-start;
    }

    .deposit-amount-row,
    .deposit-channel-row.inline {
      width: 360px;
    }

    .deposit-main-row {
      display: grid;
      grid-template-columns: 400px 180px;
      gap: 18px;
      align-items: start;
    }

    .deposit-column {
      display: grid;
      gap: 10px;
      min-width: 0;
    }

    .deposit-column .field-input,
    .deposit-column .action-row {
      margin: 0;
    }

    .deposit-column .action-row {
      flex-direction: column;
      align-items: stretch;
    }

    .deposit-column-actions .action-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      justify-items: start;
    }

    .deposit-column-actions .action-row > button {
      width: auto;
      min-width: 170px;
      justify-self: start;
    }

    #quickDepositSubmitButton {
      position: relative;
      z-index: 21;
    }

    .deposit-column-actions .action-row > button.secondary {
      white-space: nowrap;
    }

    .deposit-custom-amount {
      flex: 1 1 auto;
      min-width: 120px;
      min-height: 38px;
      padding: 9px 34px 9px 12px;
      width: 100%;
    }

    .deposit-custom-amount-wrap {
      position: relative;
      flex: 1 1 auto;
      min-width: 120px;
    }

    .deposit-custom-amount-symbol {
      position: absolute;
      top: 50%;
      right: 12px;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      pointer-events: none;
    }

    .deposit-payment-column {
      justify-content: start;
    }

    .deposit-channel-row.inline {
      justify-content: flex-start;
      flex-wrap: wrap;
    }

    html[lang="en"] .deposit-channel-row.inline {
      justify-content: flex-start;
      flex-wrap: nowrap;
    }

    .deposit-mode-btn,
    .deposit-amount-btn {
      min-height: 38px;
      padding: 9px 14px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .deposit-mode-btn.active,
    .deposit-amount-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .deposit-corporate-note {
      padding: 10px 12px;
      border: 1px solid var(--line);
      background: var(--panel-soft);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }

    .charge-box .action-row {
      justify-content: flex-start;
    }

    .field-input span {
      font-size: 13px;
      color: var(--muted);
    }

    .register-code-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      width: min(100%, 420px);
    }

    .register-code-row button {
      white-space: nowrap;
      min-height: 47px;
    }

    .register-field-input {
      width: min(100%, 300px);
    }

    input,
    select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 13px 14px;
      background: #fff;
      color: var(--ink);
      outline: none;
      transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    input:focus,
    select:focus {
      border-color: rgba(23, 95, 73, 0.42);
      box-shadow: 0 0 0 4px rgba(23, 95, 73, 0.08);
    }

    button {
      border: 0;
      border-radius: 10px;
      padding: 12px 18px;
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    }

    button:hover {
      transform: translateY(-1px);
    }

    button.primary {
      background: var(--accent);
      color: #fff;
      box-shadow: none;
    }

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

    button.checkout-close {
      background: var(--accent);
      color: #fff;
      border: 1px solid var(--accent);
      min-width: 72px;
      white-space: nowrap;
    }

    button.subtle {
      background: var(--panel-soft);
      color: var(--ink);
      border: 1px solid var(--line);
    }

    button.link {
      background: transparent;
      color: var(--accent);
      padding: 0;
      border-radius: 10px;
      box-shadow: none;
    }

    button.small {
      padding: 8px 12px;
      font-size: 13px;
    }

    button.warning {
      background: var(--warning-soft);
      color: var(--warning);
      border: 1px solid rgba(153, 101, 29, 0.2);
      box-shadow: none;
    }

    button.success {
      background: var(--accent-soft);
      color: var(--accent);
      border: 1px solid rgba(23, 95, 73, 0.18);
      box-shadow: none;
    }

    button.danger {
      background: var(--danger-soft);
      color: var(--danger);
      border: 1px solid rgba(170, 61, 46, 0.18);
      box-shadow: none;
    }

    button:disabled {
      cursor: not-allowed;
      opacity: 0.45;
      transform: none;
    }

    .auth-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 20px;
      align-items: center;
    }

    .login-actions {
      display: grid;
      gap: 6px;
      margin-top: 20px;
      justify-items: start;
    }

    .login-main-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .login-main-row .primary {
      min-width: 120px;
    }

    .login-links {
      display: grid;
      gap: 5px;
      width: 120px;
      justify-items: center;
    }

    .login-links .forgot-link {
      font-size: 12px;
      color: var(--muted);
    }

    .auth-mode-tabs {
      display: inline-flex;
      width: fit-content;
      gap: 4px;
      padding: 4px;
      margin-bottom: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel-soft);
    }

    .auth-mode-tabs button {
      min-width: 86px;
      padding: 8px 12px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      box-shadow: none;
    }

    .auth-mode-tabs button.active {
      background: var(--ink);
      color: #fff;
    }

    .auth-note {
      margin-top: 18px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
    }

    .terms-gate .auth-note {
      margin-top: 6px;
      line-height: 1.5;
    }

    .register-inline-hint {
      margin-top: 0;
      color: var(--danger);
      font-size: 13px;
      line-height: 1.5;
    }

    .terms-gate {
      display: grid;
      gap: 4px;
      margin-bottom: 18px;
      padding: 16px;
      border: 1px solid var(--line);
      background: var(--panel-soft);
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
    }

    .terms-gate a {
      color: var(--accent);
      font-weight: 700;
      text-decoration: none;
    }

    .terms-gate a:hover {
      text-decoration: underline;
    }

    .legal-read-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .legal-read-button {
      background: #fff;
      color: var(--accent);
      border: 1px solid var(--line);
      font-weight: 700;
    }

    .legal-read-button.read {
      background: var(--accent-soft);
      color: var(--accent);
      border-color: rgba(31, 95, 149, 0.26);
    }

    .check-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: var(--ink);
      line-height: 1.65;
    }

    .check-row input {
      width: auto;
      margin-top: 5px;
    }

    .app-shell {
      min-height: 100vh;
      padding: 0 0 44px;
      background: linear-gradient(180deg, rgba(15, 98, 254, 0.03) 0, rgba(15, 98, 254, 0) 160px), var(--bg);
    }

    .app-inner {
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 0 0 28px;
    }

    .app-layout {
      display: block;
      align-items: start;
    }

    .topbar {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      margin: 0 0 20px;
      padding: 16px 0 14px;
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(255, 255, 255, 0.98);
    }

    .app-topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 300px;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 18px 24px 0;
      border-bottom: 0;
      background: #fff;
    }

    .app-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 22px;
      font-weight: 900;
      letter-spacing: -0.05em;
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 16px;
      height: 34px;
      flex-wrap: nowrap;
      justify-content: flex-start;
      justify-self: start;
      width: 300px;
    }

    .topbar-right .locale-inline {
      height: 34px;
      align-items: center;
    }

    .topbar-right .locale-inline select {
      height: 34px;
      min-height: 34px;
      padding-top: 0;
      padding-bottom: 0;
    }

    .topbar h1 {
      margin: 0;
      font-size: 30px;
      line-height: 1.06;
      letter-spacing: -0.05em;
    }

    .account-menu {
      position: relative;
      flex: 0 0 auto;
    }

    .account-trigger {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 34px;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      box-shadow: none;
      line-height: 34px;
    }

    .account-email {
      font-size: 14px;
      font-weight: 400;
      max-width: 180px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .menu-caret {
      color: var(--muted);
      font-size: 12px;
    }

    .menu-panel {
      position: absolute;
      right: 0;
      top: calc(100% + 10px);
      min-width: 180px;
      border-radius: 10px;
      padding: 10px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: none;
      z-index: 20;
    }

    .account-menu-floating {
      position: fixed;
      right: auto;
      top: auto;
      z-index: 1000;
    }

    .menu-item {
      width: 100%;
      border-radius: 10px;
      background: transparent;
      color: var(--ink);
      text-align: left;
      box-shadow: none;
      padding: 10px 12px;
    }

    .menu-item:hover {
      background: var(--panel-soft);
    }

    .account-menu-row {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
      border-radius: 10px;
      background: transparent;
      color: var(--ink);
      text-align: left;
      box-shadow: none;
      padding: 10px 12px;
    }

    .account-menu-row.clickable:hover {
      background: var(--panel-soft);
    }

    .account-menu-value {
      max-width: 220px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
      font-weight: 400;
      color: var(--ink);
    }

    .account-binding-form {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 120px;
      gap: 8px;
      align-items: end;
      margin-bottom: 8px;
    }

    .account-binding-form:last-child {
      margin-bottom: 0;
    }

    .section-stack {
      display: block;
      min-width: 0;
      width: min(1120px, calc(100vw - 48px));
      margin: 38px auto 78px;
      padding-right: 0;
    }

    .section-stack > section {
      display: none;
      width: 100%;
    }

    .section-stack > section.active-section {
      display: block;
    }

    .landing-nav,
    .landing-play-mode .landing-nav,
    .landing-docs-mode .landing-nav,
    .auth-card .landing-nav,
    .app-topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      display: block;
      height: 52px;
      padding: 0 24px;
      border-bottom: 0;
      background: #fff;
    }

    .landing-nav .landing-links,
    .app-topbar .landing-links {
      position: fixed;
      left: 24px;
      top: 18px;
      max-width: calc(100vw - 380px);
      margin: 0;
    }

    .landing-nav .landing-actions,
    .app-topbar .topbar-right {
      position: fixed;
      right: 24px;
      top: 18px;
      width: auto;
      justify-content: flex-end;
      justify-self: auto;
      flex-wrap: nowrap;
    }

    .landing-actions .locale-inline,
    .topbar-right .locale-inline {
      flex: 0 0 auto;
    }

    .panel {
      padding: 18px 0 24px;
      min-width: 0;
      background: transparent;
      border: 0;
      border-top: 1px solid var(--line);
    }

    .section-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 48px;
    }

    .section-head.compact {
      margin-top: 48px;
    }

    #walletSection .section-head.compact {
      margin-bottom: 14px;
    }

    .section-head h2,
    .section-head h3 {
      margin: 0;
      font-size: 21px;
      letter-spacing: -0.03em;
    }

    .section-sub {
      margin-top: 6px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
    }

    .monthly-plan-subrow {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 6px;
    }

    .monthly-plan-subrow .section-sub {
      margin-top: 0;
    }

    .balance-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: stretch;
      justify-content: flex-start;
      width: 100%;
      margin: 0;
    }

    .balance-card {
      width: 360px;
      padding: 12px 16px;
      background: #fff;
      color: var(--ink);
      border-left: 4px solid var(--accent);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      text-align: left;
      min-height: 82px;
    }

    .active-plan-card {
      width: 360px;
      padding: 12px 16px;
      background: #fff;
      color: var(--ink);
      border-left: 4px solid var(--line-strong);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      text-align: left;
      min-height: 82px;
    }

    .active-plan-card.active {
      border-left-color: var(--accent);
    }

    .active-plan-title {
      margin-top: 6px;
      font-size: 18px;
      line-height: 1.25;
      font-weight: 800;
      word-break: break-word;
    }

    .active-plan-meta {
      margin-top: 6px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .balance-label {
      font-size: 13px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .balance-value {
      margin-top: 6px;
      font-size: 34px;
      line-height: 1;
      letter-spacing: -0.04em;
      word-break: break-word;
    }

    .balance-meta {
      margin-top: 4px;
      font-size: 14px;
      line-height: 1.6;
      color: var(--muted);
    }

    .charge-box {
      background: transparent;
      border: 0;
      padding: 0;
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      align-items: start;
      justify-items: stretch;
      text-align: left;
      min-height: 82px;
      flex: 0 1 100%;
      width: fit-content;
      max-width: 100%;
      margin-top: 50px;
    }

    #quickDepositAmount {
      width: 100%;
    }

    .charge-box .field-input {
      width: 100%;
      justify-content: flex-start;
      align-items: flex-start;
      gap: 8px;
    }

    .charge-box .field-input input {
      width: 100%;
      max-width: 100%;
      text-align: left;
    }

    .recent-usage-block {
      flex: 0 0 600px;
      width: 600px;
      max-width: 100%;
      margin-top: 50px;
    }

    .recent-usage-card {
      width: 100%;
      max-width: 100%;
      margin-top: 0;
      padding: 14px 16px 16px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 4px;
    }

    .recent-usage-head {
      display: flex;
      align-items: baseline;
      justify-content: flex-end;
      gap: 14px;
      margin-bottom: 14px;
    }

    .recent-usage-title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
      color: var(--ink);
      font-size: 15px;
      font-weight: 800;
      line-height: 1.4;
    }

    .recent-usage-range-select {
      width: 86px;
      height: 30px;
      padding: 0 8px;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: #fff;
      color: var(--ink);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.2;
    }

    .recent-usage-date-input {
      width: 132px;
      height: 30px;
      padding: 0 8px;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: #fff;
      color: var(--ink);
      font-size: 13px;
      font-weight: 700;
      line-height: 1.2;
    }

    .recent-usage-date-separator {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .recent-usage-custom-range {
      display: none;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .recent-usage-custom-range.visible {
      display: flex;
    }

    .recent-usage-total {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
      white-space: nowrap;
    }

    .recent-usage-chart {
      width: 100%;
      min-height: 168px;
      overflow: hidden;
    }

    .recent-usage-svg {
      display: block;
      width: 100%;
      height: 168px;
    }

    .recent-usage-line {
      fill: none;
      stroke: var(--accent);
      stroke-width: 2.5;
    }

    .recent-usage-point {
      fill: #fff;
      stroke: var(--accent);
      stroke-width: 2;
    }

    .recent-usage-axis {
      stroke: var(--line);
      stroke-width: 1;
    }

    .recent-usage-grid {
      stroke: rgba(23, 95, 73, 0.08);
      stroke-width: 1;
    }

    .recent-usage-svg text {
      fill: var(--muted);
      font-size: 11px;
    }

    .action-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
    }

    .key-toolbar {
      display: flex;
      gap: 10px;
      align-items: flex-end;
      justify-content: flex-start;
      margin-bottom: 16px;
    }

    .key-toolbar .field-input {
      width: auto;
      max-width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .key-toolbar .field-input input {
      width: 400px;
      max-width: 100%;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 16px;
    }

    .stats-row {
      display: flex;
      align-items: baseline;
      gap: 28px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .info-card {
      padding: 16px 18px;
    }

    .info-card.inline {
      display: flex;
      align-items: baseline;
      justify-content: flex-start;
      gap: 8px;
    }

    .info-card.plain {
      background: transparent;
      border: 0;
      box-shadow: none;
      backdrop-filter: none;
      border-radius: 10px;
      padding: 0;
    }

    .info-card .label {
      color: var(--muted);
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .info-card .value {
      margin-top: 0;
      font-size: 24px;
      line-height: 1.1;
      letter-spacing: -0.03em;
      word-break: break-word;
    }

    .table-wrap {
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
    }

    .record-list {
      min-width: 720px;
      background: #fff;
    }

    .record-row {
      display: grid;
      grid-template-columns: var(--record-template, repeat(var(--record-cols, 1), minmax(160px, 1fr)));
      gap: 0;
      border-bottom: 1px solid var(--line);
    }

    .record-row:last-child {
      border-bottom: 0;
    }

    .record-cell {
      padding: 14px 16px 15px;
      border-right: 1px solid var(--line);
      min-width: 0;
    }

    .record-row .record-cell:last-child {
      border-right: 0;
    }

    .ledger-table {
      width: 100%;
      border-collapse: collapse;
      background: #fff;
    }

    .ledger-table th,
    .ledger-table td {
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: top;
    }

    .ledger-table th {
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .ledger-table td {
      color: var(--ink);
      font-size: 14px;
      line-height: 1.75;
    }

    .ledger-table tr:last-child td {
      border-bottom: 0;
    }

    .api-key-table col.name {
      width: 12%;
    }

    .api-key-table col.secret {
      width: 38%;
    }

    .api-key-table col.usage,
    .api-key-table col.status {
      width: 10%;
    }

    .api-key-table col.created {
      width: 16%;
    }

    .api-key-table col.actions {
      width: 14%;
    }

    .api-key-table .secret-box {
      max-width: 100%;
    }

    .api-key-table th,
    .api-key-table td {
      vertical-align: middle;
    }

    .api-key-table td {
      line-height: 1.45;
    }

    .api-key-table .inline-key {
      min-height: 40px;
      align-items: center;
    }

    .api-key-table button.small {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    .api-key-usage-button {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
      font-weight: 900;
    }

    .api-key-table .row-actions {
      justify-content: flex-start;
      flex-wrap: nowrap;
    }

    .record-label {
      display: block;
      margin-bottom: 8px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: none;
    }

    .record-value {
      min-width: 0;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.75;
      word-break: break-word;
    }

    .record-value .row-actions {
      justify-content: flex-start;
      margin-top: 2px;
    }

    .record-value .inline-key {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
    }

    .record-value .secret-box {
      flex: 1 1 260px;
      width: auto;
    }

    .record-value .badge {
      white-space: nowrap;
    }

    .record-value .inline-key .icon-button {
      flex: 0 0 auto;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 10px;
      border-radius: 2px;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.5;
      white-space: nowrap;
    }

    .badge.success {
      background: var(--accent-soft);
      color: var(--accent);
    }

    .badge.warning {
      background: var(--warning-soft);
      color: var(--warning);
    }

    .badge.danger {
      background: var(--danger-soft);
      color: var(--danger);
    }

    .badge.neutral {
      background: var(--panel-soft);
      color: var(--muted);
    }

    .empty {
      border-radius: 10px;
      padding: 32px 24px;
      background: transparent;
      border: 1px dashed var(--line);
      text-align: center;
    }

    .empty-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .empty-text {
      color: var(--muted);
      line-height: 1.8;
    }

    .callout {
      border-radius: var(--radius-md);
      padding: 15px 16px;
      margin-bottom: 16px;
      border: 1px solid rgba(23, 95, 73, 0.16);
      background: var(--accent-soft);
    }

    .callout-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 8px;
    }

    .callout-text {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
      margin-bottom: 12px;
    }

    .secret-box {
      border-radius: 10px;
      background: #fff;
      border: 1px solid var(--line);
      padding: 12px 14px;
      font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
      font-size: 13px;
      line-height: 1.7;
      word-break: break-all;
    }

    .inline-key {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      max-width: 100%;
    }

    .inline-key .secret-box {
      flex: 0 1 auto;
      margin: 0;
      padding: 0;
      border: 0;
      background: transparent;
      width: auto;
    }

    .icon-button {
      width: 38px;
      height: 38px;
      padding: 0;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      line-height: 1;
    }

    .inline-key .icon-button {
      width: auto;
      height: auto;
      padding: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      color: var(--accent);
    }

    .inline-key .icon-button:hover {
      transform: none;
      opacity: 0.8;
    }

    .row-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .pager {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 14px;
      flex-wrap: wrap;
    }

    .pager-meta {
      color: var(--muted);
      font-size: 13px;
      margin-right: auto;
    }

    .pager-page {
      min-width: 34px;
      padding: 8px 10px;
    }

    .pager-page.active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .pager-ellipsis {
      color: var(--muted);
      padding: 0 2px;
    }

    .pager-jump {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .pager-jump input {
      width: 72px;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 6px;
      font-size: 13px;
    }

    .filter-row {
      display: flex;
      align-items: end;
      gap: 10px;
      flex-wrap: wrap;
      margin: 10px 0 14px;
    }

    .filter-row .field-input {
      min-width: 180px;
    }

    .filter-row input,
    .filter-row select {
      padding: 10px 12px;
    }

    .invoice-request-action {
      margin-left: auto;
      align-self: end;
    }

    .loading-note {
      padding: 28px 16px;
      border: 1px dashed var(--line);
      border-radius: 8px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 800;
      text-align: center;
      background: var(--panel-soft);
    }

    .footer {
      margin-top: 24px;
      padding: 20px 4px 4px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.9;
      display: flex;
      gap: 28px;
      flex-wrap: wrap;
      justify-content: center;
      text-align: center;
    }

    .footer a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 700;
    }

    .footer a:hover {
      text-decoration: underline;
    }

    .footer strong {
      color: var(--ink);
      font-weight: 700;
    }

    .legal-content {
      display: grid;
      gap: 14px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.85;
    }

    .legal-content h4 {
      margin: 6px 0 0;
      color: var(--ink);
      font-size: 16px;
    }

    .legal-content p {
      margin: 0;
    }

    .modal-shell {
      position: fixed;
      inset: 0;
      background: rgba(18, 27, 38, 0.28);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 40;
    }

    .modal-card {
      width: min(760px, 100%);
      max-height: min(88vh, 900px);
      overflow: auto;
      border-top: 3px solid var(--accent);
      padding: 22px;
    }

    .modal-card.wide {
      width: min(1080px, calc(100vw - 80px));
    }

    #apiKeyUsageModal .modal-card.wide {
      width: min(1080px, calc(100vw - 80px));
      height: min(720px, calc(100vh - 80px));
      overflow: hidden;
      display: grid;
    }

    #invoiceRequestModal .modal-card.wide {
      width: min(1080px, calc(100vw - 56px));
      max-height: min(88vh, 880px);
    }

    #apiKeyUsageModal .modal-body {
      min-height: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto auto;
      gap: 12px;
      overflow: hidden;
    }

    #apiKeyUsageTablePanel {
      min-height: 0;
      overflow: hidden;
    }

    #apiKeyUsageTablePanel .table-wrap {
      height: 100%;
      overflow: auto;
    }

    #apiKeyUsageTablePanel .ledger-table th,
    #apiKeyUsageTablePanel .ledger-table td {
      padding-top: 10px;
      padding-bottom: 10px;
      line-height: 1.75;
    }

    #apiKeyUsageTablePanel .loading-note,
    #apiKeyUsageTablePanel .empty {
      height: 100%;
      min-height: 0;
    }

    .api-key-usage-actions {
      display: none;
    }

    .api-key-usage-actions button {
      width: auto;
      min-width: 96px;
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .api-key-usage-close {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
      min-width: 96px;
    }

    .api-key-usage-pager {
      position: relative;
      min-height: 40px;
    }

    .api-key-usage-pager .api-key-usage-close {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }

    .api-key-usage-filter-total {
      position: absolute;
      left: 32%;
      top: 50%;
      transform: translate(-50%, -50%);
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    #depositHistoryModal .modal-card {
      width: min(1200px, calc(100vw - 80px));
    }

    .modal-head-actions { display: flex; gap: 8px; align-items: center; }
    .invoice-inline-form { margin-top: 18px; }
    .invoice-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-bottom: 0; }
    .invoice-list-head { background: var(--panel-soft); }
    .invoice-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .invoice-history { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
    .invoice-history h4 { margin: 0 0 8px; font-size: 14px; }
    .invoice-history div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
    @media (max-width: 640px) { .invoice-form-grid { grid-template-columns: 1fr; } }

    .deposit-history-table {
      width: 100%;
      min-width: 1040px;
      border-collapse: collapse;
      background: #fff;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .deposit-history-table th,
    .deposit-history-table td {
      padding: 13px 16px;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: middle;
      font-size: 14px;
      white-space: nowrap;
    }

    .deposit-history-table th {
      color: var(--muted);
      font-weight: 700;
      background: var(--panel-soft);
    }

    .deposit-history-table th:last-child,
    .deposit-history-table td:last-child {
      border-right: 0;
    }

    .deposit-history-table tbody tr:last-child td {
      border-bottom: 0;
    }

    .deposit-history-table .row-actions {
      justify-content: flex-start;
    }

    .deposit-history-table.invoice-order-table th:nth-child(1),
    .deposit-history-table.invoice-order-table td:nth-child(1),
    .deposit-history-table.invoice-order-table th:nth-child(2),
    .deposit-history-table.invoice-order-table td:nth-child(2) {
      padding-left: 6px;
      padding-right: 6px;
      text-align: center;
    }

    .invoice-select-all {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      cursor: pointer;
      color: inherit;
      font: inherit;
      white-space: nowrap;
    }

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

    .modal-head h3 {
      margin: 0;
      font-size: 24px;
      letter-spacing: -0.03em;
    }

    .modal-head p {
      margin: 8px 0 0;
      color: var(--muted);
      line-height: 1.7;
      font-size: 14px;
    }

    .modal-body {
      display: grid;
      gap: 16px;
    }

    .modal-note {
      border-radius: 10px;
      padding: 14px 16px;
      background: var(--panel-soft);
      color: var(--muted);
      line-height: 1.7;
      font-size: 14px;
      border: 1px solid var(--line);
    }

    #noticeModal {
      align-items: center;
      justify-content: center;
    }

    #noticeModal .modal-card {
      max-width: 420px;
      margin: auto;
    }

    #noticeModal .modal-body {
      gap: 18px;
    }

    .notice-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }

    .notice-actions button {
      width: auto;
      min-width: 88px;
      padding: 10px 18px;
    }

    .checkout-qr-box {
      display: grid;
      justify-items: center;
      gap: 14px;
      text-align: center;
    }

    .checkout-qr-footer {
      position: relative;
      width: min(420px, 100%);
      display: grid;
      align-items: center;
      justify-content: center;
      text-align: left;
      min-height: 38px;
    }

    .checkout-qr-footer .modal-note {
      margin: 0;
      width: 256px;
    }

    .checkout-qr-footer .checkout-close {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
    }

    .checkout-qr-summary {
      width: min(420px, 100%);
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
      text-align: left;
    }

    .checkout-qr-summary-item {
      display: grid;
      grid-template-columns: minmax(88px, 120px) minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 9px 10px 9px 12px;
      background: var(--panel-soft);
      min-width: 0;
    }

    .checkout-qr-summary-label {
      display: block;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
      font-weight: 700;
    }

    .checkout-qr-summary-value {
      display: block;
      color: var(--ink);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.4;
      overflow-wrap: anywhere;
      word-break: break-word;
      white-space: normal;
    }

    .checkout-qr-copy {
      min-width: 58px;
      padding: 6px 9px;
      font-size: 12px;
      line-height: 1.2;
      border-radius: 8px;
    }

    .checkout-qr-route-options {
      display: none;
      width: min(420px, 100%);
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      text-align: left;
    }

    .checkout-qr-route-options.visible {
      display: grid;
    }

    .checkout-qr-image {
      width: 256px;
      height: 256px;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 10px;
      background: #fff;
    }

    .chip-list.soft {
      gap: 8px;
    }

    .chip.recommended {
      background: var(--accent-soft);
      color: var(--accent);
      border-color: rgba(23, 95, 73, 0.14);
    }

    .pricing-grid {
      display: grid;
      gap: 14px;
      width: 300px;
      max-width: 100%;
      justify-items: stretch;
    }

    .pricing-card {
      border-radius: 10px;
      padding: 16px 18px;
      background: var(--panel-soft);
      border: 1px solid var(--line);
      width: 300px;
      max-width: 100%;
      box-sizing: border-box;
    }

    .pricing-card h4 {
      margin: 0 0 10px;
      font-size: 17px;
    }

    .pricing-card p,
    .pricing-card div {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.8;
    }

    .pricing-formula {
      margin-top: 10px;
      padding: 12px 14px;
      border-radius: 10px;
      background: #fff;
      border: 1px solid var(--line);
      color: var(--ink);
      font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
      font-size: 13px;
      line-height: 1.7;
    }

    .pricing-summary {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 12px;
      justify-content: start;
      margin-bottom: 12px;
      width: 100%;
    }

    .public-pricing-stack {
      display: grid;
      gap: 22px;
    }

    .public-pricing-block h3 {
      margin: 0;
      font-size: 20px;
      letter-spacing: -0.03em;
    }

    .pricing-summary-item {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px 14px;
      min-width: 0;
      width: 100%;
    }

    .pricing-summary-item .label {
      color: var(--muted);
      font-size: 11px;
      margin-bottom: 3px;
    }

    .pricing-summary-item .value {
      color: var(--ink);
      font-size: 14px;
      font-weight: 760;
      white-space: nowrap;
    }

    .monthly-plan-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      justify-content: start;
      justify-items: start;
      margin-bottom: 12px;
      width: 100%;
    }

    .monthly-plan-list .monthly-plan-card {
      width: min(100%, 980px);
    }

    .public-monthly {
      margin: 0;
    }

    .public-monthly h3 {
      margin: 0;
      font-size: 20px;
      letter-spacing: -0.03em;
    }

    .monthly-plan-card {
      background: transparent;
      border: 0;
      padding: 18px 0;
      display: grid;
      grid-template-columns: 120px minmax(300px, 1fr) 300px max-content;
      align-items: center;
      gap: 18px;
      justify-content: start;
      border-bottom: 1px solid var(--line);
    }

    .monthly-plan-card:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }

    .monthly-plan-card h4 {
      margin: 0;
      font-size: 16px;
      color: var(--ink);
    }

    .monthly-plan-meta {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
      min-width: 0;
      white-space: nowrap;
    }

    .monthly-plan-state {
      color: var(--ink);
      font-size: 13px;
      line-height: 1.7;
      min-width: 0;
      white-space: nowrap;
    }

    .monthly-plan-actions {
      display: flex;
      align-items: center;
      gap: 18px;
      flex-wrap: nowrap;
      justify-content: flex-start;
      justify-self: end;
    }

    .monthly-plan-card button {
      justify-self: end;
    }

    .ledger-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .ledger-toolbar-left,
    .ledger-toolbar-right {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: flex-end;
    }

    .ledger-toolbar .field-input input {
      min-width: 160px;
    }

    @media (max-width: 980px) {
      .site-footer {
        position: static;
        margin-top: 18px;
      }

      .landing-hero,
      .payment-band {
        grid-template-columns: 1fr;
      }

      .landing-layout {
        grid-template-columns: 1fr;
        gap: 0;
      }

      .landing-links {
        position: static;
        flex-direction: row;
        gap: 18px;
        overflow-x: auto;
        padding: 0;
        border-right: 0;
        border-bottom: 0;
      }

      .landing-links a {
        flex: 0 0 auto;
        padding: 8px 0;
      }

      .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .playground-shell {
        grid-template-columns: 1fr;
        min-height: auto;
      }

      .playground-head {
        grid-template-columns: 1fr;
      }

      .playground-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .landing-play-mode .playground {
        height: auto;
      }

      .flow-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .balance-grid,
      .info-grid,
      .form-grid.two,
      .pricing-summary,
      .monthly-plan-list {
        grid-template-columns: 1fr;
      }

      .charge-box {
        grid-template-columns: 1fr;
      }

      .app-layout {
        display: block;
        padding-left: 0;
        padding-right: 0;
      }

      .landing-links {
        position: static;
        display: flex;
        align-items: center;
        gap: 14px;
        overflow-x: auto;
        border-left: 0;
        border-bottom: 0;
        padding: 0;
        margin-bottom: 0;
      }

      .landing-play-mode .landing-links {
        display: none;
      }

      .landing-play-mode .landing-main {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
      }

      .section-stack {
        margin-left: 0;
        padding-right: 0;
      }

      .landing-links-footer {
        margin: 0;
        flex: 0 0 auto;
      }

      .landing-links a {
        flex: 0 0 auto;
        padding: 8px 0;
      }

      .topbar {
        flex-direction: column;
        align-items: stretch;
      }

      .account-menu {
        align-self: flex-end;
      }
    }

    @media (max-width: 520px) {
      .playground-tabs {
        grid-template-columns: 1fr;
      }

      .playground-feature-upload-row {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 720px) {
      .auth-shell,
      .app-shell,
      .modal-shell {
        padding: 12px;
      }

      .app-inner {
        padding: 0;
      }

      .landing-nav {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 14px;
      }

      .app-topbar {
        grid-template-columns: 1fr;
      }

      .landing-actions {
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
      }

      .topbar-right {
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
      }

      .landing-copy-item {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .landing-docs-mode.product-api-docs-active .product-doc-layout {
        grid-template-columns: 1fr;
        width: min(100%, calc(100vw - 24px));
        gap: 16px;
        margin: 18px auto 70px;
        padding: 0;
      }

      .landing-docs-mode.product-api-docs-active .product-doc-sidebar {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 12px;
      }

      .product-doc-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
      }

      .product-doc-nav-group {
        min-width: 180px;
        margin-bottom: 0;
      }

      .product-doc-nav-children {
        min-width: 520px;
        display: flex;
        gap: 8px;
        margin: 0;
        padding-left: 0;
        border-left: 0;
      }

      .landing-docs-mode.billing-docs-active .billing-doc-layout {
        width: min(100%, calc(100vw - 24px));
        margin: 18px auto 70px;
        padding: 0;
      }

      .landing-docs-mode.billing-docs-active .billing-doc-sidebar {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 12px;
      }

      #walletSection .billing-doc-layout {
        padding-left: 0;
      }

      #walletSection .billing-doc-sidebar {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 12px;
        margin-bottom: 16px;
      }

      .landing-hero {
        padding-top: 42px;
        gap: 28px;
      }

      .hero-metrics {
        grid-template-columns: 1fr;
      }

      .hero-metric {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .hero-metric:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .landing-section-head,
      .contact-band {
        display: block;
      }

      .playground-result {
        min-height: 360px;
      }

      .playground-client-layout.pose,
      .playground-client-layout.gait,
      .playground-client-video-pair {
        grid-template-columns: 1fr;
      }

      .capability-grid,
      .flow-strip,
      .api-showcase {
        grid-template-columns: 1fr;
      }

      .payment-line {
        grid-template-columns: 1fr;
        gap: 4px;
      }

      .demo-groups {
        grid-template-columns: 1fr;
      }

      .landing-title {
        font-size: 28px;
      }

      .auth-card,
      .panel,
      .modal-card {
        border-radius: 10px;
      }

      .topbar h1 {
        font-size: 30px;
      }

      .balance-value {
        font-size: 34px;
      }

      .stat-grid {
        grid-template-columns: 1fr;
      }

      .key-toolbar {
        flex-direction: column;
        align-items: stretch;
      }

      .key-toolbar .field-input {
        width: 100%;
        display: grid;
      }

      .key-toolbar .field-input input {
        width: 100%;
      }

      .action-row {
        flex-direction: column;
        align-items: stretch;
      }

      .action-row button {
        width: 100%;
      }

      .register-code-row {
        grid-template-columns: 1fr;
      }
    }
