/* ── Formatos / Templates ────────────────────────────────────────────
   Letter size canonical: 816 × 1056 px (8.5 × 11" at 96dpi)
*/

.paper {
  width: 816px;
  height: 1056px;
  background: #fff;
  position: relative;
  box-shadow: 0 1px 2px rgba(15,42,80,.08), 0 12px 40px rgba(15,42,80,.12);
  overflow: hidden;
  color: #111827;
  font-family: var(--font-sans);
}
.paper-wrap {
  display: inline-block;
  background: transparent;
}
.paper-zoom {
  transform-origin: top left;
  display: block;
}
.paper-stage {
  display: flex;
  justify-content: center;
  padding: 36px 24px;
  background: var(--bg);
  border-radius: var(--r-lg);
  overflow: auto;
  position: relative;
}

/* Crop a paper to a thumbnail container */
.paper-thumb {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  cursor: default;
  transition: box-shadow .15s ease, transform .15s ease;
}
.paper-thumb:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
}
.paper-thumb .paper {
  box-shadow: none;
}

/* ── Formats overview cards ──────────────────────────────────────── */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.format-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.format-card:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
  border-color: #CBD5E1;
}
.format-card .icon-tile {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}
.format-card h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.format-card p { margin: 4px 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.format-card .footrow { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.format-card .preview-stack {
  position: relative;
  width: 120px;
  height: 150px;
}
.format-card .preview-stack .mini {
  position: absolute;
  width: 100px;
  aspect-ratio: 8.5/11;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(15,42,80,.08);
  overflow: hidden;
}
.format-card .preview-stack .mini:nth-child(1) { right: 0; top: 0; transform: rotate(4deg); z-index: 2; }
.format-card .preview-stack .mini:nth-child(2) { right: 20px; top: 4px; transform: rotate(-3deg); z-index: 1; }

/* ── Template gallery ────────────────────────────────────────────── */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tpl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tpl-card .tpl-thumb-wrap {
  background: linear-gradient(180deg, #EEF2F7 0%, #E2E8F0 100%);
  padding: 22px;
  display: flex; justify-content: center;
  border-bottom: 1px solid var(--line-2);
}
.tpl-card .tpl-meta {
  padding: 14px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tpl-card h4 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.tpl-card .tpl-style { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tpl-card .row { gap: 6px; }

/* ── Editor layout ───────────────────────────────────────────────── */
.editor-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: flex-start;
}
@media (max-width: 1080px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; }
}
.editor-side {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.editor-side .card-head { padding: 12px 16px; }
.editor-side .card-body { padding: 14px 16px 16px; }
.editor-side .field { margin-bottom: 12px; }
.editor-side .field:last-child { margin-bottom: 0; }
.editor-side .field label { font-size: 12px; }

.recipient-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.recipient-pill .av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  border: 1px solid var(--primary-100);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.recipient-pill .meta { line-height: 1.2; }
.recipient-pill .name { font-size: 13px; font-weight: 500; color: var(--ink); }
.recipient-pill .sub { font-size: 11.5px; color: var(--muted); }

/* ── Public link view ────────────────────────────────────────────── */
.public-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #EEF2F7 0%, #DCE5EE 100%);
  display: flex;
  flex-direction: column;
}
.public-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.public-topbar .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.public-topbar .right {
  display: flex; gap: 8px; align-items: center;
}
.public-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: flex-start;
}
@media (max-width: 1080px) {
  .public-main { grid-template-columns: 1fr; }
  .public-side { position: static; }
}
.public-paper {
  display: flex; justify-content: center;
}
.public-side {
  position: sticky;
  top: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.public-hero-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.public-hero-card .top {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, var(--primary), #1E3A5F);
  color: #fff;
}
.public-hero-card .top .eyebrow {
  color: rgba(255,255,255,.7);
  font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 500;
  margin-bottom: 6px;
}
.public-hero-card .top h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.public-hero-card .body {
  padding: 16px 20px 18px;
}
.public-hero-card .body .meta {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--ink-2);
}
.public-hero-card .body .meta .item {
  display: flex; gap: 8px; align-items: flex-start;
}
.public-hero-card .body .meta .item svg { color: var(--muted); margin-top: 2px; flex-shrink: 0; }

.action-list {
  display: flex; flex-direction: column; gap: 10px;
}
.action-item {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.action-item h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.action-item p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.action-item.done {
  background: linear-gradient(180deg, #F0FDF4, #fff);
  border-color: #BBF7D0;
}
.action-item.done .done-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--success);
  font-weight: 500;
}
.upload-zone {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--muted);
}
.upload-zone.dragging { border-color: var(--primary); background: var(--primary-50); }

/* ── Action bar over paper ──────────────────────────────────────── */
.paper-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.zoom-bar {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  font-size: 12.5px;
}
.zoom-bar button {
  appearance: none; border: 0;
  background: transparent;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--ink-3);
}
.zoom-bar button:hover { background: var(--surface-2); color: var(--ink); }
.zoom-bar .val { padding: 0 4px; font-variant-numeric: tabular-nums; min-width: 36px; text-align: center; }

