/* Chrome around the existing explorer: login, home, boot banner.
   styles.css is the untouched explorer stylesheet; nothing here overrides it
   except hiding the single-pass picker. */

.shell-body { margin: 0; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f6f7f9; color: #1d2129; }

/* ---- login ---- */
.auth-card { max-width: 340px; margin: 12vh auto; background: #fff; padding: 28px;
  border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.06); }
.auth-card h1 { margin: 0 0 4px; font-size: 20px; }
.auth-sub { margin: 0 0 20px; color: #6b7280; font-size: 13px; }
.auth-card label { display: block; margin: 12px 0 4px; font-size: 12px; font-weight: 600;
  color: #374151; }
.auth-card input { width: 100%; padding: 9px 10px; border: 1px solid #d1d5db;
  border-radius: 7px; font-size: 14px; }
.auth-card button { width: 100%; margin-top: 18px; padding: 10px; border: 0;
  border-radius: 7px; background: #111827; color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; }
.auth-card button:disabled { opacity: .6; cursor: default; }

/* ---- home ---- */
.shell-top { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.shell-top h1 { margin: 0; font-size: 16px; }
.shell-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #6b7280; }
.shell-user button { border: 1px solid #d1d5db; background: #fff; border-radius: 6px;
  padding: 5px 10px; cursor: pointer; font-size: 12px; }
.shell-main { max-width: 760px; margin: 28px auto; padding: 0 16px; }

.search-card, .list-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px; margin-bottom: 18px; }
.search-card h2, .list-card h2 { margin: 0 0 14px; font-size: 14px; }
#search-form { display: flex; gap: 8px; }
#search-form input { flex: 1; padding: 9px 11px; border: 1px solid #d1d5db;
  border-radius: 7px; font-size: 14px; }
#search-form button { padding: 9px 20px; border: 0; border-radius: 7px; background: #111827;
  color: #fff; font-weight: 600; cursor: pointer; }
#search-form button:disabled { opacity: .6; cursor: default; }
.hint { margin: 10px 0 0; font-size: 12px; color: #6b7280; }
.err { margin: 10px 0 0; font-size: 13px; color: #b91c1c; }
.hidden { display: none !important; }

#analyses { list-style: none; margin: 0; padding: 0; }
.an-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid #f0f1f3; }
.an-row:last-child { border-bottom: 0; }
.an-main { min-width: 0; }
.an-addr { display: block; font-weight: 600; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.an-date { display: block; font-size: 12px; color: #9ca3af; }
.an-right { display: flex; align-items: center; gap: 10px; flex: none; }
.an-open { padding: 5px 13px; border-radius: 6px; background: #111827; color: #fff;
  text-decoration: none; font-size: 12px; font-weight: 600; }
.an-badge { font-size: 12px; }
.an-badge.running { color: #b45309; }
.an-badge.error { color: #b91c1c; }
.an-del { border: 0; background: none; color: #9ca3af; font-size: 18px; line-height: 1;
  cursor: pointer; padding: 0 2px; }
.an-del:hover { color: #b91c1c; }

/* ---- explorer chrome ---- */
#back-link { color: inherit; text-decoration: none; font-size: 18px; margin-right: 12px;
  opacity: .65; }
#back-link:hover { opacity: 1; }
#boot-status { position: fixed; inset: 0; display: flex; align-items: center;
  justify-content: center; background: #f6f7f9; color: #6b7280; font: 14px system-ui;
  z-index: 9999; padding: 0 24px; text-align: center; }
/* Single cluster pass, so the picker has nothing to pick. Hidden here rather than
   in app.js, which stays byte-identical to the generator's copy. */
#pass-picker { display: none !important; }

/* ---- address autocomplete ---- */
.ac-wrap { position: relative; flex: 1; }
.ac-wrap input { width: 100%; }
.ac-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
  margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.10); max-height: 260px;
  overflow-y: auto; }
.ac-item { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item:hover, .ac-item.active { background: #f3f4f6; }
