/* ---------- settings: channels, watermark ---------- */
.settings-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; margin-bottom: 20px; }
.settings-grid > .card { margin-bottom: 0; }

.channel-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-top: 1px dashed var(--line); flex-wrap: wrap; }
.channel-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1; }
.channel-main b { margin-right: 6px; }
.ch-av { width: 38px; height: 38px; font-size: 15px; background: linear-gradient(135deg, #ff3b3b, #d10f2f); }
.channel-edit { flex-basis: 100%; }
.channel-edit[open] { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.channel-edit summary { list-style: none; display: inline-flex; }
.channel-edit summary::-webkit-details-marker { display: none; }
.channel-edit:not([open]) { flex-basis: auto; }
.channel-form label:first-of-type { margin-top: 10px; }

.wm-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; }
.wm-phone { position: relative; width: 150px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  border: 6px solid #12132a; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #e9e7ff 0 10px, #f5f4ff 10px 20px); }
.wm-phone img { position: absolute; height: auto; max-width: 60%; }
.wm-phone.pos-tl img { top: 4%; left: 4%; }
.wm-phone.pos-tr img { top: 4%; right: 4%; }
.wm-phone.pos-bl img { bottom: 4%; left: 4%; }
.wm-phone.pos-br img { bottom: 4%; right: 4%; }
.wm-grid input[type=range] { width: 100%; margin-top: 8px; }
select { appearance: auto; }

@media (max-width: 1000px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .wm-grid { grid-template-columns: 1fr; } .wm-phone { margin: 0 auto; } }
.clip-preview { width: 100%; max-height: 180px; background: #000; border-radius: 10px; margin-bottom: 8px; }

/* project tools */
.rule-preview { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px dashed var(--line); }
.rule-preview div { font-weight: 600; margin-top: 4px; word-break: break-word; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-color: var(--err-bg); }
.btn.danger { color: var(--err); border-color: var(--err-bg); }
.btn.danger:hover { background: var(--err-bg); border-color: var(--err); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 22px; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.bulk-bar[hidden] { display: none; }