/* ── Editor de carta embebido en Formatos ───────────────────────── */
.carta-editor-route {
  display: flex; flex-direction: column;
  height: calc(100vh - 60px);
}
.carta-editor-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.carta-editor-frame {
  flex: 1; width: 100%; border: 0; display: block;
  background: #e7e9ee;
}

/* ── Carta pre-structure picker (Formatos overview) ─────────────── */
.carta-pick {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  max-width: 900px;
}
.carta-pick-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .14s ease, box-shadow .14s ease, transform .08s ease;
}
.carta-pick-card:hover { border-color: #A4093A; box-shadow: 0 8px 26px rgba(20,28,45,.12); transform: translateY(-2px); }
.carta-pick-preview {
  background: linear-gradient(180deg, #EEF2F7, #E2E8F0);
  height: 300px; display: flex; align-items: center; justify-content: center;
  padding: 24px; border-bottom: 1px solid var(--line);
}
.carta-pick-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
}
.carta-pick-meta h3 { margin: 0; font-size: 15px; color: var(--ink); font-weight: 600; }

/* mini carta thumbnail */
.ct-page {
  background: #fff; box-shadow: 0 4px 14px rgba(20,28,45,.18);
  aspect-ratio: 8.5 / 11; height: 100%; padding: 9% 10%;
  display: flex; flex-direction: column; gap: 4%;
}
.ct-page.land { aspect-ratio: 11 / 8.5; height: auto; width: 100%; padding: 7% 7%; }
.ct-head { display: flex; align-items: center; justify-content: space-between; }
.ct-logo { width: 30%; height: 14px; background: #A4093A; border-radius: 2px; opacity: .85; }
.ct-logo:last-child { background: #035685; opacity: .8; }
.ct-rule { height: 2px; background: linear-gradient(90deg, #A4093A, #A4093A 62%, #035685); border-radius: 2px; }
.ct-cn { text-align: right; color: #A4093A; font-family: "Noto Serif SC", serif; font-weight: 600; font-size: 13px; line-height: 1; }
.ct-title { text-align: center; color: #A4093A; font-weight: 800; letter-spacing: .12em; font-size: 11px; }
.ct-sub { height: 5px; width: 56%; margin: 0 auto; background: #d8dde3; border-radius: 2px; }
.ct-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 2%; }
.ct-lines span { height: 4px; background: #e3e7ec; border-radius: 2px; }
.ct-sign { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ct-sign i { width: 38%; height: 11px; background: #cfd5dd; border-radius: 2px; }
.ct-sign b { width: 46%; height: 1.5px; background: #333; display: block; }
.ct-sign em { width: 30%; height: 4px; background: #e3e7ec; border-radius: 2px; }
.ct-foot { display: flex; gap: 10px; justify-content: flex-start; padding-top: 4%; border-top: 1px solid #eef0f3; }
.ct-flogo { width: 16%; height: 9px; background: #A4093A; opacity: .65; border-radius: 2px; }
.ct-flogo:last-child { background: #5AAC36; opacity: .7; }

/* ── Event picker (onboarding) ──────────────────────────────────── */
.event-pick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.event-pick {
  appearance: none; text-align: left; cursor: default;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  padding: 16px 17px; display: flex; flex-direction: column; gap: 9px;
  transition: border-color .14s ease, box-shadow .14s ease, transform .08s ease;
  font-family: inherit;
}
.event-pick:hover { border-color: #A4093A; box-shadow: 0 8px 24px rgba(20,28,45,.12); transform: translateY(-2px); }
.event-pick .ep-top { display: flex; align-items: center; justify-content: space-between; }
.event-pick .ep-type { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.event-pick h3 { margin: 0; font-size: 15px; line-height: 1.3; color: var(--ink); font-weight: 600; }
.event-pick .ep-meta { display: flex; flex-direction: column; gap: 5px; }
.event-pick .ep-meta span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.event-pick .ep-meta svg { color: #A4093A; flex-shrink: 0; }
.event-pick .ep-cta {
  margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 5px; justify-content: flex-end;
  font-size: 12.5px; font-weight: 600; color: #A4093A;
}

/* ── Constructor de plantillas ───────────────────────────────────── */
.builder-layout {
  display: grid;
  grid-template-columns: 372px 1fr;
  gap: 22px;
  align-items: flex-start;
}
@media (max-width: 1100px) {
  .builder-layout { grid-template-columns: 1fr; }
  .builder-side { position: static; }
}
.builder-side {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 4px;
}
.builder-side .card-head { padding: 12px 16px; }
.builder-side .card-body { padding: 14px 16px 16px; }
.builder-side .field { margin-bottom: 14px; }
.builder-side .field:last-child { margin-bottom: 0; }
.builder-side .field label { font-size: 12px; }
.card-title { font-size: 13.5px; color: var(--ink); }

/* segmented control, full width */
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1; text-align: center; }

/* type picker */
.type-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.type-opt {
  appearance: none;
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-2);
  cursor: default;
  transition: border-color .12s ease, background .12s ease;
}
.type-opt:hover { border-color: #CBD5E1; }
.type-opt.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.type-opt .ic { font-size: 15px; line-height: 1; }

/* accent swatches */
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 28px; height: 28px; border-radius: 7px;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--line) inset;
  cursor: default;
  transition: transform .1s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--ink); }

/* mini switch */
.mini-switch {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; cursor: default;
}
.mini-switch span:first-child { font-size: 13px; color: var(--ink-2); }
.mini-switch .track {
  width: 30px; height: 18px; border-radius: 10px; position: relative;
  transition: background .15s ease; flex-shrink: 0;
}
.mini-switch .knob {
  position: absolute; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: left .15s ease; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

/* image drop */
.img-drop {
  position: relative;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
  cursor: default;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .12s ease, background .12s ease;
}
.img-drop:hover { border-color: #CBD5E1; }
.img-drop.dragging { border-color: var(--primary); background: var(--primary-50); }
.img-drop.has { border-style: solid; background: #0B2545; }
.img-drop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-drop-empty { text-align: center; color: var(--muted); padding: 14px; }
.img-drop-empty .t { font-size: 12.5px; margin-top: 6px; color: var(--ink-2); font-weight: 500; }
.img-drop-empty .h { font-size: 11px; margin-top: 2px; }
.img-drop-x {
  position: absolute; top: 7px; right: 7px;
  width: 24px; height: 24px; border-radius: 6px;
  border: 0; background: rgba(11,37,69,.7); color: #fff;
  display: grid; place-items: center; cursor: default;
}
.img-drop-x:hover { background: rgba(11,37,69,.9); }

/* token palette */
.tok-help {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted);
  margin-bottom: 8px; line-height: 1.4;
}
.tok-help svg { flex-shrink: 0; }
.tok-palette { display: flex; flex-direction: column; gap: 8px; }
.tok-group-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.tok-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tok-chip {
  appearance: none; cursor: default;
  border: 1px solid var(--primary-100);
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px; font-weight: 500;
  font-family: var(--font-mono);
  transition: background .1s ease;
}
.tok-chip:hover { background: var(--primary-100); }

/* live token highlight inside paper */
.tok-live {
  background: rgba(15,76,129,.10);
  box-shadow: 0 0 0 1px rgba(15,76,129,.14) inset;
  border-radius: 3px;
  padding: 0 2px;
}

/* signer block */
.signer-block {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface-2);
  margin-bottom: 10px;
}
.signer-block:last-child { margin-bottom: 0; }
.signer-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}

/* ── Participantes · ciclo de vida ───────────────────────────────── */
.lifecycle .card-head { padding: 14px 18px; }
.lifecycle .card-body { padding: 16px 18px; }
.lifecycle-track {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; padding-bottom: 4px;
}
.stage-chip {
  appearance: none; cursor: default;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 14px 9px 11px;
  flex-shrink: 0;
  transition: border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
.stage-chip:hover { border-color: var(--primary); box-shadow: var(--sh-1); transform: translateY(-1px); }
.stage-ic {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center; font-size: 15px; flex-shrink: 0;
}
.stage-text { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.stage-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.stage-meta { font-size: 11px; color: var(--muted); }
.stage-arrow { color: var(--muted-2); flex-shrink: 0; display: flex; }
.stage-add {
  appearance: none; cursor: default;
  width: 36px; height: 48px; flex-shrink: 0;
  border: 1.5px dashed var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--muted);
  display: grid; place-items: center; margin-left: 4px;
}
.stage-add:hover { border-color: var(--primary); color: var(--primary); }

/* stepper in table */
.participants-tbl td { vertical-align: middle; }
.stepper { display: flex; gap: 5px; margin-bottom: 4px; }
.stepper .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: background .15s ease;
}
.stepper .dot.filled { background: var(--success); }
.stepper .dot.current { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.stage-label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.participants-tbl input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--primary); cursor: default; }

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,37,69,.42);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.modal {
  background: var(--surface);
  border-radius: 16px;
  width: 100%; max-width: 520px;
  max-height: calc(100vh - 56px);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(11,37,69,.34);
  overflow: hidden;
}
.modal.wide { max-width: 940px; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-2);
}
.modal-head h3 { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.modal-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; max-width: 640px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-top: 1px solid var(--line-2);
  background: var(--surface-2);
}

/* icon picker */
.icon-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-opt {
  appearance: none; cursor: default;
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 17px; display: grid; place-items: center;
}
.icon-opt:hover { border-color: #CBD5E1; }
.icon-opt.on { border-color: var(--primary); background: var(--primary-50); }

/* ── Generate modal layout ───────────────────────────────────────── */
.gen-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: flex-start; }
@media (max-width: 820px) { .gen-layout { grid-template-columns: 1fr; } }
.gen-preview { min-width: 0; }
.gen-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 10px;
}
.gen-paper {
  background: linear-gradient(180deg, #EEF2F7, #E2E8F0);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 22px; display: flex; justify-content: center;
  max-height: 56vh; overflow: auto;
}
.form-request {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px; text-align: center; max-width: 360px;
}
.form-request-ic {
  width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 12px;
  background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center;
}
.form-request h4 { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.form-request p { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

.gen-side { display: flex; flex-direction: column; gap: 14px; }
.gen-doc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.gen-kv {
  display: grid; grid-template-columns: auto 1fr; gap: 7px 12px;
  font-size: 12.5px; align-items: baseline;
}
.gen-kv span { color: var(--muted); }
.gen-kv b { color: var(--ink); font-weight: 600; text-align: right; word-break: break-all; }
.gen-kv .fname { font-family: var(--font-mono); font-size: 11.5px; color: var(--primary); }
.gen-kv .link-cell { font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.gen-kv .link-cell.on { color: var(--primary); }
.gen-opts { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px 12px; }
.gen-opts-title {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 10px 0 4px;
}
