#cobraExchange { border:1px solid var(--line); border-radius:14px; width:min(96vw,39rem); max-height:90vh; padding:1.25rem; color:var(--ink); background:var(--paper); }
#cobraExchange::backdrop { background:rgba(24,19,40,.58); }
.exchange-header,.exchange-actions,.exchange-switch { display:flex; align-items:center; gap:.6rem; }
.exchange-header { justify-content:space-between; }
.exchange-header h2 { margin:0; }
.exchange-switch { border-bottom:1px solid var(--line); margin:1rem 0; gap:.35rem; }
.exchange-switch button { border-radius:.45rem .45rem 0 0; border-color:transparent; background:transparent; }
.exchange-switch button[aria-pressed=true] { color:var(--purple-dark); background:var(--purple-tint); box-shadow:inset 0 -2px currentColor; }
.exchange-content { font-size:.92rem; line-height:1.5; }
.exchange-content h3 { margin:.8rem 0 .3rem; overflow-wrap:anywhere; }
.exchange-content p { margin:.45rem 0 .65rem; }
.exchange-file { display:grid; gap:.35rem; padding:.85rem; margin:.8rem 0; border:1px dashed var(--line); background:var(--surface); border-radius:.6rem; font-weight:650; }
.exchange-file input { max-width:100%; }
#cobraCounts,#cobraExportSummary { font-weight:640; }
#cobraPreviewList { max-height:10rem; overflow:auto; border-radius:.4rem; }
#cobraPreviewList table { width:100%; border-collapse:collapse; font-size:.84rem; font-variant-numeric:tabular-nums; }
#cobraPreviewList th,#cobraPreviewList td { padding:.23rem .45rem; border-bottom:1px solid var(--line); text-align:left; overflow-wrap:anywhere; }
#cobraPreviewList th { background:var(--purple-tint); }
#cobraWarnings { color:var(--subtle); padding-inline-start:1.25rem; margin:.6rem 0; }
.exchange-actions { flex-wrap:wrap; margin-top:.6rem; }
#cobraAlternatives { border-top:1px solid var(--line); padding-top:.7rem; margin-top:1rem; }
#cobraAlternatives summary { color:var(--purple-dark); cursor:pointer; font-weight:630; }
#cobraCopyArea { display:block; margin-top:.7rem; }
#cobraCopyText { display:block; width:100%; }
.exchange-tip,#cobraTemplateName,#cobraReplace,#cobraTiming,#cobraStatus { font-size:.85rem; color:var(--subtle); }
#cobraStatus:not(:empty) { margin:.75rem 0 0; padding:.45rem .65rem; border-left:3px solid var(--purple-dark); }
@media(max-width:400px) { .topbar-inner { flex-wrap:wrap; } .file-actions { margin-inline-start:auto; } }
