/* notify.css —— Notify 页（D303，D257）：跑完往哪通知，是一张设置页（notify.js，假数据）。
 * 长相同 Email、Tracker 页（用户 10-19）：一块透明板，顶上标题和一句说明（同 Tracker 的 .ld-top），
 * 下面三栏 Send to · Which workflows · What you get，栏与栏一根细竖线隔开（同 Email 左栏那根），不套小卡。
 * 板子透明：不垫底色，星空透上来。各栏自己滚。 */

.nt {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: var(--border-w) solid var(--neon-25);
  border-radius: var(--radius-card);
  box-shadow: var(--glow-card);
  overflow: hidden;
}

/* ── 顶上：标题 + 一句说明 ─────────────────────────────────────────── */
.nt-head {
  flex: none;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-6) var(--space-8);
  border-bottom: var(--border-w) solid var(--neon-15);
}
.nt-title { font-size: var(--fs-lg); font-weight: var(--fw-medium); color: var(--ink); white-space: nowrap; }
.nt-lead { min-width: 0; font-size: var(--fs-note); line-height: var(--lh-base); color: var(--neon-60); }

/* ── 三栏：一样宽，各自滚 ─────────────────────────────────────────── */
.nt-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nt-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow-y: auto; padding: var(--space-7) var(--space-8) var(--space-8); scrollbar-width: none; }
.nt-col::-webkit-scrollbar { display: none; }
.nt-col + .nt-col { border-left: var(--border-w) solid var(--neon-15); }
.nt-col-head { padding-bottom: var(--space-5); }
.nt-col-t { font-size: var(--fs-ui); font-weight: var(--fw-medium); color: var(--ink); }
.nt-col-d { margin-top: var(--space-1); font-size: var(--fs-note); line-height: var(--lh-base); color: var(--neon-55); }

/* 开关旁边那个 On / Off 字（开关本身在 controls.css 的 .switch.slim） */
.nt-switch { color: var(--neon-60); }
.nt-switch input:checked ~ .nt-on { color: var(--neon); }
.nt-switch input:checked ~ .nt-off, .nt-switch input:not(:checked) ~ .nt-on { display: none; }

/* ── 左栏：一路一段，段与段一根淡线 ──────────────────────────────────── */
.nt-ch { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6) 0; border-top: var(--border-w) solid var(--neon-15); }
.nt-ch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-6); }
.nt-ch-name { font-size: var(--fs-menu); font-weight: var(--fw-medium); color: var(--ink); }
.nt-ch-desc { margin-top: var(--space-1); font-size: var(--fs-note); line-height: var(--lh-base); color: var(--neon-55); }
/* 关掉的那一路：除了开关都淡下去，开关一眼看得出能再打开 */
.nt-ch.off > :not(.nt-ch-head), .nt-ch.off .nt-ch-name, .nt-ch.off .nt-ch-desc { opacity: var(--nt-dim); }

/* Status / Sends to 一行一个（照一期 .nt-row）：左键右值 */
.nt-kv { display: flex; align-items: baseline; gap: var(--space-6); font-size: var(--fs-note); }
.nt-k { flex: none; width: var(--nt-k-w); color: var(--neon-55); }
.nt-v { display: inline-flex; align-items: center; gap: var(--space-3); min-width: 0; color: var(--chat); overflow-wrap: anywhere; }
.nt-dot { flex: none; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--neon-35); }
.nt-dot.ok { background: var(--live); box-shadow: var(--glow-live); }
.nt-dot.wait { background: var(--neon); box-shadow: var(--glow-dot); animation: nt-breathe var(--nt-beat-wait) ease-in-out infinite; }
@keyframes nt-breathe { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.nt-check { font-size: var(--fs-note); }

/* 钮比对话里的小一号（同 Workflows 卡上的钮）；Disconnect、Cancel 平时只是字，鼠标放上去才有框 */
.nt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.nt-acts .nt-ghost { border-color: transparent; background: transparent; color: var(--neon-60); }
.nt-acts .nt-ghost:hover:not(:disabled) { border-color: var(--neon-40); background: var(--neon-08); color: var(--ink); }
.nt-hint { font-size: var(--fs-label); line-height: var(--lh-base); color: var(--neon-45); }

/* ── 中栏：一个工作流一行，左名字和什么时候跑、右开关；行间一根淡线 ──────── */
.nt-wfs { display: flex; flex-direction: column; }
.nt-wf { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) 0; border-top: var(--border-w) solid var(--neon-08); }
.nt-wf:first-child { border-top-color: var(--neon-15); }
.nt-wf-text { min-width: 0; }
.nt-wf-name { display: flex; align-items: baseline; gap: var(--space-3); min-width: 0; font-size: var(--fs-note); color: var(--ink); white-space: nowrap; }
.nt-wf-name > :first-child { overflow: hidden; text-overflow: ellipsis; }
.nt-code { flex: none; font-family: var(--font-mono); font-size: var(--fs-label); color: var(--neon-45); }
.nt-wf-when { margin-top: var(--space-1); font-size: var(--fs-label); color: var(--neon-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-wf.off .nt-wf-text { opacity: var(--nt-dim); }

/* ── 右栏：Telegram | Email 两颗平行四边形钮（同 Timeline 的 Today | Schedule），底下样例原样排 ── */
.nt-prev { display: flex; flex-direction: column; gap: var(--space-5); padding-top: var(--space-6); border-top: var(--border-w) solid var(--neon-15); }
.nt-seg { display: flex; }
.nt-example {
  margin: 0;
  padding: var(--space-6) var(--space-7);
  border: var(--border-w) solid var(--neon-15);
  border-radius: var(--radius);
  background: var(--nt-example-bg);
  font-family: var(--font-mono);
  font-size: var(--fs-note);
  line-height: var(--lh-base);
  color: var(--chat);
  white-space: pre-wrap;
  word-break: break-word;
}
.nt-mail-h { color: var(--neon-60); }

/* 板子窄了三栏放不下：一栏一排，整板一起滚 */
@media (max-width: 1200px) {
  .nt-cols { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .nt-col { overflow: visible; }
  .nt-col + .nt-col { border-left: 0; border-top: var(--border-w) solid var(--neon-15); }
}
@media (max-width: 760px) {
  .nt-head, .nt-col { padding-inline: var(--space-6); }
}
