.channels-page {
  min-height: 100vh;
}

.channels-main {
  min-width: 0;
  min-height: 100vh;
  padding: 28px;
  overflow-y: auto;
}

.channels-header {
  max-width: 1100px;
  margin: 0 auto 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.channels-eyebrow {
  display: block;
  margin-bottom: 5px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  opacity: .62;
}

.channels-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.channels-header p {
  margin: 7px 0 0;
  max-width: 650px;
  opacity: .68;
  line-height: 1.5;
}

.channels-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.channels-primary-button,
.channels-secondary-button,
.channels-icon-button {
  border: 1px solid var(--border-color, rgba(255,255,255,.1));
  font: inherit;
  cursor: pointer;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease,
    opacity .18s ease;
}

.channels-primary-button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  background: var(--primary, #27d3a2);
  color: #06131b;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.channels-primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.channels-primary-button:disabled,
.channels-secondary-button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.channels-secondary-button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  font-weight: 750;
}

.channels-secondary-button:hover {
  border-color: var(--primary, #27d3a2);
  background: rgba(39,211,162,.08);
}

.channels-secondary-button.following {
  background: rgba(39,211,162,.1);
  border-color: rgba(39,211,162,.35);
}

.channels-icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.channels-icon-button:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(39,211,162,.25);
}

.channels-search-section {
  max-width: 1100px;
  margin: 0 auto 24px;
}

.channels-search {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--border-color, rgba(255,255,255,.1));
  border-radius: 13px;
  background: var(--card-bg, rgba(255,255,255,.035));
}

.channels-search > span {
  font-size: 1.15rem;
  opacity: .65;
}

.channels-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.channels-search input::placeholder {
  opacity: .5;
}

.channels-search-clear {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: .6;
}

.channels-section {
  max-width: 1100px;
  margin: 0 auto 28px;
}

.channels-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.channels-section-heading h2 {
  margin: 0;
  font-size: 1.1rem;
}

.channels-section-heading p {
  margin: 4px 0 0;
  font-size: .84rem;
  opacity: .58;
}

.channel-list {
  display: grid;
  gap: 10px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--border-color, rgba(255,255,255,.08));
  border-radius: 15px;
  background: var(--card-bg, rgba(255,255,255,.035));
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.channel-card:hover {
  transform: translateY(-1px);
  border-color: rgba(39,211,162,.28);
  background: rgba(255,255,255,.05);
}

.channel-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(39,211,162,.9), rgba(68,120,255,.9));
  color: #fff;
  font-weight: 850;
  font-size: 1.15rem;
}

.channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-card-main {
  min-width: 0;
  flex: 1;
}

.channel-card-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.channel-card-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-verified {
  flex: 0 0 auto;
  font-size: .78rem;
}

.channel-card-handle {
  display: block;
  margin-top: 3px;
  font-size: .82rem;
  opacity: .58;
}

.channel-card-description {
  margin-top: 6px;
  font-size: .82rem;
  line-height: 1.4;
  opacity: .65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-card-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-card-followers {
  font-size: .76rem;
  opacity: .55;
  white-space: nowrap;
}

.channel-card-action {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
}

.channels-loading,
.channels-empty {
  min-height: 110px;
  padding: 24px;
  border: 1px dashed var(--border-color, rgba(255,255,255,.12));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  opacity: .7;
}

.channels-empty-icon {
  font-size: 1.7rem;
  margin-bottom: 3px;
}

.channels-empty strong {
  opacity: .9;
}

.channels-empty span {
  max-width: 400px;
  font-size: .82rem;
  line-height: 1.4;
}


.channel-view {
  max-width: 1100px;
  margin: 0 auto 30px;
  border: 1px solid var(--border-color, rgba(255,255,255,.08));
  border-radius: 18px;
  background: var(--card-bg, rgba(255,255,255,.035));
  overflow: hidden;
}

.channel-view-header {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,.08));
}

