:root {
      --bg: #fafafa;
      --surface: #ffffff;
      --text: #18181b;
      --muted: #71717a;
      --tertiary: #a1a1aa;
      --border: #e4e4e7;
      --blue: #3b82f6;
      --blue-light: #60a5fa;
      --blue-deep: #1d4ed8;
      --blue-subtle: #eff6ff;
      --blue-ring: rgba(59, 130, 246, 0.18);
      --green: #10b981;
      --green-subtle: #ecfdf5;
      --red: #ef4444;
      --red-subtle: #fef2f2;
      font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html,
    body,
    *,
    ::before,
    ::after,
    button,
    a,
    input,
    textarea,
    select,
    option,
    label,
    [role="button"],
    .ms-option-item,
    .ms-select-trigger,
    .ms-chip {
      cursor: none !important;
    }

    input,
    textarea,
    select,
    [contenteditable="true"] {
      caret-color: var(--blue);
    }

    /* ── Custom Cursor ── */
    #shift-cursor {
      position: fixed;
      pointer-events: none;
      z-index: 999999;
      width: 20px;
      height: 20px;
      left: -50px;
      top: -50px;
      transition: width 0.13s, height 0.13s;
    }

    #shift-cursor svg {
      width: 100%;
      height: 100%;
      filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.55));
      transition: filter 0.13s, transform 0.12s;
    }

    #shift-cursor.hover {
      width: 24px;
      height: 24px;
    }

    #shift-cursor.hover svg {
      filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.9));
    }

    #shift-cursor.click svg {
      transform: scale(0.82);
      filter: drop-shadow(0 0 14px rgba(147, 197, 253, 0.95));
    }

    #shift-trail {
      position: fixed;
      pointer-events: none;
      z-index: 999998;
      width: 14px;
      height: 14px;
      opacity: 0.35;
      left: -50px;
      top: -50px;
      transition: left 0.2s ease-out, top 0.2s ease-out;
    }

    #shift-trail svg {
      width: 100%;
      height: 100%;
    }

    @media (hover: none),
    (pointer: coarse) {

      html,
      body,
      * {
        cursor: auto !important;
      }

      #shift-cursor,
      #shift-trail {
        display: none !important;
      }
    }

    @media (prefers-reduced-motion: reduce) {

      html,
      body,
      * {
        cursor: auto !important;
      }

      #shift-cursor,
      #shift-trail {
        display: none !important;
      }
    }

    /* ── Base ── */
    body {
      margin: 0;
      background: #e0e0e0;
      color: var(--text);
      min-height: 100vh;
    }

    .page-wrap {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 12px 60px;
      gap: 16px;
    }

    /* ── Device switcher ── */
    .page-switcher {
      display: flex;
      align-items: center;
      gap: 3px;
      background: #fff;
      border: 1px solid #e0e0e0;
      border-radius: 99px;
      padding: 3px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .sw-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: 99px;
      font-size: 11.5px;
      font-weight: 500;
      color: #999;
      border: none;
      background: transparent;
      font-family: inherit;
      transition: all 0.18s;
    }

    .sw-btn.active {
      background: #111;
      color: #fff;
    }

    .sw-btn svg {
      width: 13px;
      height: 13px;
      flex-shrink: 0;
    }

    @media (max-width: 480px) {
      .sw-btn span {
        display: none;
      }

      .sw-btn {
        padding: 8px 12px;
      }
    }

    .frame-wrap {
      width: 100%;
      display: flex;
      justify-content: center;
      transition: max-width 0.35s;
    }

    body[data-view="desktop"] .frame-wrap {
      max-width: 900px;
    }

    body[data-view="tablet"] .frame-wrap {
      max-width: 680px;
    }

    body[data-view="mobile"] .frame-wrap {
      max-width: 390px;
    }

    /* ── Shell (container query root) ── */
    .ms-shell {
      width: 100%;
      background: var(--bg);
      border-radius: 16px;
      border: 0.5px solid var(--border);
      overflow: hidden;
      container-type: inline-size;
      container-name: shell;
    }

    .ms-frame {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    /* ── App card ── */
    .ms-app {
      width: 100%;
      background: var(--surface);
      border-radius: 14px;
      border: 0.5px solid var(--border);
      padding: 20px;
    }

    /* ── Header ── */
    .ms-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      gap: 10px;
      flex-wrap: wrap;
    }

    .ms-header-left {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .ms-backbtn {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      color: var(--muted);
      text-decoration: none;
      border: 1px solid var(--border);
      transition: all 0.2s;
      background: transparent;
    }

    .ms-backbtn:hover {
      background: #f4f4f5;
      color: var(--text);
    }

    .ms-title {
      font-size: 15px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 7px;
      color: var(--text);
      min-width: 0;
    }

    .ms-title-icon {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: var(--blue-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .ms-badge {
      font-size: 10px;
      color: var(--muted);
      background: #f4f4f5;
      border-radius: 999px;
      padding: 3px 10px;
      border: 0.5px solid var(--border);
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* mobile: hide badge or wrap */
    @media (max-width: 420px) {
      .ms-badge {
        display: none;
      }
    }

    /* ── Input card ── */
    .ms-input-card {
      background: var(--bg);
      border: 0.5px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* URL row */
    .ms-url-row {
      display: flex;
      gap: 8px;
      align-items: stretch;
    }

    @container shell (max-width: 520px) {
      .ms-url-row {
        flex-direction: column;
      }
    }

    .ms-url-wrap {
      flex: 1;
      position: relative;
      display: flex;
      align-items: center;
    }

    .ms-url-icon {
      position: absolute;
      left: 11px;
      top: 50%;
      transform: translateY(-50%);
      width: 15px;
      height: 15px;
      stroke: var(--muted);
      pointer-events: none;
      flex-shrink: 0;
    }

    .ms-url-input {
      width: 100%;
      height: 42px;
      border: 0.5px solid var(--border);
      border-radius: 10px;
      background: var(--surface);
      font-size: 13px;
      font-weight: 500;
      padding: 0 12px 0 34px;
      color: var(--text);
      transition: border-color 0.15s, box-shadow 0.15s;
      font-family: inherit;
    }

    .ms-url-input::placeholder {
      color: var(--tertiary);
      font-weight: 400;
      font-size: 12px;
    }

    .ms-url-input:focus {
      outline: none;
      border-color: var(--blue);
      box-shadow: 0 0 0 3px var(--blue-ring);
    }

    .ms-generate-btn {
      height: 42px;
      padding: 0 18px;
      border: none;
      border-radius: 10px;
      background: var(--blue);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      white-space: nowrap;
      flex-shrink: 0;
      transition: all 0.15s;
      box-shadow: 0 2px 8px rgba(59, 130, 246, 0.28);
      font-family: inherit;
    }

    @container shell (max-width: 520px) {
      .ms-generate-btn {
        width: 100%;
      }
    }

    .ms-generate-btn:hover {
      background: var(--blue-deep);
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    }

    .ms-generate-btn:active {
      transform: translateY(0);
    }

    .ms-generate-btn:disabled {
      background: #93c5fd;
      box-shadow: none;
      transform: none;
    }

    .ms-generate-btn svg {
      width: 14px;
      height: 14px;
    }

    /* Options row — container-query driven */
    .ms-options-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 10px;
    }

    @container shell (max-width: 560px) {
      .ms-options-row {
        grid-template-columns: 1fr 1fr;
      }
    }

    @container shell (max-width: 400px) {
      .ms-options-row {
        grid-template-columns: 1fr;
      }
    }

    .ms-field {
      display: flex;
      flex-direction: column;
      gap: 4px;
      position: relative;
    }

    .ms-label {
      font-size: 10px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Custom select */
    .ms-custom-select {
      position: relative;
      width: 100%;
      user-select: none;
    }

    .ms-select-trigger {
      height: 36px;
      width: 100%;
      border: 0.5px solid var(--border);
      border-radius: 9px;
      background: var(--surface);
      font-size: 12px;
      font-weight: 500;
      padding: 0 10px;
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      transition: all 0.15s;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
      font-family: inherit;
    }

    .ms-select-val {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
    }

    .ms-custom-select.open .ms-select-trigger {
      border-color: var(--blue);
      box-shadow: 0 0 0 2px var(--blue-ring);
    }

    .ms-select-arrow {
      width: 14px;
      height: 14px;
      stroke: var(--muted);
      transition: transform 0.2s;
      flex-shrink: 0;
    }

    .ms-custom-select.open .ms-select-arrow {
      transform: rotate(180deg);
      stroke: var(--blue);
    }

    .ms-select-dropdown {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      width: 100%;
      background: #fff;
      border: 0.5px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.14);
      z-index: 9999;
      max-height: 200px;
      overflow-y: auto;
      padding: 5px;
      display: none;
      animation: msDropFade 0.15s ease-out forwards;
    }

    .ms-custom-select.open .ms-select-dropdown {
      display: block;
    }

    @keyframes msDropFade {
      from {
        opacity: 0;
        transform: translateY(-4px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .ms-select-dropdown::-webkit-scrollbar {
      width: 5px;
    }

    .ms-select-dropdown::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 999px;
    }

    .ms-option-item {
      padding: 8px 10px;
      font-size: 12px;
      font-weight: 500;
      border-radius: 8px;
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      transition: background 0.12s, color 0.12s;
    }

    .ms-option-item:hover {
      background: var(--blue-subtle);
      color: var(--blue);
    }

    .ms-option-item.selected {
      background: var(--blue);
      color: #fff;
      font-weight: 600;
    }

    .ms-option-badge {
      font-size: 9px;
      padding: 1px 5px;
      border-radius: 4px;
      background: #f4f4f5;
      color: var(--muted);
      flex-shrink: 0;
    }

    .ms-option-item.selected .ms-option-badge {
      background: rgba(255, 255, 255, 0.25);
      color: #fff;
    }

    /* Example chips */
    .ms-examples-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }

    .ms-examples-label {
      font-size: 10px;
      font-weight: 600;
      color: var(--tertiary);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      flex-shrink: 0;
      width: 100%;
    }

    @media (min-width: 480px) {
      .ms-examples-label {
        width: auto;
      }
    }

    .ms-chip {
      font-size: 11px;
      font-weight: 500;
      color: var(--muted);
      background: var(--surface);
      border: 0.5px solid var(--border);
      border-radius: 999px;
      padding: 5px 12px;
      display: flex;
      align-items: center;
      gap: 5px;
      transition: all 0.15s;
      white-space: nowrap;
    }

    .ms-chip:hover {
      border-color: var(--blue);
      color: var(--blue);
      background: var(--blue-subtle);
    }

    .ms-chip svg {
      width: 11px;
      height: 11px;
      flex-shrink: 0;
    }

    /* Notices */
    .ms-notice {
      border-radius: 12px;
      padding: 12px 14px;
      display: none;
      align-items: flex-start;
      gap: 10px;
      font-size: 12px;
      line-height: 1.55;
      margin-top: 12px;
    }

    .ms-notice.error {
      background: var(--red-subtle);
      border: 1px solid #fca5a5;
      color: #991b1b;
    }

    .ms-notice.warn {
      background: #fffbeb;
      border: 1px solid #fde68a;
      color: #92400e;
    }

    .ms-notice svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      margin-top: 1px;
    }

    /* Loading */
    .ms-loading {
      border: 0.5px solid var(--border);
      border-radius: 12px;
      padding: 36px 20px;
      background: var(--bg);
      margin-top: 12px;
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      text-align: center;
    }

    .ms-spinner {
      width: 34px;
      height: 34px;
      border: 3px solid var(--border);
      border-top-color: var(--blue);
      border-radius: 50%;
      animation: msSpin 0.7s linear infinite;
    }

    @keyframes msSpin {
      to {
        transform: rotate(360deg);
      }
    }

    .ms-loading-text {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
    }

    .ms-loading-sub {
      font-size: 11px;
      color: var(--muted);
    }

    .ms-loading-steps {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 4px;
    }

    .ms-step {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      color: var(--muted);
      opacity: 0.4;
      transition: opacity 0.3s;
    }

    .ms-step.active {
      opacity: 1;
      color: var(--blue);
    }

    .ms-step.done {
      opacity: 1;
      color: var(--green);
    }

    .ms-step-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: currentColor;
      flex-shrink: 0;
    }

    /* Placeholder */
    .ms-placeholder {
      border: 1.5px dashed var(--border);
      border-radius: 12px;
      margin-top: 12px;
      min-height: 160px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: var(--bg);
      text-align: center;
      padding: 24px 16px;
    }

    .ms-placeholder-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: var(--blue-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 4px;
    }

    .ms-placeholder-icon svg {
      width: 22px;
      height: 22px;
      stroke: var(--blue);
    }

    .ms-placeholder-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
    }

    .ms-placeholder-sub {
      font-size: 11.5px;
      color: var(--muted);
      line-height: 1.55;
      max-width: 280px;
    }

    /* Results */
    .ms-results {
      display: none;
      flex-direction: column;
      gap: 10px;
      margin-top: 12px;
    }

    .ms-results-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
    }

    .ms-results-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .ms-results-count {
      font-size: 10px;
      background: var(--blue-subtle);
      color: var(--blue);
      border: 0.5px solid #bfdbfe;
      border-radius: 999px;
      padding: 2px 8px;
      font-weight: 600;
    }

    .ms-results-actions {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      width: 100%;
    }

    @container shell (min-width: 560px) {
      .ms-results-actions {
        width: auto;
      }
    }

    .ms-results-search-wrap {
      position: relative;
      flex: 1;
      min-width: 120px;
    }

    .ms-results-search {
      width: 100%;
      height: 30px;
      border: 0.5px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      font-size: 11.5px;
      padding: 0 10px 0 30px;
      color: var(--text);
      font-family: inherit;
      transition: border-color 0.15s;
    }

    .ms-results-search:focus {
      outline: none;
      border-color: var(--blue);
    }

    .ms-results-search-icon {
      position: absolute;
      left: 9px;
      top: 50%;
      transform: translateY(-50%);
      width: 13px;
      height: 13px;
      stroke: var(--muted);
      pointer-events: none;
    }

    .ms-filter-btn {
      height: 30px;
      padding: 0 10px;
      border: 0.5px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
      transition: all 0.15s;
      font-family: inherit;
      white-space: nowrap;
    }

    .ms-filter-btn.active {
      background: var(--blue-subtle);
      border-color: #bfdbfe;
      color: var(--blue);
    }

    .ms-filter-btn:hover {
      border-color: var(--blue);
      color: var(--blue);
    }

    /* Expiry */
    .ms-expiry-warn {
      background: #fffbeb;
      border: 0.5px solid #fde68a;
      border-radius: 10px;
      padding: 10px 12px;
      display: none;
      gap: 8px;
      align-items: flex-start;
    }

    .ms-expiry-warn.show {
      display: flex;
    }

    .ms-expiry-warn svg {
      width: 14px;
      height: 14px;
      stroke: #d97706;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .ms-expiry-warn p {
      font-size: 10.5px;
      color: #92400e;
      line-height: 1.5;
    }

    /* File list */
    .ms-file-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .ms-file-item {
      border: 0.5px solid var(--border);
      border-radius: 12px;
      padding: 12px 14px;
      background: var(--surface);
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      transition: border-color 0.15s, box-shadow 0.15s;
    }

    .ms-file-item:hover {
      border-color: #bfdbfe;
      box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
    }

    .ms-file-item.main-pkg {
      border-color: #bfdbfe;
      background: var(--blue-subtle);
    }

    .ms-file-item.main-pkg .ms-file-name {
      color: var(--blue-deep);
    }

    .ms-file-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 8.5px;
      font-weight: 800;
    }

    .ms-file-icon.msix {
      background: #dbeafe;
      color: #1d4ed8;
    }

    .ms-file-icon.appx {
      background: #e0e7ff;
      color: #4338ca;
    }

    .ms-file-icon.msixbundle {
      background: #ede9fe;
      color: #6d28d9;
    }

    .ms-file-icon.appxbundle {
      background: #fce7f3;
      color: #be185d;
    }

    .ms-file-icon.nupkg {
      background: #f1f5f9;
      color: #475569;
    }

    .ms-file-icon.other {
      background: #f4f4f5;
      color: var(--muted);
    }

    .ms-file-info {
      flex: 1;
      min-width: 0;
    }

    .ms-file-name {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }

    .ms-file-meta {
      font-size: 10px;
      color: var(--muted);
      margin-top: 3px;
      display: flex;
      align-items: center;
      gap: 5px;
      flex-wrap: wrap;
    }

    .ms-file-tag {
      font-size: 9px;
      font-weight: 600;
      padding: 1px 6px;
      border-radius: 4px;
      background: #f4f4f5;
      color: var(--muted);
      border: 0.5px solid var(--border);
      white-space: nowrap;
    }

    .ms-file-tag.primary {
      background: var(--blue-subtle);
      color: var(--blue);
      border-color: #bfdbfe;
    }

    .ms-file-tag.dep {
      background: #f0fdf4;
      color: #166534;
      border-color: #bbf7d0;
    }

    .ms-file-actions {
      display: flex;
      gap: 6px;
      align-items: center;
      flex-shrink: 0;
      margin-left: auto;
    }

    @container shell (max-width: 430px) {
      .ms-file-item {
        flex-wrap: wrap;
      }

      .ms-file-info {
        width: calc(100% - 46px);
      }

      .ms-file-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
      }
    }

    .ms-copy-btn {
      width: 30px;
      height: 30px;
      border: 0.5px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
      flex-shrink: 0;
    }

    .ms-copy-btn svg {
      width: 13px;
      height: 13px;
      stroke: var(--muted);
    }

    .ms-copy-btn:hover {
      border-color: var(--blue);
      background: var(--blue-subtle);
    }

    .ms-copy-btn:hover svg {
      stroke: var(--blue);
    }

    .ms-copy-btn.copied {
      border-color: var(--green);
      background: var(--green-subtle);
    }

    .ms-copy-btn.copied svg {
      stroke: var(--green);
    }

    .ms-dl-btn {
      height: 30px;
      padding: 0 12px;
      border: none;
      border-radius: 8px;
      background: var(--blue);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
      transition: all 0.15s;
      font-family: inherit;
      flex-shrink: 0;
      text-decoration: none;
      cursor: none !important;
    }

    .ms-dl-btn:hover {
      background: var(--blue-deep);
    }

    .ms-dl-btn svg {
      width: 12px;
      height: 12px;
      flex-shrink: 0;
    }

    /* ── Below-the-fold SEO sections ── */
    .ms-below {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-top: 14px;
    }

    .ms-section-card {
      background: var(--surface);
      border: 0.5px solid var(--border);
      border-radius: 14px;
      padding: 20px;
    }

    .ms-section-eyebrow {
      font-size: 10px;
      font-weight: 700;
      color: var(--blue);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 5px;
    }

    .ms-section-title {
      font-size: 16px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 16px;
      line-height: 1.3;
    }

    /* Steps: container-query driven 4→2→1 */
    .ms-steps-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    @container shell (max-width: 620px) {
      .ms-steps-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @container shell (max-width: 380px) {
      .ms-steps-grid {
        grid-template-columns: 1fr;
      }
    }

    .ms-step-card {
      background: var(--bg);
      border: 0.5px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 9px;
    }

    .ms-step-num {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: var(--blue);
      color: #fff;
      font-size: 12px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .ms-step-card-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
    }

    .ms-step-card-desc {
      font-size: 11px;
      color: var(--muted);
      line-height: 1.6;
    }

    /* Features: container-query driven 3→2→1 */
    .ms-features-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    @container shell (max-width: 560px) {
      .ms-features-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @container shell (max-width: 380px) {
      .ms-features-grid {
        grid-template-columns: 1fr;
      }
    }

    .ms-feature-card {
      background: var(--bg);
      border: 0.5px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .ms-feature-icon {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      background: var(--blue-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .ms-feature-icon svg {
      width: 15px;
      height: 15px;
      stroke: var(--blue);
    }

    .ms-feature-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
    }

    .ms-feature-desc {
      font-size: 11px;
      color: var(--muted);
      line-height: 1.55;
    }

    /* FAQ */
    .ms-faq-list {
      display: flex;
      flex-direction: column;
    }

    .ms-faq-item {
      border-bottom: 0.5px solid var(--border);
    }

    .ms-faq-item:last-child {
      border-bottom: none;
    }

    .ms-faq-q {
      width: 100%;
      background: none;
      border: none;
      padding: 14px 0;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      text-align: left;
      font-family: inherit;
      transition: color 0.15s;
      line-height: 1.4;
    }

    .ms-faq-q:hover {
      color: var(--blue);
    }

    .ms-faq-q-icon {
      width: 16px;
      height: 16px;
      stroke: var(--muted);
      flex-shrink: 0;
      transition: transform 0.25s;
      margin-top: 2px;
    }

    .ms-faq-item.open .ms-faq-q {
      color: var(--blue);
    }

    .ms-faq-item.open .ms-faq-q-icon {
      transform: rotate(180deg);
      stroke: var(--blue);
    }

    .ms-faq-a {
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.7;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, padding-bottom 0.2s;
    }

    .ms-faq-item.open .ms-faq-a {
      max-height: 600px;
      padding-bottom: 16px;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: #d4d4d8;
      border-radius: 999px;
    }

    /* ── Responsive frame padding ── */
    @media (max-width: 640px) {
      .ms-frame {
        padding: 12px;
      }
    }

    @media (max-width: 400px) {
      .ms-frame {
        padding: 8px;
      }

      .ms-app {
        padding: 14px;
      }

      .ms-section-card {
        padding: 16px;
      }
    }