    .conv-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 40px 80px; }

    /* Top bar with status */
    .conv-topbar {
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 28px; flex-wrap: wrap;
    }
    .usage-chip {
      font-family: var(--font-mono); font-size: 11px;
      padding: 4px 12px; border-radius: 20px;
      background: var(--code-bg); border: 1px solid var(--code-border);
      color: var(--fg-muted); display: flex; align-items: center; gap: 6px;
    }
    .usage-chip .remaining { color: var(--accent); }
    .unlimited-chip {
      font-family: var(--font-mono); font-size: 11px;
      padding: 4px 12px; border-radius: 20px;
      background: var(--accent-dim); border: 1px solid rgba(0,255,136,0.2);
      color: var(--accent);
    }
    .pro-badge {
      font-family: var(--font-mono); font-size: 10px;
      padding: 3px 8px; border-radius: 4px;
      background: var(--accent); color: #000;
      font-weight: 600; letter-spacing: 0.05em;
    }
    .login-chip {
      font-family: var(--font-mono); font-size: 11px;
      padding: 4px 12px; border-radius: 20px;
      background: var(--code-bg); border: 1px solid rgba(255,255,255,0.1);
      color: var(--fg-muted); cursor: pointer; transition: color 0.15s;
    }
    .login-chip:hover { color: var(--fg); }
    .nav-pro-btn {
      font-family: var(--font-mono); font-size: 11px; font-weight: 600;
      padding: 5px 12px; border-radius: 5px; border: 1px solid var(--accent);
      color: #000; background: var(--accent); text-decoration: none;
      letter-spacing: 0.04em; transition: all 0.15s;
    }
    .nav-pro-btn:hover { background: #00e077; border-color: #00e077; }
    .nav-pro-check {
      font-family: var(--font-mono); font-size: 11px; font-weight: 600;
      padding: 5px 12px; border-radius: 5px; border: 1px solid rgba(0,255,136,0.3);
      color: var(--accent); background: var(--accent-dim);
      letter-spacing: 0.04em;
    }

    /* Converter header */
    .conv-header { margin-bottom: 32px; }
    .conv-header h1 {
      font-family: var(--font-mono); font-size: 22px; font-weight: 600;
      color: var(--fg); letter-spacing: -0.02em; margin-bottom: 6px;
    }
    .conv-header p { font-size: 14px; color: var(--fg-muted); }

    .conv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .panel { display: flex; flex-direction: column; gap: 10px; }
    .panel-label {
      font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);
      text-transform: uppercase; letter-spacing: 0.1em;
      display: flex; align-items: center; justify-content: space-between;
    }
    .format-badge {
      font-family: var(--font-mono); font-size: 10px; color: var(--accent);
      background: var(--accent-dim); border: 1px solid rgba(0,255,136,0.2);
      padding: 2px 8px; border-radius: 20px; letter-spacing: 0.05em;
    }
    .format-select {
      font-family: var(--font-mono); font-size: 11px;
      padding: 4px 10px; border-radius: 20px;
      background: var(--code-bg); border: 1px solid var(--code-border);
      color: var(--fg); outline: none;
      transition: border-color 0.15s;
    }
    .format-select:focus { border-color: rgba(0,255,136,0.3); }
    textarea {
      width: 100%; height: 380px;
      background: var(--code-bg); border: 1px solid var(--code-border);
      border-radius: 8px; color: var(--fg); font-family: var(--font-mono);
      font-size: 12px; line-height: 1.7; padding: 16px; resize: vertical;
      outline: none; transition: border-color 0.15s;
    }
    textarea:focus { border-color: rgba(0,255,136,0.3); }
    textarea::placeholder { color: #4a4a42; }
    textarea:disabled { opacity: 0.5; cursor: not-allowed; }

    .panel-actions { display: flex; gap: 8px; }
    .btn {
      font-family: var(--font-mono); font-size: 11px; font-weight: 500;
      padding: 7px 14px; border-radius: 5px; border: 1px solid;
      cursor: pointer; transition: all 0.15s; letter-spacing: 0.03em;
    }
    .btn:disabled { opacity: 0.4; cursor: not-allowed; }
    .btn-accent { background: var(--accent); color: #000; border-color: var(--accent); }
    .btn-accent:hover:not(:disabled) { background: #00e077; border-color: #00e077; }
    .btn-ghost { background: transparent; color: var(--fg-muted); border-color: var(--border); }
    .btn-ghost:hover:not(:disabled) { color: var(--fg); border-color: rgba(255,255,255,0.15); }

    .error-bar {
      background: rgba(255, 80, 80, 0.08); border: 1px solid rgba(255, 80, 80, 0.2);
      border-radius: 6px; padding: 10px 14px; font-family: var(--font-mono);
      font-size: 11px; color: #ff8080; display: none;
    }
    .error-bar.visible { display: block; }

    .upgrade-banner {
      display: none;
      align-items: center; gap: 14px;
      background: var(--accent-dim);
      border: 1px solid rgba(0,255,136,0.25);
      border-radius: 8px;
      padding: 12px 16px;
      margin-bottom: 20px;
      font-family: var(--font-mono); font-size: 12px;
      color: var(--fg);
    }
    .upgrade-banner--visible { display: flex; }
    .upgrade-banner__icon { color: var(--accent); font-weight: 600; }
    .upgrade-banner__msg { flex: 1; line-height: 1.5; }
    .upgrade-banner__msg strong { color: var(--accent); font-weight: 600; }
    .upgrade-banner__cta {
      background: var(--accent); color: #000;
      font-family: var(--font-mono); font-size: 11px; font-weight: 600;
      padding: 7px 14px; border-radius: 5px; border: none;
      cursor: pointer; text-decoration: none; letter-spacing: 0.04em;
      transition: background 0.15s; white-space: nowrap;
    }
    .upgrade-banner__cta:hover { background: #00e077; }
    .upgrade-banner__close {
      background: none; border: none; color: var(--fg-muted);
      font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px;
    }
    .upgrade-banner__close:hover { color: var(--fg); }

    /* Onboarding checklist — signed-in free users; collapses once all 4 steps are done */
    .onboarding-checklist {
      display: none;
      background: var(--code-bg);
      border: 1px solid var(--code-border);
      border-radius: 8px;
      padding: 16px 18px;
      margin-bottom: 20px;
      font-family: var(--font-mono);
      position: relative;
    }
    .onboarding-checklist--visible { display: block; }
    .onboarding-checklist__eyebrow {
      font-size: 10px; color: var(--accent);
      text-transform: uppercase; letter-spacing: 0.12em;
      margin-bottom: 12px;
    }
    .onboarding-checklist__list {
      list-style: none; padding: 0; margin: 0;
      display: flex; flex-direction: column; gap: 10px;
    }
    .checklist-step {
      display: flex; align-items: flex-start; gap: 10px;
      font-size: 12px; color: var(--fg); line-height: 1.5;
    }
    .checklist-step__icon {
      flex: 0 0 16px; width: 16px; height: 16px;
      display: inline-flex; align-items: center; justify-content: center;
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 3px;
      font-size: 10px; color: var(--fg-muted);
      background: rgba(255,255,255,0.03);
      margin-top: 1px;
    }
    .checklist-step--done .checklist-step__icon {
      background: var(--accent-dim);
      border-color: rgba(0,255,136,0.4);
      color: var(--accent);
    }
    .checklist-step__title { font-weight: 600; color: var(--fg); display: block; }
    .checklist-step__desc { color: var(--fg-muted); display: block; font-size: 11px; margin-top: 2px; }
    .checklist-step--done .checklist-step__title {
      color: var(--fg-muted); text-decoration: line-through;
    }
    .checklist-step--done .checklist-step__desc { color: var(--fg-muted); opacity: 0.7; }
    .checklist-step__cta {
      margin-left: auto; align-self: center;
      font-size: 10px; font-weight: 600;
      padding: 4px 10px; border-radius: 4px;
      color: var(--accent); border: 1px solid var(--accent);
      background: transparent; text-decoration: none;
      letter-spacing: 0.04em; white-space: nowrap;
    }
    .checklist-step__cta:hover { background: var(--accent-dim); }
    .onboarding-checklist__close {
      position: absolute; top: 10px; right: 12px;
      background: none; border: none; color: var(--fg-muted);
      font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px;
    }
    .onboarding-checklist__close:hover { color: var(--fg); }

    .swap-row {
      display: flex; align-items: center; justify-content: center;
      margin: 8px 0;
    }
    .swap-btn {
      font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);
      background: var(--code-bg); border: 1px solid var(--code-border);
      border-radius: 6px; padding: 8px 16px; cursor: pointer; transition: all 0.15s;
    }
    .swap-btn:hover { color: var(--fg); border-color: rgba(255,255,255,0.15); }

    .stats-bar {
      display: flex; gap: 20px; margin-top: 10px;
      font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted);
    }
    .stat-value { color: var(--accent); }

    /* History section (pro only) */
    .history-section {
      margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border);
    }
    .history-label {
      font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);
      text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
    }
    .history-lock {
      font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted);
      padding: 16px; background: var(--code-bg); border: 1px solid var(--code-border);
      border-radius: 8px; display: flex; align-items: center; gap: 10px;
    }
    .history-lock .lock-icon { color: var(--accent); }
    .history-empty {
      font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted);
    }
    .history-list { display: flex; flex-direction: column; gap: 8px; }
    .history-item {
      display: grid;
      grid-template-columns: auto 1fr auto auto;
      align-items: center;
      gap: 14px;
      padding: 12px 14px;
      background: var(--code-bg);
      border: 1px solid var(--code-border);
      border-radius: 8px;
      font-family: var(--font-mono);
      font-size: 11px;
    }
    .history-item__dir { color: var(--accent); }
    .history-item__payload { color: var(--fg-muted); }
    .history-item__time { color: var(--fg-muted); white-space: nowrap; }
    .history-item__rerun {
      font-family: var(--font-mono); font-size: 10px;
      padding: 5px 10px; border-radius: 4px;
      background: transparent; color: var(--accent);
      border: 1px solid var(--accent); cursor: pointer;
      transition: background 0.15s;
    }
    .history-item__rerun:hover { background: var(--accent-dim); }
    .history-item--locked .history-item__payload {
      filter: blur(4px); pointer-events: none; user-select: none;
    }
    .history-teaser { position: relative; }
    .history-teaser__overlay {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,0.55);
      border-radius: 8px;
    }
    .history-teaser__cta {
      background: var(--accent); color: #000; font-weight: 600;
      padding: 9px 16px; border-radius: 6px; text-decoration: none;
      font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
    }
    .history-teaser__cta:hover { background: #00e077; }

    /* === Batch section (Pro only) === */
    .batch-section {
      margin-top: 40px; padding-top: 32px;
      border-top: 1px solid var(--border);
    }
    .batch-row {
      display: grid;
      grid-template-columns: auto 1fr auto auto auto;
      align-items: center;
      gap: 14px;
      padding: 12px 14px;
      background: var(--code-bg);
      border: 1px solid var(--code-border);
      border-radius: 8px;
      font-family: var(--font-mono);
      font-size: 11px;
    }
    .batch-row__name {
      color: var(--fg);
      max-width: 220px; overflow: hidden;
      text-overflow: ellipsis; white-space: nowrap;
    }
    .batch-row__dir { color: var(--accent); }
    .batch-row__bytes { color: var(--fg-muted); white-space: nowrap; }
    .batch-row__status {
      font-size: 10px; padding: 3px 8px; border-radius: 4px;
      letter-spacing: 0.04em;
    }
    .batch-row__status--ok {
      color: var(--accent); background: var(--accent-dim);
      border: 1px solid rgba(0,255,136,0.2);
    }
    .batch-row__status--failed {
      color: #ff8080; background: rgba(255,80,80,0.08);
      border: 1px solid rgba(255,80,80,0.2);
    }
    .batch-row__rerun {
      font-family: var(--font-mono); font-size: 10px;
      padding: 5px 10px; border-radius: 4px;
      background: transparent; color: var(--accent);
      border: 1px solid var(--accent); cursor: pointer;
      transition: background 0.15s;
    }
    .batch-row__rerun:hover { background: var(--accent-dim); }
    .batch-row__rerun:disabled { opacity: 0.4; cursor: not-allowed; }

    @media (max-width: 768px) {
      .batch-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "name rerun" "dir status" "bytes bytes";
        row-gap: 6px;
      }
      .batch-row__name { grid-area: name; }
      .batch-row__dir { grid-area: dir; }
      .batch-row__status { grid-area: status; justify-self: end; }
      .batch-row__bytes { grid-area: bytes; }
      .batch-row__rerun { grid-area: rerun; }
    }

    /* === Modals === */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.7);
      backdrop-filter: blur(4px); z-index: 100;
      display: flex; align-items: center; justify-content: center;
      padding: 24px;
    }
    .modal-overlay.hidden { display: none; }
    .modal {
      background: #141414; border: 1px solid rgba(255,255,255,0.1);
      border-radius: 14px; padding: 40px; max-width: 460px; width: 100%;
      box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    }
    .modal-eyebrow {
      font-family: var(--font-mono); font-size: 10px; color: var(--accent);
      text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px;
    }
    .modal h2 {
      font-family: var(--font-mono); font-size: 22px; font-weight: 600;
      color: var(--fg); letter-spacing: -0.02em; margin-bottom: 10px;
    }
    .modal p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 28px; }

    /* Auth modal */
    .email-input {
      width: 100%; padding: 12px 16px; background: var(--code-bg);
      border: 1px solid var(--code-border); border-radius: 8px;
      color: var(--fg); font-family: var(--font-mono); font-size: 13px;
      outline: none; margin-bottom: 12px; box-sizing: border-box;
    }
    .email-input:focus { border-color: rgba(0,255,136,0.3); }
    .btn-primary {
      width: 100%; padding: 12px; background: var(--accent); color: #000;
      font-family: var(--font-mono); font-size: 12px; font-weight: 600;
      border: none; border-radius: 8px; cursor: pointer;
      letter-spacing: 0.05em; transition: background 0.15s;
    }
    .btn-primary:hover { background: #00e077; }
    .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

    .auth-feedback {
      font-family: var(--font-mono); font-size: 11px;
      margin-top: 10px; min-height: 16px;
    }
    .auth-feedback.success { color: var(--accent); }
    .auth-feedback.error { color: #ff8080; }

    .modal-footer {
      font-size: 12px; color: var(--fg-muted); margin-top: 16px;
      text-align: center; line-height: 1.5;
    }
    .modal-close {
      position: absolute; top: 16px; right: 16px;
      font-size: 20px; color: var(--fg-muted); background: none;
      border: none; cursor: pointer; line-height: 1;
    }
    .modal-close:hover { color: var(--fg); }
    .modal { position: relative; }

    /* Paywall modal */
    .paywall-price {
      font-family: var(--font-mono); font-size: 40px; font-weight: 600;
      color: var(--fg); letter-spacing: -0.03em; margin-bottom: 4px;
    }
    .paywall-price sub { font-size: 14px; color: var(--fg-muted); font-weight: 400; }
    .paywall-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
    .paywall-features li {
      font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);
      display: flex; align-items: center; gap: 8px;
    }
    .paywall-features li .check { color: var(--accent); }
    .btn-subscribe-modal {
      width: 100%; padding: 13px; background: var(--accent); color: #000;
      font-family: var(--font-mono); font-size: 12px; font-weight: 600;
      border: none; border-radius: 8px; cursor: pointer;
      letter-spacing: 0.05em; transition: background 0.15s; margin-bottom: 10px;
    }
    .btn-subscribe-modal:hover { background: #00e077; }
    .btn-subscribe-modal:disabled { opacity: 0.5; cursor: not-allowed; }
    .paywall-ghost {
      width: 100%; padding: 11px; background: transparent;
      color: var(--fg-muted); font-family: var(--font-mono); font-size: 12px;
      border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
      transition: color 0.15s;
    }
    .paywall-ghost:hover { color: var(--fg); }

    /* Saved-presets toolbar (Pro only) */
    .preset-toolbar {
      display: flex; align-items: center; gap: 8px;
    }
    .preset-toolbar select {
      font-family: var(--font-mono); font-size: 11px;
      padding: 5px 10px; border-radius: 20px;
      background: var(--code-bg); border: 1px solid var(--code-border);
      color: var(--fg); outline: none; max-width: 180px;
    }
    .preset-toolbar select:focus { border-color: rgba(0,255,136,0.3); }
    .preset-toolbar select:disabled { opacity: 0.5; cursor: not-allowed; }

    /* Pro success modal */
    .pro-success-features {
      list-style: none; display: flex; flex-direction: column;
      gap: 8px; margin: 0;
    }
    .pro-success-features li {
      font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);
      display: flex; align-items: center; gap: 8px;
    }
    .pro-success-features li .check { color: var(--accent); }

    @media (max-width: 768px) {
      .conv-wrap { padding: 24px 24px 60px; }
      .conv-grid { grid-template-columns: 1fr; }
      textarea { height: 280px; }
      .swap-row { margin: 0; }
      .history-item {
        grid-template-columns: 1fr auto;
        grid-template-areas: "dir rerun" "payload payload" "time time";
        row-gap: 6px;
      }
      .history-item__dir { grid-area: dir; }
      .history-item__payload { grid-area: payload; }
      .history-item__time { grid-area: time; }
      .history-item__rerun { grid-area: rerun; }
    }

/* Fixed-size layout for the packaged browser action popup. */
body.extension-popup {
  width: 760px;
  min-width: 760px;
  max-width: 760px;
  overflow-x: hidden;
}
body.extension-popup .conv-wrap {
  max-width: none;
  padding: 24px;
}
body.extension-popup .conv-header { margin-bottom: 20px; }
body.extension-popup .conv-header h1 { font-size: 18px; }
body.extension-popup .conv-header p { font-size: 12px; }
body.extension-popup .conv-grid { gap: 16px; }
body.extension-popup textarea { height: 260px; }
body.extension-popup .panel-actions { flex-wrap: wrap; }
