/* Feature styles (notifications, setup, system health, channels). Uses the Evergreen & Ember tokens from app.css only. */

/* ---- Notifications (inbox, preferences) ---- */
.notif-list ul.plain { margin: 0; padding: 0; list-style: none; }
.notif { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: 0; }
.notif-unread .notif-title { font-weight: 600; }
.notif-read .notif-title { font-weight: 400; color: var(--text-2); }
.notif.notif-warn { border-left: 3px solid var(--warn); padding-left: 14px; }
.notif.notif-critical { border-left: 3px solid var(--bad); padding-left: 14px; }
@media (max-width: 700px) { .notif { flex-wrap: wrap; } .notif-actions { justify-content: flex-start; } }
.notif-main { min-width: 0; overflow-wrap: anywhere; }
.notif-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.notif-snooze { display: inline-flex; gap: 4px; align-items: center; }
.notif-snooze select { width: auto; min-height: 0; padding: 4px 6px; font-size: var(--fs-sm); }
.notif-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.notif-tabs .tab { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); text-decoration: none; }
.notif-tabs .tab.active { background: var(--subtle); color: var(--text); border-color: var(--border-strong); font-weight: 600; }
@media (max-width: 640px) { .notif { flex-direction: column; } .notif-actions { justify-content: flex-start; } }

/* ---- Setup checklist ---- */
.setup-progress-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.setup-bar { width: 100%; height: 12px; border-radius: 999px; overflow: hidden; accent-color: var(--ok); }
.setup-list { display: grid; gap: 12px; margin-top: 12px; }
.setup-item-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.setup-item p { margin: 6px 0 10px; }
.setup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.setup-done, .setup-skipped { opacity: .8; }
.tile progress.tile-progress { width: 100%; height: 6px; accent-color: var(--ok); }

/* ---- System health ---- */
.health-summary { display: flex; align-items: center; gap: 10px; }
.health-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; background: var(--muted); }
.health-dot-ok { background: var(--ok); }
.health-dot-warn { background: var(--warn); }
.health-dot-bad { background: var(--bad); }
.health-table td { vertical-align: top; }
.health-log code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-sm); }
.health-row-fail td:first-child { border-left: 3px solid var(--bad); }
.health-row-warn td:first-child { border-left: 3px solid var(--warn); }
/* Dashboard tile tone, for tiles that carry tone => ok|warn|bad (system health) */
.tile.tone-ok { border-top: 3px solid var(--ok); }
.tile.tone-warn { border-top: 3px solid var(--warn); }
.tile.tone-bad { border-top: 3px solid var(--bad); }

/* ---- Reminders / create task ---- */
.create-task-link { white-space: nowrap; }

/* ---- platform guest pages (sign-up honeypot, workspace picker) ---- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ws-pick { margin: 0 0 10px; }
.plan-pick { border: 0; padding: 0; margin: 14px 0 4px; }
.plan-pick legend { font-weight: 600; margin-bottom: 6px; }

/* ---- Channel connections (app/views/channels/_live.php, assets/channels.js) ---- */
.ch-grid { align-items: start; }
.ch-section { margin-top: var(--sp-4); }
.ch-gap { margin-top: var(--sp-4); }
.ch-msg:empty { display: none; }
.ch-msg { margin: 10px 0 0; color: var(--text-2); }
.ch-msg.ok { color: var(--ok); } .ch-msg.bad { color: var(--bad); }
.ch-fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-4); min-width: 0; }
.ch-fieldset legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font-weight: 500; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.ch-chip:hover { border-color: var(--border-strong); }
.ch-chip:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-soft-ink); }
.ch-chip input { margin: 0; }
.ch-caps { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.ch-cap { padding: 10px 0; border-bottom: 1px solid var(--border); }
.ch-cap:last-child { border-bottom: 0; }
.ch-cap-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ch-cap .small { margin-top: 3px; overflow-wrap: anywhere; }
.ch-off { opacity: .6; }
[data-ch-live].ch-busy { opacity: .7; transition: opacity var(--t-fast); }
.ch-keys .secret-set { color: var(--ok); font-weight: 600; }

/* ---- Product photos (app/views/catalog/_media.php) and Motion Studio server parts (app/views/motion/*, prefix mo-) ---- */
.media-section { margin-top: var(--sp-4); }
.media-head { margin-bottom: var(--sp-2); }
.media-grid { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); }
.media-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.media-item.is-primary { border-color: var(--primary); }
.media-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--wash); }
.media-meta { padding: 8px 10px 4px; display: grid; gap: 2px; min-width: 0; }
.media-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-actions { display: flex; gap: 6px; padding: 6px 10px 10px; flex-wrap: wrap; }
.media-forms { align-items: start; }
.mo-assets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }
.mo-asset { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.mo-asset video, .mo-asset img.mo-poster { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #111; }
.mo-asset-body { padding: 10px 12px; display: grid; gap: 4px; }
.mo-asset-actions { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; align-items: center; }
.mo-asset-actions select { max-width: 130px; }
.mo-quota { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-3); }
.mo-quota .mo-meter { flex: 1 1 200px; max-width: 320px; height: 10px; }
.mo-snippet { position: relative; }
.mo-snippet pre { max-height: 360px; overflow: auto; font-size: 12px; line-height: 1.45; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--wash); white-space: pre; }
.mo-snippet .mo-copy { position: absolute; top: 8px; right: 8px; }
.mo-test { max-width: 320px; }
.mo-test video { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #111; border-radius: var(--radius); }
.mo-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mo-channels li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
