/* "Move from Chub" (/import-chub, mockup design-refs/chub-import-mockup.html). Builds on style.css, gallery.css and
   cards.css. Colours only from the named tokens in style.css. */
.chi-main { max-width: 860px; }
.chi-lead { margin: 6px 0 18px; font-size: 14px; }
.chi-step { padding: 16px; margin-bottom: 14px; min-width: 0; }
.chi-h { margin: 0 0 10px; color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.chi-step p { margin: 8px 0; }
.chi-ok { color: var(--ok); font-weight: 700; overflow-wrap: anywhere; }
.chi-other { margin-top: 6px; }
body.vf .chi-other .link { padding: 0 2px !important; font-size: inherit; color: var(--gold); }
body.vf .chi-step .small { font-size: 13px; }   /* also "small muted" (cards.css makes .muted inherit) */
.chi-name-row input { flex: 1 1 200px; min-width: 0; }

.chi-code-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.chi-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 1px; padding: 10px 14px; border-radius: 8px;
  background: var(--field); border: 1px dashed var(--gold-soft); color: var(--gold); user-select: all; word-break: break-all; }
.chi-howto { margin: 8px 0; padding-left: 22px; line-height: 1.6; font-size: 14px; }

/* Step 2: the three things to bring, as ticked rows */
.chi-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); cursor: pointer; min-width: 0; font-weight: 400; color: var(--text); }
.chi-choice.on { border-color: var(--gold); }
.chi-choice.off { cursor: default; opacity: .65; }
body.vf .chi-choice input, body.vf .chi-opt input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--gold); }
.chi-choice-text { flex: 1; min-width: 0; }
.chi-choice-text b { display: block; font-size: 15px; }
.chi-choice-text .small { display: block; }
.chi-found { margin-left: auto; color: var(--gold); font-size: 13px; text-align: right; flex: 0 1 auto; max-width: 40%; }
.chi-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0; font-weight: 400; color: var(--text); cursor: pointer; }

/* Step 3 */
.chi-go { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chi-progress { height: 10px; border-radius: 6px; background: var(--field); overflow: hidden; margin: 4px 0 6px; }
.chi-progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transition: width .3s; }
.chi-run-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.chi-after { flex-basis: 100%; margin: 4px 0 0 !important; }
.chi-details { margin-top: 10px; }
.chi-details summary { cursor: pointer; color: var(--muted); }
.chi-list { max-height: 50vh; overflow-y: auto; font-size: 13px; margin-top: 6px; }
.chi-row { padding: 7px 0; border-top: 1px solid var(--line); }
.chi-row:first-child { border-top: none; }
.chi-row-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.chi-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chi-status { text-align: right; flex: none; max-width: 65%; }
.chi-status.ok { color: var(--ok); }
.chi-status.err { color: var(--danger); }
.chi-warn { color: var(--warn); }

@media (max-width: 640px) {
  .chi-step { padding: 14px 12px; }
  .chi-code { font-size: 15px; }
  .chi-choice { flex-wrap: wrap; }
  .chi-found { flex-basis: 100%; max-width: none; text-align: left; margin-left: 32px; }
  .chi-row-line { flex-direction: column; gap: 2px; }
  .chi-status { text-align: left; max-width: none; }
}
