/* EverlookDB Collector page: the drop box, the app and the steps that contribute.js puts under the addon page's
   intro (apage.css draws the rest). Colors come from app.css only.
   No class or id here may contain "ad", "banner" or "sponsor": ad blockers hide those. */

.cb { --measure: 72ch; margin-top: 26px; }
.cb h2 { margin: 30px 0 10px; font-size: 19px; letter-spacing: -0.01em; }
.cb p, .cb li { line-height: 1.6; }
.cb p { margin: 0 0 12px; }
.cb a { color: var(--field); }
.cb a:hover { color: var(--gold); }
.cb code {
  font: 13px/1.4 var(--code); background: var(--raise); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere;
}
.cb-count { color: var(--muted); font-size: 13.5px; margin: -6px 0 18px; min-height: 1.4em; }
.cb-count b { color: var(--text); font-variant-numeric: tabular-nums; }

/* the EverlookDB App, which uploads by itself, under the drop box */
.cb-auto {
  display: grid; gap: 8px; justify-items: start; margin-top: 24px;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--str);
  border-radius: 10px; padding: 18px 20px; max-width: var(--measure);
}
.cb-auto h2 { margin: 0; font-size: 17px; color: var(--text); }
.cb-auto p { margin: 0; }
.cb-get, .cb a.cb-get {
  /* dark ink on gold in both themes (--bg turns light in light mode); .cb a would otherwise win */
  display: inline-block; border: 1px solid var(--gold); background: var(--gold); color: #1a1405;
  font: 600 14px var(--ui); padding: 7px 14px; border-radius: 8px; text-decoration: none;
}
.cb a.cb-get:hover { color: #1a1405; filter: brightness(1.08); }
span.cb-get { opacity: .55; cursor: default; }
/* light theme: the gold is dark (#9a7300), so white text */
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] .cb-get, :root[data-theme="system"] .cb a.cb-get,
  :root[data-theme="system"] .cb a.cb-get:hover { color: #fff; }
}

/* the drop box */
.cb-drop {
  position: relative; display: grid; gap: 6px; justify-items: start;
  background: var(--panel); border: 1.5px dashed var(--line); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 18px 20px; max-width: var(--measure);
  transition: border-color .15s, background .15s;
}
.cb-drop.over { border-color: var(--gold); background: var(--raise); }
.cb-drop h2 { margin: 0; font-size: 17px; color: var(--text); }
.cb-drop p { margin: 0; color: var(--muted); font-size: 14px; }
.cb-drop .cb-path { color: var(--text); }
.cb-pick {
  margin-top: 6px; border: 1px solid var(--gold); background: var(--gold); color: var(--bg);
  font: 600 14px var(--ui); padding: 7px 14px; border-radius: 8px; cursor: pointer;
}
.cb-pick:hover { filter: brightness(1.08); }
.cb-pick:focus-visible { outline: 2px solid var(--field); outline-offset: 2px; }
.cb-pick[disabled] { opacity: .6; cursor: progress; }
.cb-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.cb-out { margin-top: 12px; max-width: var(--measure); }
.cb-out:empty { display: none; }
.cb-msg { margin: 0 0 8px; font-weight: 600; }
.cb-ok { color: var(--str); }
.cb-err { color: var(--err); }
.cb-sum {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; padding: 0; list-style: none;
}
.cb-sum li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; line-height: 1.3; }
.cb-sum b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.cb-sum span { color: var(--muted); font-size: 13px; }
.cb-note { color: var(--muted); font-size: 13.5px; }


.cb-steps { padding-left: 22px; }
.cb-steps li { margin-bottom: 8px; }
/* wide screens: the upload box and the app box side by side, so the page's right half is not left empty */
@media (min-width: 1100px) {
  .cb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; grid-auto-flow: row dense; align-items: start; }
  .cb > * { grid-column: 1 / -1; }
  .cb > .cb-drop { grid-column: 1; max-width: none; }
  .cb > .cb-auto { grid-column: 2; max-width: none; margin-top: 0; }
  .cb > .cb-out:empty { display: none; }
}
