/* Import (Settings) · owned by the import build. The tables are wide, so the
   section takes more room than the other settings sections. */
.set:has(> .imp){max-width:1080px}
.imp{display:flex; flex-direction:column; min-width:0}
.imp-head{display:flex; align-items:center; gap:10px; margin:2px 0 12px; min-width:0}
.imp-kinds{max-width:100%; overflow-x:auto; scrollbar-width:none}
.imp-kinds::-webkit-scrollbar{display:none}
.imp-head .g-btn svg{width:14px; height:14px}

/* the drop zone: a dashed field that lights up while a file hovers over it */
.imp-drop{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:168px; padding:22px 16px;
  border-radius:var(--r-panel); border:1.5px dashed color-mix(in srgb, var(--t3) 55%, transparent); background:var(--fill3); cursor:pointer; text-align:center;
  transition:background var(--d-state) var(--spring), border-color var(--d-state) var(--spring), transform var(--d-lift) var(--spring), min-height var(--d-seg) var(--spring)}
.imp-drop:hover{background:var(--card-hover); border-color:color-mix(in srgb, var(--t2) 60%, transparent)}
.imp-drop.over{background:var(--tint-soft); border-color:var(--tint-line); transform:scale(1.006)}
.imp-drop.over .eg{background:var(--tint-fill); color:var(--accent-on); transform:translateY(-2px)}
.imp-drop .eg{width:44px; height:44px; border-radius:14px; display:grid; place-items:center; background:var(--fill2); color:var(--t2);
  transition:background var(--d-state) var(--spring), color var(--d-state) var(--spring), transform var(--d-lift) var(--spring)}
.imp-drop .eg svg{width:20px; height:20px}
.imp-drop-t{font:600 15px/20px var(--sans); letter-spacing:-.01em; color:var(--t1)}
.imp-drop:focus-within{outline:2px solid var(--tint); outline-offset:2px}
.imp-drop.slim{flex-direction:row; min-height:56px; padding:10px 14px; gap:12px; justify-content:flex-start}
.imp-drop.slim .eg{width:32px; height:32px; border-radius:10px}
.imp-drop.slim .eg svg{width:16px; height:16px}
.imp-drop.slim .imp-drop-t{font-size:13px; font-weight:550; color:var(--t2); flex:1; text-align:left}

/* the files, one chip each */
.imp-files{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.imp-file{display:inline-flex; align-items:center; gap:8px; height:36px; max-width:100%; padding:0 6px 0 10px; border-radius:var(--r-ctl);
  background:var(--card); border:1px solid var(--card-line); box-shadow:inset 0 1px 0 var(--glass-hi); cursor:pointer; min-width:0;
  transition:background var(--d-state) var(--spring), border-color var(--d-state) var(--spring); animation:landed 460ms var(--spring) both}
.imp-file:hover{background:var(--card-hover)}
.imp-file.cur{background:var(--tint-soft); border-color:var(--tint-line)}
.imp-file.cur .nm{color:var(--tint-ink)}
.imp-file.bad .ic{color:var(--red-ink)}
.imp-file .ic{display:grid; place-items:center; color:var(--t3)}
.imp-file .ic svg{width:15px; height:15px}
.imp-file .nm{font:550 13px/18px var(--sans); max-width:220px}
.imp-file .x{width:24px; height:24px; border-radius:7px; display:grid; place-items:center; color:var(--t3); background:transparent; border:0; cursor:pointer}
.imp-file .x:hover{background:var(--fill2); color:var(--t1)}
.imp-file .x svg{width:12px; height:12px}

/* the tables: they scroll sideways inside their panel on a narrow screen */
.imp-scroll{overflow-x:auto}
.imp-scroll > table{min-width:100%}
.imp-scroll.stale{opacity:.55; transition:opacity var(--d-state) var(--spring)}
.imp-map tr.off td:first-child, .imp-map tr.off .imp-sample{color:var(--t3)}
.imp-map tr.on td:first-child .imp-col{font-weight:600}
.imp-map .imp-col{display:block; max-width:300px}
.imp-sample{max-width:340px}
.imp-sample .ell{display:block; color:var(--t2); font-size:12px}
.imp-map .g-sel{height:28px; min-width:170px; font-size:12.5px}
.imp-map tr.on .g-sel{border-color:var(--tint-line); color:var(--tint-ink)}

.imp-tiles{display:grid; grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); gap:10px; margin:0 0 12px}
.imp-tile .fig{color:var(--t1)}
.imp-tile.new .fig{color:var(--green-ink)}
.imp-tile.match .fig{color:var(--tint-ink)}
.imp-tile.skip .fig{color:var(--orange-ink)}
.imp-tile.stage .fig{color:var(--tint-ink)}
.imp-tile[title]{cursor:help}

.imp-prev td{white-space:nowrap}
.imp-prev .who .nm{max-width:240px}
.imp-prev tr.st-skipped td:not(:last-child):not(:nth-last-child(2)){color:var(--t3)}
.imp-prev tr.st-skipped .g-face, .imp-prev tr.st-skipped .g-ini{opacity:.55}
.imp-why{font-size:12px}
.imp-dom{font-size:12px; color:var(--t2)}
.imp-note .ell{display:block; max-width:420px}
.imp-deal .nm{display:block; max-width:360px}
.imp-ph{display:none}
.imp-skel .sr{grid-template-columns:28px 160px minmax(0,1fr) 56px}

