/* FillScope — Terms of Service acceptance gate (see terms-gate.js). */
html.fs-tg-lock, html.fs-tg-lock body { overflow: hidden; }

.fs-tg {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 11, 18, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
}

.fs-tg-box {
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 28px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.fs-tg-title { margin: 0 0 10px; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; color: #0b1220; }
.fs-tg-body { margin: 0 0 8px; color: #374151; }
.fs-tg-meta { margin: 0 0 18px; font-size: 0.85rem; color: #6b7280; }
.fs-tg a { color: #4f46e5; text-decoration: underline; }

.fs-tg-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 0 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 0.93rem;
  color: #111827;
}
.fs-tg-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: #4f46e5; cursor: pointer; }

.fs-tg-accept {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.fs-tg-accept:disabled { opacity: 0.4; cursor: not-allowed; }
.fs-tg-accept:not(:disabled):hover { background: #1f2937; }
.fs-tg-accept:focus-visible, .fs-tg-check input:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }

.fs-tg-error { margin: 10px 0 0; color: #b91c1c; font-size: 0.88rem; }
.fs-tg-foot { margin: 14px 0 0; font-size: 0.8rem; color: #6b7280; }

/* Public demo bar (/api/auth/demo) */
#fs-demo-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 9998; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  justify-content: center; max-width: calc(100vw - 24px);
  padding: 10px 16px; border-radius: 12px;
  background: #18181b; color: #fafafa; border: 1px solid #3f3f46;
  font: 500 13px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
#fs-demo-bar a {
  color: #18181b; background: #fafafa; text-decoration: none;
  padding: 5px 12px; border-radius: 8px; font-weight: 600;
}
#fs-demo-bar a:hover { background: #e4e4e7; }
#fs-demo-bar a.fs-demo-trial { background: transparent; color: #fafafa; border: 1px solid #71717a; }
#fs-demo-bar a.fs-demo-trial:hover { background: #27272a; }
