:root {
  --font-serif: "Instrument Serif", "Spectral", Georgia, serif;
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2.125rem;
  --fs-3xl: 2.875rem;
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-base: 1.6;
  --canvas: #fbfcfe;
  --surface: #ffffff;
  --surface-2: #f4f8fb;
  --surface-3: #eaf1f7;
  --ink: #102a43;
  --ink-2: #14304f;
  --muted: #5c7186;
  --faint: #93a3b4;
  --line: #e4ecf3;
  --line-strong: #d3e0ea;
  --accent: #2d7fb8;
  --accent-ink: #20689b;
  --accent-weak: #e8f2f9;
  --accent-line: #bbd9ec;
  --glow: #5bc0eb;
  --positive: #1f9d72;
  --positive-weak: #e4f4ee;
  --warn: #c08a23;
  --warn-weak: #f9f0dc;
  --danger: #cf5050;
  --danger-weak: #fae9e9;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, 0.05);
  --shadow: 0 1px 3px rgba(16, 42, 67, 0.05), 0 8px 24px rgba(16, 42, 67, 0.06);
  --shadow-lg: 0 18px 48px rgba(16, 42, 67, 0.14);
  --ring: 0 0 0 3px var(--accent-weak);
  --r-xs: 5px;
  --r-sm: 7px;
  --r: 10px;
  --r-lg: 14px;
  --r-full: 999px;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sidebar-w: 256px;
  --topbar-h: 60px;
  --content-max: 1180px;
  --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  background-image: radial-gradient(1200px 520px at 82% -12%, rgba(91, 192, 235, 0.1), transparent 60%), radial-gradient(900px 460px at -8% 4%, rgba(45, 127, 184, 0.06), transparent 58%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.018em;
  color: var(--ink);
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  font-size: var(--fs-3xl);
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-lg);
}

h4 {
  font-size: var(--fs-md);
}

p {
  line-height: var(--lh-base);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-ink);
}

small {
  font-size: var(--fs-sm);
}

code, kbd, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: var(--accent-weak);
  color: var(--accent-ink);
}

img, svg, video {
  display: block;
  max-width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-5) 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: var(--sp-4);
  z-index: 40;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2) var(--sp-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sidebar__brand .mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-logo {
  width: auto;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__section {
  margin-top: var(--sp-5);
  padding: 0 var(--sp-2) var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: var(--fs-base);
  transition: background var(--transition), color var(--transition);
}

.nav__link svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.nav__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav__link.is-active {
  background: var(--accent-weak);
  color: var(--accent-ink);
}

.nav__link.is-active svg {
  opacity: 1;
}

.sidebar__footer {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-5);
  background: rgba(251, 252, 254, 0.78);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
}

.topbar__spacer {
  flex: 1;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px;
  cursor: pointer;
  color: var(--ink);
}

.content {
  padding: var(--sp-6) var(--sp-5);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  flex: 1;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.page-head__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.page-head h1 {
  font-size: var(--fs-3xl);
}

.page-head__sub {
  color: var(--muted);
  margin-top: var(--sp-2);
  font-size: var(--fs-md);
}

.page-head__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 27, 36, 0.4);
  z-index: 35;
  opacity: 0;
  transition: opacity var(--transition);
}

@media (max-width: 880px) {
  .app {
    grid-template-columns: 1fr;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, var(--sidebar-w));
    transform: translateX(-100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .app.nav-open .sidebar {
    transform: translateX(0);
  }
  .app.nav-open .scrim {
    display: block;
    opacity: 1;
  }
  .content {
    padding: var(--sp-5) var(--sp-4);
  }
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: var(--sp-5);
}

@media (min-width: 920px) {
  .auth {
    grid-template-columns: 1.05fr 1fr;
    place-items: stretch;
  }
}
.auth__aside {
  display: none;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: var(--sp-8) var(--sp-7);
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(120% 80% at 88% 6%, rgba(91, 192, 235, 0.42) 0%, transparent 52%), radial-gradient(90% 70% at 0% 100%, rgba(45, 127, 184, 0.45) 0%, transparent 55%), linear-gradient(160deg, #14304f 0%, #0c2340 60%, #091b32 100%);
}

@media (min-width: 920px) {
  .auth__aside {
    display: flex;
  }
}
.auth__aside > * {
  position: relative;
  z-index: 2;
}

.auth__aside h2 {
  color: #fff;
  font-size: var(--fs-3xl);
  max-width: 18ch;
}

.auth__aside p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
  margin-top: var(--sp-4);
}

.auth__aside .auth__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
}

