/* Smart Paste try-it page. Scoped to .paste-try so the rest of the site is untouched. */
.paste-try { padding: 32px 0 96px; }
.paste-try .back-to-demos { display: inline-flex; gap: 8px; font-size: 14px; margin-bottom: 28px; }
.paste-intro { max-width: 820px; display: grid; gap: 16px; }
.paste-intro h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.paste-try .demo-heading-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.paste-try .samples { display: flex; gap: 10px; flex-wrap: wrap; margin: 36px 0 20px; }
.paste-try button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 10px 16px; min-height: 44px; font-size: 14px; }
.paste-try button:hover { border-color: var(--ink); }
.paste-try button:disabled { opacity: .5; cursor: default; }
.paste-try .samples button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.paste-try .workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.paste-try .source, .paste-try .destination { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--paper); }
.paste-try .source { position: sticky; top: 16px; display: grid; gap: 12px; }
.paste-try .source-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.paste-try .source img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.paste-try .paste-hint, .paste-try small { font-size: 12px; color: var(--muted); }
.paste-try label.paste-hint { display: block; font-weight: 400; margin: 0; }
.paste-try input[type=file] { font-size: 12px; max-width: 100%; }
.paste-try .replay-toggle { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.paste-try .replay-toggle input { width: auto; min-height: 0; }
.paste-try form h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.paste-try form h3 { font-size: 15px; margin-bottom: 6px; }
.paste-try fieldset, .paste-try .group { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 16px; margin: 16px 0; }
.paste-try legend { font-weight: 600; padding: 0 6px; }
.paste-try .help, .paste-try .group > p { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.paste-try form label, .paste-try .field-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.paste-try form input:not([type=checkbox]):not([type=file]) { display: block; width: 100%; font: inherit; font-size: 15px; padding: 11px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.paste-try form input:focus { outline: 3px solid color-mix(in srgb, var(--ink) 25%, transparent); outline-offset: 2px; }
.paste-try form > button { margin: 16px 8px 0 0; }
.paste-try #draft { margin-top: 16px; padding: 14px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 6%, var(--paper)); font-size: 13px; }
.paste-honesty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.paste-honesty h2 { font-size: 28px; letter-spacing: -.03em; margin-top: 8px; }
.paste-honesty ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); }
.paste-honesty strong { color: var(--ink); }

/* In-place review (shared with the paste integration). */
.paste-try input.paste-pending { background: #fffbea; border: 1px dashed #b98a12; }
.paste-try input.paste-pending::placeholder { color: #6d5100; opacity: 1; font-weight: 600; }
.paste-proposal { margin: 6px 0 2px; padding: 8px 10px; border-left: 3px solid #c9971b; background: #fff7d9; border-radius: 0 8px 8px 0; font-size: 13px; }
.paste-proposal[data-state=include] { border-left-color: #3d7a46; background: #edf5e7; }
.paste-proposal-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.paste-proposal-head strong { overflow-wrap: anywhere; }
.paste-proposal-head small, .paste-chip small { color: var(--muted); font-size: 11px; font-weight: 400; white-space: nowrap; }
.paste-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: #c83a72; color: #fff; font-size: 11px; font-weight: 700; align-self: center; }
.paste-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.paste-try .paste-chip { min-height: 38px; padding: 6px 12px; border-radius: 19px; display: inline-flex; gap: 7px; align-items: baseline; text-align: left; overflow-wrap: anywhere; max-width: 100%; font-size: 13px; }
.paste-try .paste-chip[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.paste-try .paste-chip[aria-pressed=true] small { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.paste-try .paste-chip.quiet { color: var(--muted); background: transparent; }
.paste-try .paste-change { min-height: 30px; padding: 3px 10px; font-size: 12px; border-radius: 15px; margin-left: auto; }
.paste-notice { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, #3d7a46 6%, var(--paper)); display: grid; gap: 12px; }
.paste-notice p { font-size: 14px; }
.paste-try .paste-notice > button { justify-self: start; }
.paste-review { display: grid; gap: 12px; }
.paste-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.paste-try .paste-fill, .paste-try .paste-next { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.paste-swap { display: grid; gap: 6px; justify-items: start; }
.paste-swap small { font-size: 12px; color: var(--muted); }
.paste-replay { background: color-mix(in srgb, #5d67b8 9%, var(--paper)); border-left: 3px solid #5d67b8; padding: 8px 10px; font-size: 13px !important; }
.paste-shot { margin: 0; }
.paste-frame { position: relative; }
.paste-frame img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.paste-mark { position: absolute; margin: -4px -3px; padding: 4px 3px; border-radius: 4px; background: rgba(238, 149, 178, .28); box-shadow: 0 0 0 2px #c83a72; pointer-events: none; }
.paste-mark::before { content: attr(data-n); position: absolute; left: -12px; top: -12px; width: 18px; height: 18px; border-radius: 50%; background: #c83a72; color: #fff; font: 700 11px/18px var(--sp-font-ui, system-ui), sans-serif; text-align: center; }
.paste-shot figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .paste-try .workspace, .paste-honesty { grid-template-columns: minmax(0, 1fr); }
  .paste-try .source { position: static; }
  .paste-try .source, .paste-try .destination { padding: 18px; }
  .paste-try .source-top { flex-direction: column; align-items: flex-start; }
}
