/* Biz Finder — plain static styles. No framework, no build. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f5f7; color: #1a1d21; }
.hidden { display: none !important; }
.muted { color: #5f6b7a; }
.small { font-size: 12px; }
.error { color: #b3261e; }
a { color: #0a66c2; }
h1, h2, h3 { margin: 0 0 8px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; margin-top: 16px; }

/* Login */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; padding: 28px; width: 100%; max-width: 380px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.login-card form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.login-card label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }

/* Top bar */
.topbar { background: #0b1f3a; color: #fff; display: flex; align-items: center; gap: 16px; padding: 10px 16px; position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 17px; }
.topbar-sub { color: #cdd7e4; }
.userbox { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-left: auto; }

/* Buttons, inputs */
.btn { background: #fff; border: 1px solid #c9d1da; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 14px; color: #1a1d21; text-decoration: none; display: inline-block; }
.btn.primary { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.danger { color: #b3261e; border-color: #e5b4b0; }
.btn:disabled { opacity: .55; cursor: default; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #c9d1da; border-radius: 8px; background: #fff; }
textarea { min-height: 70px; width: 100%; resize: vertical; }

/* Layout */
.tool { padding: 16px; max-width: 1240px; margin: 0 auto; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.card { background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.stat { background: #fff; border: 1px solid #dfe3e8; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.stat b { font-size: 18px; display: block; }

/* Search panels */
.search-panel { background: #eef4fb; border-color: #b9d2ec; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; align-items: end; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid .check { flex-direction: row; align-items: center; gap: 6px; }
.form-row { display: contents; }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 14px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; overflow: hidden; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef0f2; vertical-align: top; }
.data-table th { background: #f7f8fa; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5f6b7a; }
.data-table tr:last-child td { border-bottom: none; }
.status-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: #e8eef4; color: #33507a; }
.status-pill.queued { background: #e8eef4; color: #33507a; }
.status-pill.researching { background: #fff3d6; color: #7a5b00; }
.status-pill.done { background: #d9f2e3; color: #17603a; }
.kind-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: #e3dcf9; color: #4b2e83; }
.verified-yes { color: #17603a; font-weight: 600; }
.verified-no { color: #8a5a00; font-weight: 600; }
.link { color: #0a66c2; text-decoration: underline; word-break: break-all; }

@media (max-width: 720px) {
  .tool { padding: 10px; }
  .topbar { gap: 8px; }
  .userbox { margin-left: 0; }
  .data-table { font-size: 13px; }
}