.auth__aside .auth__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px), radial-gradient(circle at 22% 34%, rgba(91, 192, 235, 0.9) 0 1.6px, transparent 2.4px), radial-gradient(circle at 68% 22%, rgba(255, 255, 255, 0.7) 0 1.3px, transparent 2.2px), radial-gradient(circle at 82% 58%, rgba(91, 192, 235, 0.7) 0 1.5px, transparent 2.4px), radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.5) 0 1.2px, transparent 2px);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  -webkit-mask-image: radial-gradient(140% 120% at 50% 0%, #000, transparent 80%);
  mask-image: radial-gradient(140% 120% at 50% 0%, #000, transparent 80%);
}

.auth__aside::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(128deg, transparent 42%, rgba(91, 192, 235, 0.16) 42.2% 42.5%, transparent 42.7%), linear-gradient(60deg, transparent 58%, rgba(255, 255, 255, 0.1) 58.2% 58.4%, transparent 58.6%), linear-gradient(to top, rgba(12, 35, 64, 0.6), transparent);
  clip-path: polygon(0 100%, 0 64%, 18% 38%, 33% 56%, 52% 20%, 70% 50%, 84% 30%, 100% 58%, 100% 100%);
}

.auth__panel {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  align-self: center;
  padding: var(--sp-5) 0;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: var(--topbar-h);
  padding: 0 var(--sp-5);
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.public-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
}

.public-nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

@media (max-width: 600px) {
  .public-nav__links a.linklike {
    display: none;
  }
}
.public-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--sp-8);
  padding: var(--sp-6) 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  min-height: 42px;
  padding: 0 var(--sp-5);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:active {
  transform: translateY(0.5px);
}

.btn:disabled, .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.12), 0 6px 18px -6px rgba(45, 127, 184, 0.5);
}

.btn--primary:hover {
  background: var(--accent-ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 42, 67, 0.14), 0 10px 26px -6px rgba(45, 127, 184, 0.6);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
}

.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--danger:hover {
  background: #b53a3a;
  color: #fff;
}

.btn--sm {
  min-height: 34px;
  padding: 0 var(--sp-3);
  font-size: var(--fs-sm);
}

.btn--lg {
  min-height: 50px;
  padding: 0 var(--sp-5);
  font-size: var(--fs-md);
}

.btn--block {
  width: 100%;
}

.btn--google {
  background: #fff;
  color: #1f1f1f;
  border-color: #747775;
  font-family: Roboto, var(--font-body);
  font-weight: 500;
}

.btn--google:hover {
  background: #f8fafd;
  color: #1f1f1f;
}

.btn--apple {
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--font-body);
  font-weight: 500;
}

.btn--apple:hover {
  background: #1d1d1f;
  color: #fff;
}

.btn--microsoft {
  background: #fff;
  color: #5e5e5e;
  border-color: #8c8c8c;
  font-weight: 600;
}

.btn--microsoft:hover {
  background: var(--surface-2);
  color: #5e5e5e;
}

.btn--google svg, .btn--microsoft svg {
  width: 18px;
  height: 18px;
}

.btn--apple svg {
  width: 18px;
  height: 20px;
  margin-top: -3px;
}