/* owners and stages: the choices a preview leaves to the member */
.imp-h{margin:22px 4px 8px; align-items:center}
.imp-h b{font:650 15px/20px var(--sans); letter-spacing:-.01em}
.imp-h .g-seg{margin-left:auto}
.imp-h .imp-lost{cursor:help}
.imp-choices{transition:opacity var(--d-state) var(--spring)}
.imp-choices.stale{opacity:.55}
.imp-pipe{display:flex; align-items:center; flex-wrap:wrap; gap:6px 4px; margin:0 0 10px; padding:10px 12px; border-radius:var(--r-card);
  background:var(--fill3); border:1px solid var(--card-line)}
.imp-stage{display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 9px; border-radius:8px; background:var(--card);
  border:1px solid var(--card-line); box-shadow:inset 0 1px 0 var(--glass-hi); font:550 12.5px/16px var(--sans); color:var(--t1); white-space:nowrap}
.imp-stage .c{font:500 11px/16px var(--mono); color:var(--t3); font-variant-numeric:tabular-nums}
.imp-stage.add{background:var(--tint-soft); border-color:var(--tint-line); color:var(--tint-ink)}
.imp-stage.add .c{color:var(--tint-ink); opacity:.75}
.imp-stage.drop{background:transparent; border-style:dashed; color:var(--t3); box-shadow:none; margin-left:8px; cursor:help}
.imp-stage.drop .nm{text-decoration:line-through; text-decoration-color:color-mix(in srgb, var(--t3) 70%, transparent)}
.imp-stage.drop + .imp-stage.drop{margin-left:0}
.imp-stage[title]:not(.drop){cursor:help}
.imp-sep{display:inline-grid; place-items:center; color:var(--t3); opacity:.7}
.imp-sep svg{width:11px; height:11px}
.imp-choices .g-group{margin:0 0 4px}
.imp-own td, .imp-stg td{white-space:nowrap; vertical-align:middle}
.imp-raw{display:block; max-width:260px; font-weight:550}
.imp-pick{display:inline-flex; align-items:center; gap:8px}
.imp-own .g-sel, .imp-stg .g-sel{height:28px; min-width:170px; font-size:12.5px}
.imp-own tr.lost .imp-raw{color:var(--orange-ink)}
.imp-own tr.lost .g-sel{border-color:color-mix(in srgb, var(--orange-ink) 45%, transparent)}
.imp-owner{display:inline-flex; align-items:center; gap:6px}
.imp-dot{display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--orange-ink); box-shadow:0 0 0 3px var(--orange-soft); cursor:help; flex:0 0 auto}
.imp-owner.lost .nm{color:var(--t2)}

/* the press: a floating bar that stays in reach while the preview scrolls */
.imp-go{position:sticky; bottom:14px; z-index:3; display:flex; align-items:center; gap:10px; margin:14px 0 0; padding:8px 8px 8px 12px;
  border-radius:16px; background:color-mix(in srgb, var(--menu-solid) 86%, transparent); border:1px solid var(--card-line);
  -webkit-backdrop-filter:blur(24px) saturate(1.6); backdrop-filter:blur(24px) saturate(1.6); box-shadow:inset 0 1px 0 var(--glass-hi), var(--shadow)}
.imp-go .sum{font:400 13px/18px var(--sans); color:var(--t2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0}
.imp-go .sum b{font-weight:600; color:var(--t1)}

.imp-hist .imp-kind{font-weight:600}
.imp-hist .imp-fname{display:block; max-width:220px; font-size:12px; color:var(--t2)}
.imp-hist tr.undone td:not(.imp-act){color:var(--t3)}
.imp-hist tr.undone .g-face, .imp-hist tr.undone .g-ini{opacity:.55}
.imp-act{text-align:right; white-space:nowrap}
.imp-act .g-pill.orange{cursor:help}

@media (max-width: 430px){
  .imp-head{flex-wrap:wrap}
  .imp-drop{min-height:140px}
  .imp-file .nm{max-width:150px}
  .imp-map .g-sel{min-width:132px}
  .imp-map .imp-col{max-width:150px}
  .imp-prev .who .nm{max-width:150px}
  .imp-note .ell{max-width:150px}
  .imp-tiles{grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px}
  .imp-tiles:has(> :nth-child(4):last-child){grid-template-columns:repeat(2, minmax(0, 1fr))}
  .imp-prev .sub, .imp-deal .nm{max-width:200px}
  .imp-ph{display:inline}
  .imp-go .sum{display:none}
  .imp-tile .fig{font-size:20px; line-height:24px}
  .imp-go .g-btn.lg{flex:1}
  .imp-h{flex-wrap:wrap}
  .imp-raw{max-width:120px}
  .imp-own .g-sel, .imp-stg .g-sel{min-width:128px; max-width:150px}
  .imp-pick .g-face, .imp-pick .g-ini{display:none}
  .imp-pipe{padding:8px 10px}
}
@media (prefers-reduced-motion: reduce){
  .imp-file{animation:none}
  .imp-choices{transition:none}
  .imp-drop, .imp-drop .eg{transition:none}
}