.channel-profile-summary {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-avatar-large {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-radius: 17px;
}

.channel-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-name-row h2 {
  margin: 0;
  font-size: 1.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-profile-summary > div:last-child > span {
  display: block;
  margin-top: 4px;
  font-size: .82rem;
  opacity: .56;
}

.channel-public-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(39,211,162,.1);
  color: var(--primary, #27d3a2);
  font-size: .67rem;
  font-weight: 800;
}

.channel-view-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.channel-description {
  padding: 14px 18px;
  line-height: 1.55;
  font-size: .88rem;
  opacity: .72;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,.07));
}

.channel-stats {
  display: flex;
  gap: 1px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,.07));
}

.channel-stats > div {
  flex: 1;
  padding: 13px;
  text-align: center;
  background: rgba(255,255,255,.015);
}

.channel-stats strong,
.channel-stats span {
  display: block;
}

.channel-stats strong {
  font-size: 1rem;
}

.channel-stats span {
  margin-top: 2px;
  font-size: .72rem;
  opacity: .55;
}

.channel-owner-tools {
  margin: 15px;
  padding: 13px;
  border: 1px solid rgba(39,211,162,.18);
  border-radius: 13px;
  background: rgba(39,211,162,.045);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.channel-owner-tools-title strong,
.channel-owner-tools-title span {
  display: block;
}

.channel-owner-tools-title span {
  margin-top: 3px;
  font-size: .78rem;
  opacity: .6;
}


.channel-post-composer {
  margin: 15px;
  padding: 14px;
  border: 1px solid var(--border-color, rgba(255,255,255,.1));
  border-radius: 14px;
}

.channel-post-composer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.channel-post-composer textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--border-color, rgba(255,255,255,.1));
  border-radius: 11px;
  outline: none;
  background: rgba(255,255,255,.025);
  color: inherit;
  font: inherit;
  line-height: 1.5;
}

.channel-post-composer textarea:focus {
  border-color: rgba(39,211,162,.4);
}

.channel-post-composer-footer {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.channel-post-composer-footer > span {
  font-size: .74rem;
  opacity: .5;
}

.channel-form-message {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .8rem;
  line-height: 1.4;
}

.channel-form-message.error {
  background: rgba(255,80,80,.08);
  border: 1px solid rgba(255,80,80,.18);
}

.channel-form-message.success {
  background: rgba(39,211,162,.08);
  border: 1px solid rgba(39,211,162,.18);
}


.channel-posts-list {
  padding: 0 15px 15px;
  display: grid;
  gap: 10px;
}

.channel-post {
  padding: 14px;
  border: 1px solid var(--border-color, rgba(255,255,255,.08));
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}

.channel-post-header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.channel-post-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(39,211,162,.8), rgba(68,120,255,.8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  overflow: hidden;
}

.channel-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-post-author {
  min-width: 0;
  flex: 1;
}

.channel-post-author strong,
.channel-post-author span {
  display: block;
}

.channel-post-author strong {
  font-size: .82rem;
}

.channel-post-author span {
  margin-top: 2px;
  font-size: .7rem;
  opacity: .52;
}

.channel-post-content {
  margin: 12px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
  font-size: .88rem;
}

.channel-post-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.channel-post-delete {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .74rem;
  opacity: .48;
}

.channel-post-delete:hover {
  opacity: .9;
}


.channel-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(4px);
}

.channel-dialog {
  width: min(100%, 500px);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--border-color, rgba(255,255,255,.12));
  border-radius: 18px;
  background: var(--bg-secondary, #101b2a);
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
}

.channel-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.channel-dialog-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.channel-field {
  display: block;
  margin-bottom: 15px;
}

.channel-field > span {
  display: block;
  margin-bottom: 7px;
  font-size: .82rem;
  font-weight: 750;
}

.channel-field input,
.channel-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-color, rgba(255,255,255,.1));
  border-radius: 11px;
  padding: 11px 12px;
  outline: none;
  background: rgba(255,255,255,.025);
  color: inherit;
  font: inherit;
}

.channel-field textarea {
  min-height: 100px;
  resize: vertical;
}

.channel-field input:focus,
.channel-field textarea:focus {
  border-color: rgba(39,211,162,.45);
}

.channel-field small {
  display: block;
  margin-top: 5px;
  font-size: .7rem;
  opacity: .5;
}