.federation {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.federation__or {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.federation__or::before, .federation__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

a.card:hover, .card--interactive:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.card__body {
  padding: var(--sp-5);
}

.card__head {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.card__head h3 {
  font-size: var(--fs-md);
}

.card__foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 var(--r) var(--r);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--sp-4);
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.stat__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.stat__value {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-top: var(--sp-3);
  color: var(--ink);
}

.stat__delta {
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  margin-top: var(--sp-2);
}

.stat__delta.up {
  color: var(--positive);
}

.stat__delta.down {
  color: var(--danger);
}

.field {
  margin-bottom: var(--sp-4);
}

.field__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: var(--sp-2);
}

.field__hint {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: var(--sp-2);
}

.field__error {
  font-size: var(--fs-sm);
  color: var(--danger);
  margin-top: var(--sp-2);
}

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0 var(--sp-3);
  min-height: 44px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.textarea {
  padding: var(--sp-3);
  min-height: 110px;
  line-height: var(--lh-snug);
  resize: vertical;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.input::placeholder, .textarea::placeholder {
  color: var(--faint);
}

.input.is-invalid, .select.is-invalid, .textarea.is-invalid {
  border-color: var(--danger);
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235c7186' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  padding-right: var(--sp-6);
}

.input-group {
  display: flex;
  gap: var(--sp-2);
}

.input-group .input {
  flex: 1;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-base);
  cursor: pointer;
}

.check input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--accent {
  background: var(--accent-weak);
  color: var(--accent-ink);
  border-color: var(--accent-line);
}

.badge--positive {
  background: var(--positive-weak);
  color: var(--positive);
  border-color: transparent;
}

.badge--warn {
  background: var(--warn-weak);
  color: var(--warn);
  border-color: transparent;
}

.badge--danger {
  background: var(--danger-weak);
  color: var(--danger);
  border-color: transparent;
}

.badge--neutral {
  background: var(--surface-2);
  color: var(--muted);
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
}

.table thead th {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.table tbody td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr {
  transition: background var(--transition);
}

.table tbody tr:hover {
  background: var(--surface-2);
}

.table td.mono, .table td .mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .table.responsive thead {
    display: none;
  }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td {
    display: block;
    width: 100%;
  }
  .table.responsive tr {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--line);
  }
  .table.responsive td {
    border: 0;
    padding: var(--sp-1) 0;
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
  }
  .table.responsive td::before {
    content: attr(data-label);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--faint);
  }
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--accent-weak);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  font-family: var(--font-display);
  flex: 0 0 auto;
}

.avatar--sm {
  width: 28px;
  height: 28px;
  font-size: var(--fs-xs);
}

.avatar--lg {
  width: 52px;
  height: 52px;
  font-size: var(--fs-md);
}

.userchip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2);
  border-radius: var(--r-sm);
}

.userchip__meta {
  min-width: 0;
}

.userchip__name {
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.userchip__sub {
  font-size: var(--fs-xs);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toasts {
  position: fixed;
  top: calc(var(--topbar-h) + var(--sp-3));
  right: var(--sp-4);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: min(360px, 100vw - 2 * var(--sp-4));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3) var(--sp-4);
  animation: toast-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast--notice {
  border-left-color: var(--positive);
}

.toast--alert, .toast--error {
  border-left-color: var(--danger);
}

.toast__body {
  flex: 1;
  font-size: var(--fs-sm);
}

.toast__close {
  background: none;
  border: 0;
  color: var(--faint);
  cursor: pointer;
  padding: 2px;
}

.toast.is-leaving {
  animation: toast-out 200ms ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(12px);
  }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(23, 27, 36, 0.45);
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  animation: fade-in 160ms ease;
}

.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: min(540px, 100%);
  max-height: 90dvh;
  overflow: auto;
  animation: modal-in 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal__head {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__body {
  padding: var(--sp-5);
}

.modal__foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.empty {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--muted);
}

.empty__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--sp-4);
  color: var(--faint);
}

