:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18212f;
  background: #f5f7fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #e9e5ff, transparent 35rem), #f5f7fb; }
button, input, select { font: inherit; }
.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 56px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: white; background: #5b48d6; font-weight: 800; }
.brand p, .toolbar p { margin: 4px 0 0; color: #687386; }
.card { background: rgba(255,255,255,.94); border: 1px solid #e2e6ee; border-radius: 20px; box-shadow: 0 18px 50px rgba(36,42,66,.08); }
.login-card { width: min(480px, 100%); padding: 36px; }
h1 { margin: 8px 0 12px; font-size: clamp(28px, 5vw, 42px); line-height: 1.05; }
.eyebrow { margin: 0; color: #5b48d6; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted, .scope-note { color: #687386; line-height: 1.55; }
form, .filters { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 8px; color: #3d4655; font-weight: 650; }
input, select { width: 100%; border: 1px solid #cfd5df; border-radius: 12px; background: white; padding: 13px 14px; color: #18212f; }
input:focus, select:focus, button:focus-visible { outline: 3px solid rgba(91,72,214,.24); outline-offset: 2px; border-color: #5b48d6; }
button { border: 0; border-radius: 12px; padding: 13px 18px; color: white; background: #5b48d6; font-weight: 750; cursor: pointer; }
button.secondary { color: #4436a5; background: #eeebff; }
button:disabled { opacity: .55; cursor: wait; }
.error { color: #a7212b; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; }
.toolbar h1 { font-size: 30px; margin-bottom: 0; }
.filters { grid-template-columns: 1fr 1fr; padding: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 18px; }
.workspace { padding: 22px; }
.workspace h2 { margin: 0 0 10px; font-size: 20px; }
.workspace p { margin: 6px 0; color: #687386; }
.badge { display: inline-flex; border-radius: 999px; padding: 6px 10px; color: #4436a5; background: #eeebff; font-size: 12px; font-weight: 750; }
.scope-note { margin: 18px 4px 0; }
[hidden] { display: none !important; }

@media (max-width: 680px) {
  .shell { width: min(100% - 20px, 1080px); padding-top: 20px; }
  .brand { margin-bottom: 28px; }
  .login-card { padding: 26px 20px; }
  .toolbar, .filters { grid-template-columns: 1fr; padding: 20px; }
  .toolbar { align-items: flex-start; }
}