.channel-handle-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color, rgba(255,255,255,.1));
  border-radius: 11px;
  padding-left: 11px;
  background: rgba(255,255,255,.025);
}

.channel-handle-input > span {
  opacity: .5;
}

.channel-handle-input input {
  border: 0;
  background: transparent;
}

.channel-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 16px;
  cursor: pointer;
}

.channel-checkbox input {
  margin-top: 3px;
  accent-color: var(--primary, #27d3a2);
}

.channel-checkbox strong,
.channel-checkbox small {
  display: block;
}

.channel-checkbox strong {
  font-size: .82rem;
}

.channel-checkbox small {
  margin-top: 3px;
  font-size: .72rem;
  opacity: .55;
  line-height: 1.4;
}

.channel-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}


@media (max-width: 760px) {
  .channels-main {
    padding: 18px 14px 85px;
  }

  .channels-header {
    align-items: stretch;
    flex-direction: column;
  }

  .channels-header-actions {
    justify-content: flex-end;
  }

  .channel-card-meta {
    flex-direction: column;
    align-items: flex-end;
  }

  .channel-card-followers {
    display: none;
  }

  .channel-view-header {
    align-items: flex-start;
  }

  .channel-profile-summary {
    align-items: flex-start;
  }

  .channel-view-actions {
    margin-left: auto;
  }

  .channel-view-actions .channels-icon-button {
    display: none;
  }
}


@media (max-width: 560px) {
  .channels-header h1 {
    font-size: 1.5rem;
  }

  .channels-primary-button {
    min-height: 40px;
    padding: 0 12px;
  }

  .channel-card {
    align-items: flex-start;
  }

  .channel-card-description {
    display: none;
  }

  .channel-view-header {
    flex-wrap: wrap;
  }

  .channel-profile-summary {
    width: calc(100% - 52px);
  }

  .channel-view-actions {
    width: 100%;
    padding-left: 53px;
  }

  .channel-view-actions .channels-secondary-button {
    flex: 1;
  }

  .channel-owner-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .channel-dialog-backdrop {
    padding: 10px;
  }

  .channel-dialog {
    padding: 16px;
    border-radius: 15px;
  }
}

