/* Frameless direction: hierarchy comes from space and type, never containers. */
body {
  background: #fff;
}

.topbar {
  border: 0;
  background: rgba(255, 255, 255, .9);
}

.brand-symbol {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
}

.brand-symbol i {
  width: 12px;
  height: 12px;
  background: var(--accent);
}

.quiet-button,
.icon-button {
  border: 0;
  background: transparent;
}

.quiet-button:hover,
.icon-button:hover {
  border: 0;
  background: #f5f5f8;
}

.operator-badge {
  color: #676a73;
  background: transparent;
}

.auth-gate {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding-inline: max(40px, calc((100vw - 1180px) / 2));
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.auth-gate > :not(.dot-grid) {
  position: relative;
  z-index: 1;
}

.dot-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .82;
}

.auth-intro {
  min-height: auto;
  padding: 30px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-intro h1 {
  max-width: 760px;
  margin-top: 0;
  font-size: clamp(58px, 7.4vw, 112px);
  letter-spacing: 0;
}

.auth-intro .split-reveal span {
  color: inherit;
}

.split-reveal .split-line {
  display: block;
  overflow: hidden;
  padding: .04em .08em .09em 0;
  margin: -.04em -.08em -.09em 0;
}

.split-line .split-unit + .split-unit {
  margin-left: .075em;
}

.auth-intro .split-reveal .split-accent {
  color: var(--accent);
}

.split-unit {
  display: inline-block;
  animation: splitRise .82s cubic-bezier(.16, 1, .3, 1) backwards;
  animation-delay: var(--split-delay);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--hover-delay);
  will-change: transform, opacity;
}

.split-reveal:hover .split-unit {
  transform: translateY(-.045em);
}

@keyframes splitRise {
  from {
    opacity: 0;
    transform: translateY(112%) rotate(1.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.auth-card {
  padding: 0;
}

.auth-card h2 {
  margin-top: 0;
}

.auth-card > small:empty {
  display: none;
}

.auth-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: none;
}

input,
select {
  border: 0;
  border-radius: 0;
  background: #f5f5f7;
}

input:focus,
select:focus {
  border: 0;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.auth-card input {
  border-bottom: 1px solid #dfe0e5;
  background: transparent;
}

.primary-button {
  border-radius: 999px;
  box-shadow: none;
}

.primary-button:hover {
  box-shadow: none;
}

.auth-submit {
  --magnet-x: 0px;
  --magnet-y: 0px;
  --label-x: 0px;
  --label-y: 0px;
  --arrow-x: 0px;
  --arrow-y: 0px;
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
  transition: transform .48s cubic-bezier(.16, 1, .3, 1), background .25s;
  will-change: transform;
}

.auth-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255,255,255,.3), transparent 38%);
  opacity: 0;
  transition: opacity .24s;
}

.auth-submit:hover {
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
}

.auth-submit:hover::before {
  opacity: 1;
}

.auth-submit span,
.auth-submit b {
  position: relative;
  transition: transform .42s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

.auth-submit span {
  transform: translate3d(var(--label-x), var(--label-y), 0);
}

.auth-submit b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: #fff;
  transform: translate3d(var(--arrow-x), var(--arrow-y), 0);
}

.auth-submit:active {
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0) scale(.985);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 1;
}

.auth-submit[data-state="loading"] {
  background: #7771f7;
}

.auth-submit[data-state="success"] {
  background: #25865c;
}

.auth-submit[data-state="error"] {
  background: #c94f59;
}

.auth-submit[data-state="loading"] #authButtonIcon {
  color: transparent;
}

.auth-submit[data-state="loading"] #authButtonIcon::after {
  content: "";
  width: 11px;
  height: 11px;
  position: absolute;
  border: 2px solid rgba(98,91,246,.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: authSpin .72s linear infinite;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

.workspace {
  width: min(1320px, calc(100% - 56px));
  padding-top: 56px;
}

.metrics {
  margin-top: 54px;
  gap: clamp(28px, 6vw, 90px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.metrics article {
  min-height: 76px;
  padding: 0;
  border: 0 !important;
}

.metrics strong {
  font-size: 32px;
}

.capacity-notice {
  padding-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.catalog {
  margin-top: 70px;
}

.search {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #dedfe4;
  background: transparent;
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: none;
}

.search input {
  background: transparent;
}

.table-wrap {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

th {
  padding-inline: 0;
  background: transparent;
}

td {
  padding: 20px 0;
  border-top: 1px solid #ececf0;
}

tbody tr:hover {
  background: transparent;
}

.project-icon {
  border-radius: 50%;
  background: #f0efff;
}

.status {
  padding-inline: 0;
  color: var(--green);
  background: transparent;
}

.version-select {
  padding-left: 0;
  background: transparent;
  box-shadow: none;
}

.actions a,
.actions button {
  width: 64px;
  flex: 0 0 64px;
  justify-content: center;
  padding-inline: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}

.actions .open {
  border: 0;
  border-radius: 0;
  color: #2563eb;
  background: transparent;
}

.actions .open:hover {
  color: #1d4ed8;
  background: transparent;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.refresh-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty {
  border-top: 1px solid #ececf0;
}

.empty > span {
  background: transparent;
}

dialog::backdrop {
  background: rgba(30, 31, 36, .22);
}

.modal {
  border: 0;
  border-radius: 0;
  box-shadow: 0 30px 100px rgba(20, 21, 28, .13);
}

.close {
  border: 0;
  background: transparent;
}

.slug-input {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #dfe0e5;
}

.slug-input:focus-within {
  border-color: var(--accent);
  box-shadow: none;
}

.slug-input input {
  background: transparent;
}

#publisher[readonly] {
  background: #f5f5f7;
}

.drop-zone {
  border: 0;
  border-radius: 0;
  background: #f6f6f8;
}

.drop-zone:hover,
.drop-zone.over {
  border: 0;
  background: #f0efff;
}

.drop-zone i {
  border-radius: 50%;
}

.new-code {
  border: 0;
  border-radius: 0;
}

.new-code button,
.member-row button {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.member-list,
.audit-list {
  border-top: 0;
}

.member-row,
.audit-row {
  border-bottom-color: #eeeeF1;
}

@media (max-width: 980px) {
  .auth-gate {
    grid-template-columns: 1fr;
    padding-inline: max(24px, calc((100vw - 720px) / 2));
  }

  .auth-intro {
    padding-top: 54px;
  }

  .dot-grid {
    opacity: .66;
  }

  tbody tr {
    border-top-color: #ececf0;
  }
}

@media (max-width: 620px) {
  .workspace {
    width: calc(100% - 34px);
  }

  .metrics {
    gap: 0;
  }

  .metrics article {
    padding-block: 14px;
  }

  .modal {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .split-unit {
    animation: none;
    transition: none;
  }
}