.empty h3 {
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.alert {
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  border: 1px solid var(--line);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.alert--notice {
  background: var(--positive-weak);
  border-color: transparent;
  color: #166b48;
}

.alert--alert, .alert--error {
  background: var(--danger-weak);
  border-color: transparent;
  color: #9c2f2f;
}

.alert--info {
  background: var(--accent-weak);
  border-color: transparent;
  color: var(--accent-ink);
}

.dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.dl__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.dl__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dl__key {
  color: var(--muted);
}

.dl__val {
  font-weight: 600;
  text-align: right;
}

.codebox {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  word-break: break-all;
}

.codebox code {
  flex: 1;
}

.kanban {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  padding-bottom: var(--sp-4);
}

.kanban__col {
  flex: 0 0 280px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 220px);
}

.kanban__colhead {
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--line);
}

.kanban__count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 1px 8px;
}

.kanban__list {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  overflow-y: auto;
  flex: 1;
  min-height: 40px;
}

.kanban__list.is-over {
  background: var(--accent-weak);
  border-radius: var(--r-sm);
}

.kanban-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.is-dragging {
  opacity: 0.5;
}

.kanban-card__name {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.kanban-card__meta {
  color: var(--muted);
  font-size: var(--fs-xs);
  margin-top: var(--sp-1);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
}

.kanban-card__val {
  font-family: var(--font-mono);
}

.timeline {
  position: relative;
  padding-left: var(--sp-5);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--sp-5);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-5) + 2px);
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}

.timeline__meta {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.timeline__body {
  margin-top: var(--sp-1);
}

.tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-5);
  overflow-x: auto;
}

.tab {
  padding: var(--sp-3) var(--sp-3);
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-base);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.is-featured {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
  position: relative;
}

.price-card.is-featured::after {
  content: "Popular";
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-weak);
  padding: 2px 10px;
  border-radius: var(--r-full);
}

.price-card__amount {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}

.price-card__per {
  color: var(--muted);
  font-size: var(--fs-base);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.price-card li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-base);
}

.price-card li svg {
  width: 18px;
  height: 18px;
  color: var(--positive);
  flex: 0 0 auto;
  margin-top: 1px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.stack > * + * {
  margin-top: var(--sp-4);
}

.stack-sm > * + * {
  margin-top: var(--sp-2);
}

.stack-lg > * + * {
  margin-top: var(--sp-6);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.row--between {
  justify-content: space-between;
}

.row--wrap {
  flex-wrap: wrap;
}

.col {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
  gap: var(--sp-4);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}
.grid--main-aside {
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 880px) {
  .grid--main-aside {
    grid-template-columns: 1fr;
  }
}
.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: var(--sp-2);
}

.mt-4 {
  margin-top: var(--sp-4);
}

.mt-6 {
  margin-top: var(--sp-6);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: var(--sp-2);
}

.mb-4 {
  margin-bottom: var(--sp-4);
}

.mb-6 {
  margin-bottom: var(--sp-6);
}

.text-muted {
  color: var(--muted);
}

.text-faint {
  color: var(--faint);
}

.text-sm {
  font-size: var(--fs-sm);
}

.text-xs {
  font-size: var(--fs-xs);
}

.text-lg {
  font-size: var(--fs-lg);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-positive {
  color: var(--positive);
}

.text-danger {
  color: var(--danger);
}

.mono {
  font-family: var(--font-mono);
}

.display {
  font-family: var(--font-display);
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nowrap {
  white-space: nowrap;
}

.fw-600 {
  font-weight: 600;
}

.flex-1 {
  flex: 1;
}

.full {
  width: 100%;
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .hide-mobile {
    display: none !important;
  }
}
@media (min-width: 721px) {
  .show-mobile {
    display: none !important;
  }
}
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: var(--sp-4) 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.tag-link {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.kbd {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  padding: 1px 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-1 {
  animation-delay: 60ms;
}

.reveal-2 {
  animation-delay: 130ms;
}

.reveal-3 {
  animation-delay: 200ms;
}

.reveal-4 {
  animation-delay: 270ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}