/* Refined channel discovery surface — ZakiChat cyan/navy system */
body.channels-page{background:radial-gradient(ellipse at 82% 0%,rgba(0,185,239,.13),transparent 34%),linear-gradient(150deg,#050b17,#071528 58%,#081d30)!important}
.channels-main{padding:clamp(16px,3vw,34px)}
.channels-header,.channels-search-section,.channels-section{max-width:980px}
.channels-header{align-items:center;padding:clamp(18px,3vw,28px);margin-bottom:18px;border:1px solid rgba(87,210,255,.18);border-radius:24px;background:linear-gradient(125deg,rgba(11,34,56,.97),rgba(8,22,40,.96));box-shadow:0 20px 55px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.045)}
.channels-eyebrow{color:#52dcff;opacity:1;letter-spacing:.18em}
.channels-header h1{font-size:clamp(1.65rem,3vw,2.25rem);letter-spacing:-.045em;color:#f2faff}
.channels-header p{color:#9db9d0;opacity:1}
.channels-primary-button{min-height:44px;padding:0 17px;border:1px solid rgba(183,246,255,.35);border-radius:14px;background:linear-gradient(120deg,#5ce5ff,#10bce9 60%,#078dd2);box-shadow:0 8px 25px rgba(0,185,239,.18);color:#031521}
.channels-icon-button{border-color:rgba(100,205,241,.2);background:rgba(255,255,255,.035);color:#d9f5ff}
.channels-search-section{margin-bottom:26px}
.channels-search{height:52px;padding:0 16px;border-color:rgba(100,205,241,.2);border-radius:16px;background:rgba(8,26,45,.9);box-shadow:inset 0 1px rgba(255,255,255,.035),0 8px 25px rgba(0,0,0,.12)}
.channels-search>span{color:#58dfff;opacity:1}
.channels-search input{color:#f3f9ff!important;background:transparent!important;border:0!important;box-shadow:none!important}
.channels-section{padding:clamp(15px,2.2vw,22px);margin-bottom:22px;border:1px solid rgba(100,205,241,.13);border-radius:22px;background:linear-gradient(145deg,rgba(10,29,49,.78),rgba(5,17,31,.84));box-shadow:0 16px 42px rgba(0,0,0,.13)}
.channels-section-heading{align-items:center;margin-bottom:16px}
.channels-section-heading h2{font-size:1.15rem;color:#eff9ff;letter-spacing:-.025em}
.channels-section-heading p{color:#91abc1;opacity:1}
.channel-list{gap:11px}
.channel-card{position:relative;min-height:82px;gap:15px;padding:14px 16px;border:1px solid rgba(110,201,236,.13);border-radius:18px;background:linear-gradient(120deg,rgba(16,43,67,.84),rgba(8,25,44,.94));box-shadow:inset 0 1px rgba(255,255,255,.025);transition:transform .2s,border-color .2s,box-shadow .2s,background .2s}
.channel-card:hover{transform:translateY(-2px);border-color:rgba(56,220,255,.4);background:linear-gradient(120deg,rgba(19,57,83,.96),rgba(8,29,49,.98));box-shadow:0 12px 26px rgba(0,0,0,.2),0 0 0 1px rgba(56,220,255,.04)}
.channel-avatar{width:54px;height:54px;flex-basis:54px;border-radius:17px;border:1px solid rgba(190,245,255,.22);background:linear-gradient(135deg,#0aa8d5,#3979e8 62%,#7868e8);box-shadow:0 7px 20px rgba(0,145,220,.18)}
.channel-card-name strong{color:#f1f8ff;font-size:.98rem}
.channel-card-description,.channel-card-meta,.channel-card-stats,.channel-handle{color:#9db6cc}
.channels-secondary-button{border-color:rgba(87,210,255,.25);border-radius:12px;color:#dff8ff;background:rgba(56,220,255,.055)}
.channels-secondary-button.following{color:#8ef0d0;border-color:rgba(39,211,162,.38);background:rgba(39,211,162,.1)}
.channels-empty,.channels-loading{padding:30px 18px;border:1px dashed rgba(100,205,241,.2);border-radius:18px;background:rgba(8,25,43,.48);color:#9db6cc;text-align:center}
.channels-empty-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 12px;border-radius:17px;background:rgba(56,220,255,.1);color:#52dcff;font-size:1.35rem}
.channels-empty strong{display:block;margin-bottom:6px;color:#eff9ff;font-size:1rem}
.channels-empty span{display:block;max-width:340px;margin:0 auto;line-height:1.55}
.channel-view{border:1px solid rgba(87,210,255,.18);border-radius:22px;background:linear-gradient(145deg,rgba(11,34,56,.98),rgba(5,18,33,.99));box-shadow:0 22px 55px rgba(0,0,0,.28)}
@media(max-width:640px){
 .channels-main{padding:13px 11px 94px}
 .channels-header{align-items:stretch;flex-direction:column;gap:16px;padding:18px;border-radius:20px}
 .channels-header-actions{justify-content:space-between}
 .channels-primary-button{flex:1}
 .channels-section{padding:14px 11px;border-radius:18px}
 .channel-card{gap:11px;padding:12px 10px;border-radius:15px}
 .channel-avatar{width:47px;height:47px;flex-basis:47px;border-radius:15px}
}


/* Mobile-first channel layout cleanup: compact icon, comfortable controls, clear sections */
body.channels-page .app-brand img{width:30px!important;height:30px!important;max-width:30px!important;object-fit:cover;border-radius:9px}
body.channels-page .channels-sidebar-icon{display:inline-grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;font-size:17px;background:linear-gradient(140deg,#123e5c,#087eae);border:1px solid #64dfff35}
body.channels-page .channels-main{min-width:0}
body.channels-page .channels-header{align-items:center;gap:14px}
body.channels-page .channels-header-actions{gap:10px}
body.channels-page .channels-icon-button{width:44px;height:44px;flex:0 0 44px;font-size:1.35rem}
body.channels-page .channels-primary-button,body.channels-page .channels-secondary-button{min-height:46px}
body.channels-page .channels-section{overflow:hidden}
body.channels-page .channel-card{align-items:center;min-height:76px;gap:12px;padding:12px 13px}
body.channels-page .channel-avatar{width:46px;height:46px;flex-basis:46px;border-radius:14px;font-size:1rem}
body.channels-page .channel-card-main{min-width:0}
body.channels-page .channel-card-actions{gap:8px}
body.channels-page .channels-section-heading h2{font-size:1.08rem}
body.channels-page .channels-search{min-height:50px}
body.channels-page .channels-search input{min-height:44px;font-size:15px}
body.channels-page .channel-view[hidden],body.channels-page .channel-list[hidden]{display:none!important}
@media(max-width:640px){
 body.channels-page .channels-main{padding:12px 10px 100px}
 body.channels-page .channels-header{padding:16px;gap:14px}
 body.channels-page .channels-header-actions{width:100%;gap:9px}
 body.channels-page .channels-header-actions .channels-primary-button{flex:1}
 body.channels-page .channels-header-actions .channels-icon-button{flex:0 0 44px}
 body.channels-page .channel-card{align-items:center;padding:12px 10px;min-height:72px}
 body.channels-page .channel-card .channels-secondary-button{min-height:40px;padding:0 11px;font-size:12px}
 body.channels-page .channel-card-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}


/* Channels sidebar: show only the brand and the compact Channels descriptor. */
body.channels-page .channels-sidebar-card .channels-back-link{display:none!important}
body.channels-page #channels-more-button,
body.channels-page .top-actions .icon-button,
body.channels-page .top-actions .top-more-wrapper{display:none!important}
body.channels-page .channels-sidebar-card{padding-top:14px}
body.channels-page .channels-sidebar-title{margin-top:0}


/* External public-channel discovery */
.external-channel-search-card,
.external-channel-add-card {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border-color, rgba(255,255,255,.1));
  border-radius: 16px;
  background: var(--card-bg, rgba(255,255,255,.035));
}
.external-channel-search-label {
  display: block;
  margin-bottom: 9px;
  font-size: .88rem;
  font-weight: 800;
}
.external-channel-search-row,
.external-channel-save-form {
  display: flex;
  align-items: center;
  gap: 9px;
}
.external-channel-search-row input,
.external-channel-save-form input {
  min-width: 0;
  flex: 1;
  height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--border-color, rgba(255,255,255,.12));
  border-radius: 11px;
  outline: 0;
  background: rgba(255,255,255,.025);
  color: inherit;
  font: inherit;
}
.external-channel-search-row input:focus,
.external-channel-save-form input:focus {
  border-color: rgba(39,211,162,.48);
}
.external-platform-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.external-platform-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-color, rgba(255,255,255,.12));
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
}
.external-platform-chip.is-selected {
  border-color: rgba(39,211,162,.55);
  background: rgba(39,211,162,.12);
  color: var(--primary, #27d3a2);
}
.external-channel-note,
.external-channel-add-card > p {
  margin: 11px 0 0;
  font-size: .78rem;
  line-height: 1.5;
  opacity: .62;
}
.external-channel-add-card h3 {
  margin: 0;
  font-size: .98rem;
}
.external-channel-save-form {
  margin-top: 12px;
}
.external-saved-heading {
  margin-top: 24px;
}
.external-channel-card {
  cursor: default;
}
.external-channel-platform {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(39,211,162,.09);
  font-size: .68rem;
  font-weight: 750;
  opacity: .85;
}
.external-channel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.external-channel-actions a {
  text-decoration: none;
}
.external-channel-actions .channels-secondary-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: .76rem;
}
@media (max-width: 700px) {
  .external-channel-search-row,
  .external-channel-save-form {
    align-items: stretch;
    flex-direction: column;
  }
  .external-channel-search-row .channels-primary-button,
  .external-channel-save-form .channels-secondary-button {
    width: 100%;
  }
  .external-channel-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 7px;
  }
  .external-channel-card {
    flex-wrap: wrap;
  }
}
