*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); scroll-behavior: smooth; }
body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  color: var(--ink-950);
  background:
    radial-gradient(circle at 8% -12%, var(--brand-glow), transparent 28rem),
    var(--canvas);
  font: 400 1rem/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
a { color: var(--brand-700); text-underline-offset: .18em; }
a:hover { color: var(--brand-800); }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .58; }
img, iframe { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink-950); line-height: 1.18; letter-spacing: -.025em; }
h1 { margin-bottom: var(--space-3); font-size: clamp(2rem, 4vw, 3.6rem); }
h2 { margin-bottom: var(--space-3); font-size: clamp(1.35rem, 2vw, 2rem); }
h3 { margin-bottom: var(--space-2); font-size: var(--text-xl); }
h4 { margin-bottom: var(--space-2); font-size: 1rem; }
p:last-child { margin-bottom: 0; }
code, pre { font-family: var(--font-mono); }
code { font-size: .88em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  padding: .82rem clamp(1rem, 4vw, 3rem) .65rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-glass);
  box-shadow: var(--shadow-topbar);
  backdrop-filter: blur(14px);
}
.topbar::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: .22rem;
  background: linear-gradient(90deg, var(--signal-700) 0 18%, var(--brand-700) 18% 100%);
  content: "";
}
.brand { display: inline-flex; align-items: center; color: var(--ink-950); text-decoration: none; }
.brand-logo { display: block; width: auto; height: 2.35rem; flex: 0 0 auto; }
.topbar-actions { display: flex; align-items: center; gap: var(--space-3); }
main { width: min(100% - 2rem, var(--content-width)); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) 0 5rem; }
.auth-main { max-width: 34rem; }
.auth-card { padding: clamp(1.25rem, 4vw, 2.25rem); }
.auth-card form { display: grid; gap: var(--space-4); }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; translate: 0 -200%; padding: .65rem 1rem; border-radius: var(--radius-sm); color: white; background: var(--ink-950); }
.skip-link:focus { translate: 0; }
.eyebrow { margin-bottom: .35rem; color: var(--brand-700); font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: .12em; text-transform: uppercase; }
.muted, .form-hint { color: var(--ink-650); }
.form-hint { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.page-heading, .workspace-header { margin-bottom: var(--space-6); }
.page-heading p, .workspace-subtitle { max-width: var(--readable-width); color: var(--ink-650); font-size: var(--text-lg); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink-650); background: var(--surface-soft); font-size: var(--text-xs); letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.compact-heading { margin-bottom: var(--space-4); }
.warning-text { color: var(--warning-800); }
@media (max-width: 680px) {
  main { width: min(100% - 1.2rem, var(--content-width)); padding-top: 1.25rem; }
  .brand-logo { height: 2rem; }
  .section-heading { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
