/* Import-a-list sheet (js/ui/import-dialog.js). Builds on dialog.css. */

.sheet.tall { max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; }

.field textarea {
  border: 2px solid var(--lilac); border-radius: var(--r-sm); background: var(--bg);
  padding: 12px 14px; font: inherit; font-size: 15.5px; line-height: 1.5; resize: vertical;
  min-height: 150px; outline: 0; min-width: 0; color: var(--ink);
}
.field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px var(--lilac-50); }

.import-note { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.import-error { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--danger); }

.import-working { display: grid; justify-items: center; gap: var(--s3); padding: var(--s8) 0; text-align: center; }
.import-working p { margin: 0; font-weight: 700; color: var(--ink-2); }
.import-working svg.mascot { width: 120px; height: 100px; }
svg.rolling { animation: roll 1.1s ease-in-out infinite alternate; }

.source-badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: var(--r-pill); padding: 2px 10px; background: var(--lilac-50); color: var(--purple); }
.source-badge.rules { background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

.import-excluded { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.import-excluded small { font-weight: 500; opacity: .85; }

.import-rows { display: grid; gap: var(--s2); grid-template-columns: minmax(0, 1fr); }
.import-row {
  display: flex; align-items: flex-start; gap: var(--s3); min-width: 0;
  background: var(--bg); border-radius: var(--r); padding: var(--s3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.import-row.missing-row { background: #FFFBEB; box-shadow: inset 0 0 0 1px #F5E3A3; }
.import-row .img { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font-size: 26px; flex: none; }
.import-row .meta { flex: 1; min-width: 0; display: grid; gap: 3px; }
.import-row .nm { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.import-row select {
  width: 100%; min-width: 0; border: 0; border-radius: var(--r-sm); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--lilac); padding: 7px 8px; font-weight: 700; font-size: 14px;
}
.import-row .br { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.import-row .from { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.import-row .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.import-row .ctl { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.import-row .x { border: 0; background: none; color: var(--ink-3); font-size: 22px; line-height: 1; width: 34px; height: 30px; border-radius: 8px; }
.import-row .x:hover { background: var(--danger-50); color: var(--danger); }

/* basket editor: brands this list excludes */
.exclude-banner { display: flex; align-items: center; gap: var(--s2); font-size: 13px; font-weight: 700; color: var(--danger); background: var(--danger-50); border-radius: var(--r-pill); padding: 6px 14px; align-self: flex-start; }
