.channel-import-panel { color: var(--ink); min-width: 0; }
.channel-import-panel h2, .channel-import-panel h3, .channel-import-panel p { margin: 0; }
.channel-import-intro { display: grid; gap: 7px; margin-bottom: 20px; }
.channel-import-intro h2 { font-size: 18px; line-height: 1.35; }
.channel-import-intro p { max-width: 70ch; color: var(--muted); font-size: 13px; line-height: 1.55; }
.channel-import-input-row { display: flex; gap: 8px; align-items: stretch; }
.channel-import-panel input { min-width: 0; width: 100%; padding: 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); font: inherit; font-size: 13px; }
.channel-import-panel input::placeholder { color: var(--soft-muted); }
.channel-import-panel input:focus-visible, .channel-import-panel button:focus-visible, .channel-import-panel a:focus-visible, .channel-import-panel summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.channel-import-button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--ink); background: var(--surface); font: inherit; font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center; cursor: pointer; }
.channel-import-input-row .channel-import-button { flex: 0 0 auto; }
.channel-import-button:hover { background: var(--surface-muted); }
.channel-import-button-primary { border-color: transparent; background: var(--purple); color: #fff; }
.channel-import-button-primary:hover { background: var(--purple-dark); }
html[data-theme="dark"] .channel-import-button-primary { color: #15101f; }
.channel-import-button-quiet { color: var(--muted); background: transparent; }
.channel-import-button:disabled { opacity: .55; cursor: default; }
.channel-import-panel .channel-import-note { color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.channel-import-form .channel-import-note { margin-top: 8px; }
.channel-import-message { margin-top: 14px; padding: 11px 13px; border-radius: var(--radius-control); color: var(--ink); background: var(--purple-soft); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.channel-import-message-error, .channel-import-card-error { color: #a62d3c; background: #fff1f2; }
html[data-theme="dark"] .channel-import-message-error, html[data-theme="dark"] .channel-import-card-error { color: #ffb7bf; background: #38212c; }
.channel-import-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 10px; }
.channel-import-toolbar a { color: var(--purple-dark); font-size: 12px; font-weight: 700; }
.channel-import-list { display: grid; gap: 12px; }
.channel-import-card { display: grid; gap: 11px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface-soft); }
.channel-import-card-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.channel-import-card-heading h3 { min-width: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.channel-import-card-heading a { color: var(--ink); text-decoration: none; }
.channel-import-card-heading a:hover { text-decoration: underline; }
.channel-import-status { color: var(--purple-dark); font-size: 11px; font-weight: 700; line-height: 1.5; }
.channel-import-counts { color: var(--muted); font-size: 12px; line-height: 1.6; }
.channel-import-progress { display: block; width: 100%; height: 7px; appearance: none; border: 0; border-radius: 8px; background: var(--surface-muted); color: var(--purple); overflow: hidden; }
.channel-import-progress::-webkit-progress-bar { background: var(--surface-muted); }
.channel-import-progress::-webkit-progress-value { background: var(--purple); border-radius: 8px; }
.channel-import-progress::-moz-progress-bar { background: var(--purple); border-radius: 8px; }
.channel-import-confirmation { font-size: 12px; line-height: 1.65; }
.channel-import-card-error { padding: 10px 12px; border-radius: var(--radius-control); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.channel-import-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.channel-import-items { display: grid; gap: 12px; max-height: 350px; overflow-y: auto; margin: 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); }
.channel-import-items li { display: grid; gap: 3px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.channel-import-items a { color: var(--purple-dark); }
.channel-import-items small { color: var(--muted); font-size: 11px; }
.channel-import-empty { padding: 12px 0; }
.channel-import-access { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.channel-import-access summary { width: fit-content; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.channel-import-access > p { margin-top: 10px; }
.channel-import-access form { display: grid; gap: 10px; margin-top: 12px; }
.channel-import-access .field-label { margin: 0; }
@media (max-width: 520px) {
  .channel-import-input-row { flex-direction: column; }
  .channel-import-input-row .channel-import-button { width: 100%; }
  .channel-import-card { padding: 12px; }
  .channel-import-card-heading { flex-direction: column; }
  .channel-import-actions > .channel-import-button { flex: 1 1 140px; }
}
