:root {
  --bg: #f7f8ff;
  --ink: #101522;
  --muted: #4a5671;
  --brand: #e50914;
  --brand-2: #125dff;
  --line: #d8deef;
  --card: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #d9e3ff 0, #f7f8ff 45%);
}
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.topbar { background: #101522; color: #fff; border-bottom: 2px solid #2c3550; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand-logo { width: 34px; height: 34px; border-radius: 7px; }
.app-main { padding: 22px 0 40px; }
.panel { margin-bottom: 18px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 6px 16px rgba(16, 21, 34, 0.06); }
h1,h2,h3 { margin: 0 0 10px; }
.note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.form-grid { display: grid; gap: 8px; }
.form-inline { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; margin-bottom: 10px; }
.scan-inline { grid-template-columns: 1fr 1fr auto; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  border: 1px solid #c6cfe7;
  border-radius: 10px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
}
textarea { width: 100%; resize: vertical; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
}
.btn.secondary { background: var(--brand-2); }
.btn.ghost { background: transparent; border: 1px solid #556487; color: #fff; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.privacy-box { margin-top: 16px; padding: 12px; background: #f1f5ff; border: 1px solid #d6e0fa; border-radius: 10px; }
.onboarding { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e7edff;
  overflow: hidden;
  margin: 10px 0;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), #ff8a00, var(--brand-2));
  transition: width 0.2s ease;
}
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 0.9rem;
}
.checklist-grid label {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  background: #fbfcff;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat-card .k { margin: 0; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .v { margin: 3px 0 0; font-size: 1.7rem; font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.list { list-style: none; padding: 0; margin: 12px 0 0; max-height: 220px; overflow: auto; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eef1fb; }
.site-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.site-options label { display: flex; gap: 8px; align-items: flex-start; border: 1px solid #d6ddf1; padding: 10px; border-radius: 10px; background: #fff; }
.filters {
  display: grid;
  grid-template-columns: 170px 170px 1fr 150px;
  gap: 8px;
  margin-bottom: 10px;
}
.due-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.session-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f8faff;
  margin-top: 10px;
}
.session-card h3 {
  margin: 0 0 6px;
}
.session-card p {
  margin: 6px 0;
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; border-bottom: 1px solid #eef1fb; padding: 10px 8px; vertical-align: top; }
.badge { padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; display: inline-block; }
.queued { background: #e8eefc; color: #20428f; }
.submitted { background: #fff5d7; color: #745300; }
.removed { background: #ddf8e8; color: #19663b; }
.blocked { background: #ffe2df; color: #8a1e19; }
.visible { background: #eceef3; color: #34405a; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions button, .actions a { font-size: .76rem; border-radius: 999px; padding: 6px 9px; text-decoration: none; }
.actions a { border: 1px solid #ccd5ee; color: #1c2d57; }
.confidence {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.confidence.high { background: #ddf8e8; color: #19663b; }
.confidence.medium { background: #fff5d7; color: #745300; }
.confidence.low { background: #eceef3; color: #34405a; }
@media (max-width: 940px) {
  .auth-grid, .grid-2, .stats { grid-template-columns: 1fr; }
  .form-inline { grid-template-columns: 1fr; }
  .site-options { grid-template-columns: 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
}
