/* ---------- IMAP reader additions ---------- */

.swap-btn{
  height:40px;
  padding:0 13px;
  border-radius:12px;
  font-size:13px;
  color:var(--text);
  background:var(--surface-2);
  border:1px solid var(--border);
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  transition:border-color .14s,background .14s,transform .1s;
  white-space:nowrap;
}
.swap-btn:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
}
.swap-btn:active{transform:scale(.96);}
.swap-btn svg{
  width:17px;
  height:17px;
  flex:0 0 17px;
}

.sep-note{
  color:var(--dim);
  font-size:12.5px;
  font-weight:600;
}

.route-summary{
  margin-top:14px;
  padding:12px 14px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:12px;
}
.route-label{
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  color:var(--dim);
  margin-bottom:8px;
}
.route-chips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.route-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 10px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  font-size:12.5px;
  font-weight:600;
  color:var(--text);
}
.route-domain{
  color:var(--accent);
  font-weight:800;
}
.route-host{
  font-family:"IBM Plex Mono",monospace;
  font-size:11.5px;
  color:var(--muted);
}
.route-tag{
  font-size:10.5px;
  font-weight:800;
  padding:2px 7px;
  border-radius:999px;
}
.route-tag.default{
  color:var(--dim);
  background:var(--surface-2);
  border:1px solid var(--border);
}
.route-tag.custom{
  color:#0f8a6b;
  background:rgba(15,138,107,.12);
  border:1px solid rgba(15,138,107,.28);
}
[data-theme="dark"] .route-tag.custom{
  color:#3dd6a4;
  background:rgba(15,138,107,.18);
  border-color:rgba(61,214,164,.3);
}

.provider-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:14px;
}
.provider-row{
  display:grid;
  grid-template-columns:minmax(120px,1.1fr) minmax(150px,1.7fr) 84px 40px;
  gap:8px;
  align-items:center;
}
.provider-row input{
  height:40px;
  width:100%;
  min-width:0;
  padding:0 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font:inherit;
  font-size:13px;
  outline:none;
  transition:border-color .14s,box-shadow .14s;
}
.provider-row input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft);
}
.provider-rm{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  transition:background .14s,color .14s,border-color .14s;
}
.provider-rm:hover{
  color:var(--err);
  background:var(--err-soft);
  border-color:rgba(229,72,77,.35);
}
.provider-rm svg{
  width:16px;
  height:16px;
}
.provider-add{
  width:100%;
  border-style:dashed;
  color:var(--accent);
  background:transparent;
}
.provider-add:hover{
  background:var(--accent-soft);
}

.btn.danger-strong{
  background:var(--err);
  border-color:var(--err);
  color:#fff;
}

@media (max-width:720px){
  .swap-label{display:none;}
  .swap-btn{padding:0 11px;}
  .provider-row{
    grid-template-columns:1fr 1fr 84px 40px;
  }
}

@media (max-width:520px){
  .provider-row{
    grid-template-columns:1fr 1fr;
  }
  .provider-rm{
    grid-column:2;
    justify-self:end;
  }
  .route-chip{
    flex-wrap:wrap;
  }
}
