.ed-tool-shell--email-swap { --tool-rail: 1120px; }
.ed-tool-shell--email-swap .ed-tool-hero h1 { max-width: 22ch; text-wrap: balance; }
.ed-tool-shell--email-swap .ed-tool-hero { margin: 0 0 1.5rem; }
.swap-preview {
  --swap-ink: #121a25;
  --swap-muted: #53677c;
  --swap-line: #eae1d3;
  --swap-paper: #fffefa;
  --swap-yellow: #ffda39;
  --swap-dark: #102026;
  color: var(--swap-ink);
  line-height: 1.45;
  padding-bottom: clamp(48px, 6vw, 90px);
}
.swap-preview :is(h2, p, ul) { margin: 0; }
.swap-preview button { cursor: pointer; }
.swap-preview :is(button, summary, input, select):focus-visible { outline: 2px solid #1e6eaa; outline-offset: 3px; }
.swap-preview-top, .swap-heading, .swap-source > summary, .swap-options summary {
  display: flex;
  align-items: center;
}
.swap-preview-top { justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.swap-flag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px;
  background: #fff4c8; border: 1px solid #f2e3a0; border-radius: 8px; font-size: 12px; font-weight: 750;
}
.swap-flag i, .swap-sim-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a68000; flex: none; }
.swap-layout { display: grid; grid-template-columns: minmax(0, 1.53fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 2vw, 28px); }
.swap-work, .swap-result { display: grid; gap: 14px; min-width: 0; }
.swap-section { border: 1px solid var(--swap-line); border-radius: 18px; background: var(--swap-paper); padding: clamp(15px, 1.65vw, 23px); }
.swap-heading { align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.swap-number {
  display: grid; place-items: center; flex: 0 0 34px; height: 34px;
  background: #fff0ad; color: #624b00; border-radius: 9px; font-size: 12px; font-weight: 800;
}
.swap-heading h2 { font-size: 21px; font-weight: 790; line-height: 1.15; letter-spacing: -.025em; }
.swap-heading p { color: var(--swap-muted); font-size: 13px; margin-top: 4px; }
.swap-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.swap-fields label { display: grid; align-content: start; gap: 5px; font-size: 12px; font-weight: 750; min-width: 0; }
.swap-fields code { font-size: .96em; }
.swap-fields label:has(code) { display: block; }
.swap-fields label:has(code) :is(input, textarea) { display: block; margin-top: 5px; }
.swap-preview :is(.swap-fields, .swap-source-id) :is(input:not([type="checkbox"]), select, textarea),
.swap-preview [data-tag] {
  color: var(--swap-ink); min-width: 0; width: 100%; min-height: 42px; padding: 8px 11px;
  border: 1px solid #d6dfea; border-radius: 9px; background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 500;
}
.swap-fields input::placeholder { color: #6d8094; }
.swap-count, .swap-chip { flex: none; padding: 4px 8px; border-radius: 20px; background: #edf2f5; color: #425a72; font-weight: 700; font-size: 11px; white-space: nowrap; }
.swap-count { margin-left: auto; }
.swap-source { background: #f5f7f8; border: 1px solid #e2e9ed; border-radius: 12px; margin-top: 10px; }
.swap-source > summary, .swap-options summary { gap: 10px; list-style: none; cursor: pointer; min-height: 52px; }
.swap-source > summary { padding: 9px 12px; }
.swap-source > summary::-webkit-details-marker, .swap-options summary::-webkit-details-marker { display: none; }
.swap-source-title { display: grid; flex: 1; gap: 1px; min-width: 0; }
.swap-source-title strong { font-size: 14px; font-weight: 790; }
.swap-preview .swap-source-title small { color: var(--swap-muted); font-size: 11px; margin-top: 1px; overflow-wrap: anywhere; }
.swap-channel-icon {
  display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid #e9dfb6;
  background: #fff6d9; border-radius: 9px; color: #6e4d05; font-size: 15px; font-weight: 850;
}
.swap-channel-icon--mail { background: #e8f0f6; color: #294c6a; border-color: #dce7ef; }
.swap-preview svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.swap-source[open] > summary > svg, .swap-options details[open] > summary > svg { transform: rotate(180deg); }
.swap-source-body { padding: 12px; border-top: 1px solid #e2e9ed; }
.swap-preview .swap-faq { margin: 0 0 16px; background: var(--swap-paper); border-color: var(--swap-line); }
.swap-preview .swap-faq .swap-source-body { border-color: var(--swap-line); }
.swap-preview .swap-faq p { max-width: 76ch; color: var(--swap-muted); font-size: 14px; }
.swap-storage { margin-top: 12px; }
.swap-preview :is(.swap-quiet, .swap-outline, .swap-primary) {
  border: 0; border-radius: 9px; padding: 8px 12px;
  font-family: inherit; font-size: 13px; font-weight: 750; min-height: 40px;
}
.swap-quiet { color: #214e73; background: transparent; }
.swap-preview .swap-add-pair { padding-left: 0; margin-top: 5px; min-height: 30px; }
.swap-outline { color: #214e73; background: #fff; border: 1px solid #d6e1ea; }
.swap-add-source { margin-top: 12px; }
.swap-options { padding-block: 7px; }
.swap-options .swap-source-title strong { font-size: 15px; }
.swap-extra { padding: 6px 0 13px; }
.swap-primary { background: var(--swap-yellow); color: #131a21; border: 1px solid #f5ce2d; }
.swap-preview .swap-generate { justify-self: start; padding-inline: 23px; min-height: 46px; font-size: 14px; }
.swap-simulator { color: #f5fafc; background: var(--swap-dark); padding: clamp(16px, 2vw, 24px); border-radius: 18px; }
.swap-sim-header { display: flex; align-items: center; gap: 8px; color: #c1d3db; font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.swap-sim-dot { background: var(--swap-yellow); }
.swap-simulator h2 { margin-top: 7px; font-size: clamp(21px, 2.1vw, 30px); font-weight: 780; letter-spacing: -.025em; line-height: 1.15; }
.swap-simulator > p { color: #c1d3db; font-size: 13px; margin-top: 7px; max-width: 34ch; }
.swap-scenarios { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.swap-scenarios button {
  min-height: 38px; border: 1px solid #47616c; border-radius: 8px; padding: 6px 9px;
  background: #1b333c; color: #e0edf3; font-family: inherit; font-size: 12px; font-weight: 700;
}
.swap-scenarios button[aria-pressed="true"] { color: #151c24; background: var(--swap-yellow); border-color: var(--swap-yellow); }
.swap-scenarios button:focus-visible { outline-color: #fff; }
.swap-browser { margin-top: 15px; background: #fff; color: var(--swap-ink); border-radius: 11px; }
.swap-addressbar { display: flex; align-items: center; gap: 7px; padding: 8px 12px; color: #416079; border-bottom: 1px solid #e5ebef; }
.swap-addressbar svg { width: 15px; height: 15px; }
.swap-addressbar code { font-size: 11px; overflow-wrap: anywhere; min-width: 0; }
.swap-browser-page { display: grid; gap: 4px; padding: 15px 13px 17px; }
.swap-browser-page span { color: #50677a; font-size: 12px; }
.swap-browser-page strong { font-size: clamp(16px, 1.7vw, 23px); letter-spacing: -.025em; overflow-wrap: anywhere; }
.swap-explain { display: grid; gap: 9px; margin-top: 14px; }
.swap-explain div { display: grid; gap: 10px; align-items: baseline; grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr); }
.swap-explain span { color: #c1d3db; font-size: 12px; }
.swap-explain strong { font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.swap-explain code { justify-self: start; padding: 2px 6px; border-radius: 5px; background: #25414c; color: #f1f6fa; font-size: 11px; overflow-wrap: anywhere; }
.swap-delivery ul { list-style: none; padding: 0; }
.swap-delivery li { display: grid; gap: 1px; padding-block: 8px; border-top: 1px solid var(--swap-line); }
.swap-delivery li strong { font-size: 13px; }
.swap-delivery li span, .swap-privacy { font-size: 12px; color: var(--swap-muted); }
.swap-preview .swap-privacy { padding-inline: 2px; }
.swap-preview :is(input,select,button)[disabled] { opacity: .65; cursor: default; }
.swap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.swap-pairs, .swap-rule-actions { margin-top: 12px; }
.swap-pair + .swap-pair { margin-top: 9px; }
.swap-preview .swap-pair-remove { padding-inline: 0; min-height: 34px; }
.swap-rule-actions .swap-add-pair { margin-top: 0; min-height: 40px; }
.swap-source-id { font-size: 12px; color: var(--swap-muted); }
.swap-source-id > summary, .swap-export-detail > summary { cursor: pointer; padding-block: 7px; }
.swap-source-id input { margin-top: 5px; max-width: 24ch; }
.swap-flags { padding: 10px 0; border: 0; border-top: 1px solid var(--swap-line); font-size: 13px; }
.swap-flags legend { font-weight: 780; padding-inline-end: 8px; }
.swap-flags > label { display: flex; align-items: center; gap: 6px; padding-block: 4px; }
.swap-flags input[type="checkbox"] { accent-color: #ffda39; }
.swap-preview .swap-muted { margin-top: 6px; color: var(--swap-muted); font-size: 12px; }
.swap-export-detail { margin-top: 12px; font-size: 13px; }
.swap-export-detail h3 { font-size: 15px; font-weight: 780; }
.swap-export-detail code { white-space: normal; overflow-wrap: anywhere; }
.swap-export-detail li .swap-quiet { justify-self: start; padding-inline: 0; }
.swap-preview [data-tag] { resize: vertical; font-family: monospace; }
.swap-preview .swap-feedback:empty { display: none; }
.swap-error { padding: 11px 14px; background: #fff1ee; color: #9a2c17; border: 1px solid #ebc2b6; border-radius: 10px; }
.swap-preview .swap-error { margin-bottom: 12px; }
.swap-field-error { display: block; color: #9a2c17; font-size: 12px; overflow-wrap: anywhere; }
.swap-preview [aria-invalid="true"] { border-color: #bb432c; }
@media (max-width: 830px) {
  .swap-layout { grid-template-columns: minmax(0, 1fr); }
  .swap-preview .swap-generate { justify-self: stretch; }
}
@media (max-width: 540px) {
  .swap-preview-top { flex-wrap: wrap; gap: 3px; }
  .swap-preview-top .swap-quiet { padding-inline: 0; min-height: 42px; }
  .swap-fields { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .swap-storage { grid-template-columns: minmax(0, 1fr) minmax(0, .57fr); }
  .swap-storage :is(input,select) { padding-inline: 7px; }
  .swap-section { border-radius: 14px; padding: 13px; }
  .swap-heading { gap: 8px; }
  .swap-count { display: none; }
  .swap-source > summary { padding-inline: 8px; }
  .swap-source-body { padding: 9px; }
  .swap-simulator { border-radius: 14px; }
  .swap-scenarios button { min-height: 44px; }
}
