/* Guided first movie + Media setup checklist (/js/first-title.js, 2026-11-19). */
.ft-card, .ft-modal {
  --ft-line: var(--line, var(--border, rgba(255, 255, 255, .12)));
  --ft-muted: var(--text-3, var(--text-muted, #9aa0a6));
  --ft-accent: var(--accent, #6366f1);
  --ft-ok: var(--green, #22c55e);
  --ft-warn: var(--amber, #f59e0b);
  --ft-bad: var(--red, #ef4444);
}
.ft-card.hidden, .ft-reopen.hidden { display: none; }
.ft-card {
  margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--ft-line); border-left: 3px solid var(--ft-accent);
  border-radius: 12px; background: var(--bg-card, var(--surface, rgba(255, 255, 255, .03))); color: var(--text, inherit);
  font-size: 14px; line-height: 1.45;
}
.ft-card-head, .ft-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ft-card-title, .ft-modal-head h3 { margin: 0; font-size: 1.02rem; }
.ft-muted { color: var(--ft-muted); font-size: 12.5px; }
.ft-card > .ft-muted { margin: 2px 0 8px; }
.ft-check { list-style: none; margin: 0; padding: 0; }
.ft-check-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ft-line); flex-wrap: wrap; }
.ft-check-item.is-skipped { opacity: .62; }
.ft-check-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1 1 260px; }
.ft-check-label { font-weight: 600; }
.ft-check-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ft-chip { flex: 0 0 auto; display: inline-block; min-width: 84px; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; }
.ft-chip-ok { color: var(--ft-ok); }
.ft-chip-off { color: var(--ft-muted); }
.ft-chip-warn { color: var(--ft-warn); }
.ft-chip-wait { color: var(--ft-accent); }
.ft-btn { padding: 7px 13px; border-radius: 9px; border: 1px solid var(--ft-line, rgba(255, 255, 255, .18)); background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.ft-btn:hover:not(:disabled) { border-color: var(--ft-accent, #6366f1); }
.ft-btn:disabled { opacity: .55; cursor: default; }
.ft-btn.ft-primary { background: var(--ft-accent, #6366f1); border-color: transparent; color: #fff; }
.ft-btn.ft-quiet { border-color: transparent; color: var(--ft-muted, #9aa0a6); }
.ft-btn.ft-link { border: none; padding: 0; color: var(--ft-accent, var(--accent, #6366f1)); text-decoration: underline; }
.ft-reopen { margin: 0 0 10px; font-size: 13px; }

.ft-overlay { position: fixed; inset: 0; z-index: 10040; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; }
.ft-modal {
  background: var(--surface, var(--bg-card, var(--panel, #16181d))); color: var(--text, #e8eaed); border: 1px solid var(--ft-line);
  border-radius: 14px; padding: 18px; width: calc(100% - 32px); max-width: 580px; max-height: calc(100vh - 32px); overflow: auto;
  box-sizing: border-box; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); font-size: 14px; line-height: 1.5;
}
.ft-modal p { margin: 10px 0; }
.ft-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.ft-search .ft-input { flex: 1 1 200px; width: auto; }
.ft-input { box-sizing: border-box; width: 100%; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--ft-line); background: var(--bg-input, var(--surface-2, rgba(255, 255, 255, .04))); color: inherit; font: inherit; }
.ft-intro-steps { margin: 8px 0; padding-left: 22px; }
.ft-list { list-style: none; margin: 10px 0; padding: 0; max-height: 46vh; overflow: auto; border-top: 1px solid var(--ft-line); }
.ft-list-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--ft-line); }
.ft-list-text { min-width: 0; flex: 1 1 auto; }
.ft-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ft-more { padding: 9px 2px; }
.ft-note { margin: 10px 0; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--ft-line); font-size: 13px; }
.ft-note-good { border-color: var(--ft-ok); }
.ft-note-bad { border-color: var(--ft-bad); }
.ft-movie { font-weight: 700; font-size: 1.05rem; }
.ft-steps { list-style: none; margin: 8px 0; padding: 0; }
.ft-step { padding: 9px 0 9px 4px; border-left: 2px solid var(--ft-line); margin-left: 11px; padding-left: 18px; position: relative; }
.ft-step-row { display: flex; align-items: center; gap: 10px; }
.ft-step-icon { position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--surface, #16181d); border: 2px solid var(--ft-line); box-sizing: border-box; }
.ft-step-label { font-weight: 600; }
.ft-step-word { margin-left: auto; font-size: 12px; color: var(--ft-muted); }
.ft-step-waiting .ft-step-label { color: var(--ft-muted); font-weight: 500; }
.ft-step-done .ft-step-icon { border-color: var(--ft-ok); color: var(--ft-ok); }
.ft-step-active .ft-step-icon { border-color: var(--ft-accent); color: var(--ft-accent); animation: ft-pulse 1.6s ease-in-out infinite; }
.ft-step-failed .ft-step-icon { border-color: var(--ft-bad); color: var(--ft-bad); }
.ft-step-failed .ft-step-word { color: var(--ft-bad); font-weight: 600; }
.ft-step-unknown .ft-step-icon { border-color: var(--ft-warn); color: var(--ft-warn); }
.ft-step-detail { margin-top: 4px; font-size: 13px; }
.ft-fix { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--ft-bad) 10%, transparent); font-size: 13px; }
.ft-step-unknown .ft-fix { background: color-mix(in srgb, var(--ft-warn) 10%, transparent); }
.ft-bar { margin-top: 6px; height: 6px; border-radius: 999px; background: var(--ft-line); overflow: hidden; }
.ft-bar-fill { height: 100%; background: var(--ft-accent); transition: width .4s ease; }
@keyframes ft-pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ft-accent) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .ft-step-active .ft-step-icon { animation: none; } .ft-bar-fill { transition: none; } }
@media (max-width: 520px) { .ft-chip { min-width: 0; } .ft-list-item { flex-wrap: wrap; } }
