@import url("/static/fonts.css");
:root {
  color-scheme: dark;
  --bg: #12091f;
  --primary: #a855f7;
  --secondary: #d946ef;
  --on-primary: #12091f;
  --page-text: #fff;
  --panel: #1b1328;
  --panel-light: #241a33;
  --border: #ffffff10;
  --text: #f4edff;
  --muted: #afa1bf;
  --green: #68deb0;
  --radius: 20px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(
      ellipse at 65% -15%,
      color-mix(in srgb, var(--primary) 12%, transparent),
      transparent 50%
    ),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled,
fieldset:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 650;
}
h2 {
  font-size: 19px;
  font-weight: 650;
}
h3 {
  font-size: 17px;
}
small {
  font-size: 12px;
}
strong {
  font-weight: 600;
}
img {
  max-width: 100%;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
input,
select {
  min-width: 0;
}
input:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #e3c2ff;
  outline-offset: 4px;
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.17em;
  color: #c4afd9;
  margin-bottom: 15px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  filter: brightness(1.13);
  transform: translateY(-1px);
}
.primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 5px 25px color-mix(in srgb, var(--primary) 15%, transparent);
}
.subtle {
  background: #ffffff05;
  border-color: #ffffff14;
  color: var(--text);
}
.compact {
  min-height: 36px;
  font-size: 12px;
  padding: 7px 12px;
}
.full {
  width: 100%;
}
.icon-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
}
.icon-button:hover {
  background: #ffffff08;
  color: #fff;
}
.symbol-box {
  display: inline-flex;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 14%, var(--panel));
  color: #d6b7ff;
  flex-shrink: 0;
}
.symbol-box.pink {
  background: color-mix(in srgb, var(--secondary) 12%, var(--panel));
  color: #f0b6ed;
}
.symbol-box.small {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid #ffffff13;
  background: var(--panel);
  color: var(--muted);
}
.pill .icon {
  width: 16px;
  height: 16px;
  color: #d4b5f2;
}
.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #c0a76d;
  flex-shrink: 0;
}
.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 4px #68deb010;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  padding: 31px 20px 0;
  background: #140e1e;
  border-right: 1px solid #ffffff09;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}
.brand strong {
  font-size: 25px;
  letter-spacing: -0.06em;
}
.brand small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.17em;
  color: var(--muted);
  margin-top: -3px;
}
.workspace-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 11px;
  border: 1px solid #ffffff0c;
  border-radius: 12px;
  background: #ffffff03;
  margin: 34px 0 31px;
}
.workspace-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.workspace-card strong {
  font-size: 12px;
}
.workspace-card small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.workspace-dot {
  width: 5px;
  height: 5px;
  background: #827589;
  border-radius: 50%;
  margin-left: auto;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #9586a7;
  padding-left: 12px;
  margin-bottom: 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 10px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.nav-item:hover {
  background: #ffffff05;
  color: #fff;
}
.nav-item.active {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary) 23%, #191021),
    color-mix(in srgb, var(--primary) 9%, #191021)
  );
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  color: #fff;
  padding: 10px 12px;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 60px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 12px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #ffffff03;
}
.connection strong {
  font-size: 11px;
}
.connection small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff0d;
  padding: 20px 0;
}
.account > div {
  flex: 1;
  min-width: 0;
}
.account strong {
  font-size: 11px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account small {
  font-size: 10px;
  color: var(--muted);
}
.account .icon-button {
  padding: 8px;
  min-width: 36px;
}
.avatar-letter {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: linear-gradient(135deg, #744692, #b95a92);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.main {
  margin-left: 252px;
  padding: 0 38px 24px;
  max-width: 1800px;
}
.topbar {
  height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--page-text) 9%, transparent);
  font-size: 11px;
  color: var(--page-text);
}
.topbar > span:first-child {
  opacity: 0.72;
}
.topbar strong {
  font-weight: 500;
}
.breadcrumb-slash {
  padding: 0 13px;
  opacity: 0.4;
}
.private-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  opacity: 0.65;
}
.private-badge .icon {
  height: 14px;
  width: 14px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 25px;
  color: var(--page-text);
}
.page-heading p:not(.eyebrow) {
  margin-top: 9px;
  font-size: 12px;
  opacity: 0.65;
}
.page-heading .eyebrow {
  color: inherit;
  opacity: 0.6;
  font-size: 9px;
  margin-bottom: 9px;
}
.heading-dot {
  color: var(--secondary);
}
.hero {
  position: relative;
  min-height: 300px;
  background:
    radial-gradient(
      ellipse at 75% 30%,
      color-mix(in srgb, var(--secondary) 19%, transparent),
      transparent 55%
    ),
    linear-gradient(110deg, #241332, #251236 60%, #22122e);
  display: flex;
  align-items: center;
  padding: 35px 38px;
  border-color: color-mix(in srgb, var(--primary) 22%, #22142e);
}
.hero-copy {
  z-index: 2;
}
.hero .eyebrow {
  font-size: 9px;
  color: #dfb8ef;
}
.hero h2 {
  font-size: clamp(28px, 3vw, 41px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.hero p:not(.eyebrow) {
  font-size: 12px;
  color: #c2abcf;
  margin: 16px 0 21px;
  line-height: 1.7;
}
.hero .button {
  font-size: 11px;
  min-height: 40px;
  padding: 10px 15px;
}
.hero-art {
  position: absolute;
  right: 5%;
  top: -10px;
  bottom: -10px;
  width: 310px;
  display: grid;
  place-items: center;
}
.hero-art img {
  position: relative;
  width: 280px;
  filter: drop-shadow(0 0 30px #c574f51c);
  z-index: 1;
}
.orbit {
  position: absolute;
  border: 1px solid #dca6f315;
  border-radius: 50%;
  width: 270px;
  height: 270px;
  transform: rotate(-25deg);
}
.orbit-two {
  width: 345px;
  height: 200px;
  transform: rotate(-38deg);
}
.hero-star {
  position: absolute;
  color: #e0b8f5;
}
.star-one {
  left: 0;
  top: 32%;
  font-size: 30px;
}
.star-two {
  right: 0;
  bottom: 22%;
  font-size: 22px;
}
.hero-caption {
  position: absolute;
  bottom: 15px;
  right: 30px;
  color: #bca0d3;
  font-size: 7px;
  letter-spacing: 0.22em;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.stat {
  padding: 20px;
}
.stat-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 18px;
}
.stat-title .icon {
  width: 16px;
  height: 16px;
  color: #a38cb7;
}
.stat-value {
  display: block;
  font-size: 29px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 600;
}
.stat-value.status-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
}
.stat small {
  display: block;
  margin-top: 12px;
  color: #a391b5;
  font-size: 10px;
}
.unit {
  font-size: 13px;
  color: var(--muted);
  padding-left: 4px;
}
.stat-action {
  position: relative;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}
.stat-action:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background-color: color-mix(in srgb, var(--primary) 5%, var(--panel));
  transform: translateY(-2px);
}
.stat-action:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.stat-action-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  color: #c1a7d4;
  font-size: 9px;
}
.stat-action-label .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}
.stat-action:hover .stat-action-label .icon {
  transform: translateX(3px);
}
body.dialog-open {
  overflow: hidden;
}
.detail-dialog {
  width: min(620px, calc(100% - 36px));
  max-height: min(720px, calc(100dvh - 40px));
  padding: 0;
  overflow: visible;
  color: var(--text);
  background: transparent;
  border: 0;
}
.detail-dialog::backdrop {
  background: #08040cc7;
  backdrop-filter: blur(7px);
}
.dialog-card {
  display: flex;
  max-height: min(720px, calc(100dvh - 40px));
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0, color-mix(in srgb, var(--primary) 15%, transparent), transparent 38%),
    #1c1226;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
  border-radius: 20px;
  box-shadow: 0 30px 90px #0009;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 28px 22px;
  border-bottom: 1px solid #ffffff0a;
}
.dialog-heading .eyebrow {
  color: var(--secondary);
  font-size: 8px;
  margin-bottom: 8px;
}
.dialog-heading h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
}
.dialog-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin-top: 7px;
}
.dialog-close {
  color: #bba7c9;
  font-size: 25px;
  font-weight: 300;
}
.dialog-body {
  overflow-y: auto;
  padding: 12px 28px 20px;
  overscroll-behavior: contain;
}
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-list > li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #ffffff09;
}
.detail-list > li:last-child {
  border-bottom: 0;
}
.detail-list > li > div:not(.detail-user) {
  min-width: 0;
  flex: 1;
}
.detail-list strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-list small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.detail-avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #e2c7f6;
  font-size: 13px;
  font-weight: 650;
  background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 28%, #21142d), #21142d);
  border: 1px solid #ffffff0c;
  border-radius: 11px;
}
.user-server-list > li {
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
}
.detail-user {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
}
.detail-user > div {
  min-width: 0;
}
.server-memberships {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 46px;
}
.server-memberships span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: #cdb7da;
  font-size: 9px;
  background: color-mix(in srgb, var(--primary) 9%, #170e20);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 7px;
}
.server-memberships .icon {
  width: 11px;
  height: 11px;
  color: #89d6b7;
}
.server-memberships > small {
  margin: 0;
  color: #8f7a9e;
}
.dialog-note {
  padding: 14px 28px;
  color: #8f7d9c;
  font-size: 9px;
  line-height: 1.55;
  background: #120b19a6;
  border-top: 1px solid #ffffff08;
}
.container-health {
  margin: 31px 0 22px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  padding: 0 3px;
  color: var(--page-text);
}
.section-heading .eyebrow {
  color: var(--secondary);
  font-size: 8px;
  margin-bottom: 7px;
}
.section-heading h2 {
  font-size: 19px;
  letter-spacing: -0.035em;
}
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.live-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.health-card {
  min-width: 0;
  padding: 19px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--primary) 10%, transparent), transparent 45%),
    var(--card);
}
.health-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a995b9;
  font-size: 8px;
  letter-spacing: 0.1em;
}
.health-card-top .symbol-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.health-card strong {
  display: block;
  overflow: hidden;
  margin-top: 17px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.health-card strong span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.health-card progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 14px 0 10px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 20px;
  background: #0e0816;
}
.health-card progress::-webkit-progress-bar {
  background: #0e0816;
  border-radius: 20px;
}
.health-card progress::-webkit-progress-value {
  border-radius: 20px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.health-card progress::-moz-progress-bar {
  border-radius: 20px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.health-card small {
  color: var(--muted);
  font-size: 9px;
}
.database-size {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid #ffffff0a;
  color: var(--muted);
  font-size: 9px;
}
.database-size b {
  color: #c6b8cf;
  font-size: 10px;
  font-weight: 500;
}
.runtime-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  padding: 12px 5px 0;
  color: #8e7d9a;
  font-size: 8px;
}
.runtime-strip b {
  color: #b5a4c1;
  font-weight: 500;
  margin-left: 4px;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 25px 20px;
}
.card-heading h2 {
  font-size: 16px;
  letter-spacing: -0.025em;
}
.card-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.card-heading > .icon {
  color: #b199c4;
  width: 18px;
}
.activity-list {
  list-style: none;
  padding: 0 25px 20px;
  margin: 0;
}
.activity-list li {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid #ffffff08;
}
.activity-marker {
  background: #aa73cf12;
  border: 1px solid #dca6f314;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
}
.activity-marker .icon {
  width: 13px;
  height: 13px;
  color: #c19ddd;
}
.activity-list strong {
  font-size: 11px;
}
.activity-list p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.activity-list time {
  font-size: 9px;
  color: #a18caf;
  display: block;
  margin-top: 5px;
}
.audit-detail {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.audit-detail code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10px;
  padding: 10px;
  background: #0003;
  border-radius: 8px;
  margin-top: 8px;
}
.quick-link {
  margin: 0 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
  border-top: 1px solid #ffffff08;
}
.quick-link > div {
  flex: 1;
}
.quick-link strong {
  font-size: 12px;
}
.quick-link p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.quick-link > .icon {
  width: 16px;
  color: #b49cc9;
}
.quick-link:hover strong {
  color: #dfb8ff;
}
.coming-next {
  margin: 6px 24px 24px;
  padding: 20px;
  border: 1px dashed #c29ad02a;
  border-radius: 12px;
  background: linear-gradient(120deg, #a855f707, #d946ef05);
}
.coming-next .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
  color: #ba9dcf;
}
.coming-next h3 {
  font-size: 13px;
}
.coming-next p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.65;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--page-text);
  opacity: 0.5;
  font-size: 9px;
  margin-top: 28px;
  padding-top: 8px;
}
.footer-dot {
  margin: 0 8px;
}
.empty-state {
  text-align: center;
  padding: 40px 25px;
  color: var(--muted);
}
.empty-state > .icon {
  width: 30px;
  height: 30px;
  opacity: 0.6;
  margin-bottom: 15px;
}
.empty-state h3 {
  font-size: 14px;
  color: var(--text);
}
.empty-state p {
  font-size: 11px;
  margin-top: 8px;
}
.notice {
  padding: 14px 18px;
  background: #c49b4d12;
  border: 1px solid #c49b4d3b;
  border-radius: 12px;
  color: #e7cd9b;
  font-size: 12px;
  margin: 0 0 20px;
}
.notice.success {
  background: #68deb00b;
  border-color: #68deb026;
  color: #9be6ca;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-card form {
  padding: 0 25px 25px;
}
.form-card .notice {
  margin: 0 25px 20px;
}
.form-card label:not(.checkbox):not(.permission-row) {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.form-card label > input:not([type="checkbox"]):not([type="color"]),
select,
.invite-card input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  background: #130d1d;
  border: 1px solid #ffffff16;
  color: var(--text);
  padding: 11px 13px;
  border-radius: 9px;
  margin-top: 8px;
  min-height: 44px;
}
.form-card label > small,
.invite-card label > small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 7px;
  display: block;
}
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 6px 0 25px;
}
.avatar-upload > img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  border: 1px solid #ffffff13;
  border-radius: 20px;
  background: #100b18;
}
.avatar-upload > div {
  flex: 1;
  min-width: 0;
}
.avatar-upload small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-top: 8px;
}
.file-label input {
  max-width: 100%;
  font-size: 10px;
  margin-top: 5px !important;
  padding: 6px !important;
}
.file-label input::file-selector-button {
  background: #342243;
  border: 0;
  color: #f4edff;
  border-radius: 5px;
  padding: 7px;
  margin-right: 10px;
  cursor: pointer;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 400;
}
.checkbox input,
.permission-row > input {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
}
.avatar-upload .checkbox {
  margin-top: 12px;
  font-size: 10px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #ffffff0d;
  margin-top: 23px;
  padding-top: 20px;
}
.form-actions > .muted {
  font-size: 10px;
  max-width: 60%;
}
.profile-preview {
  text-align: center;
  background:
    radial-gradient(
      ellipse at 50% 30%,
      color-mix(in srgb, var(--primary) 17%, transparent),
      transparent 65%
    ),
    var(--panel);
  padding: 28px 20px;
}
.profile-preview > .eyebrow {
  font-size: 8px;
}
.preview-orb {
  display: grid;
  place-items: center;
  height: 178px;
}
.preview-orb img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}
.profile-preview h2 {
  font-size: 22px;
  margin-top: 16px;
}
.bot-tag {
  font-size: 8px;
  letter-spacing: 0.03em;
  vertical-align: middle;
  padding: 3px 5px;
  border-radius: 4px;
  background: #6450a5;
  color: #fff;
}
.profile-preview p:not(.eyebrow) {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0 18px;
}
.access-badge {
  display: inline-block;
  font-size: 10px;
  border-radius: 6px;
  padding: 4px 8px;
  color: #e4c188;
  background: #e4c18810;
  border: 1px solid #e4c18814;
  white-space: nowrap;
}
.access-badge.enabled {
  color: #89d6b7;
  background: #68deb00c;
  border-color: #68deb01a;
}
.theme-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 45px;
  padding: 6px 0;
}
.color-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.color-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.color-controls input[type="color"] {
  height: 37px;
  width: 42px;
  border: 1px solid #ffffff18;
  background: #130d1d;
  padding: 4px;
  border-radius: 7px;
  cursor: pointer;
}
.color-controls input[type="text"] {
  width: 102px;
  background: #130d1d;
  color: #f4edff;
  border: 1px solid #ffffff18;
  border-radius: 7px;
  padding: 8px 10px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.help-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin: 18px 0;
  line-height: 1.7;
}
.main > .help-text {
  color: var(--page-text);
  opacity: 0.7;
}
.help-text .icon {
  width: 16px;
  margin-top: 1px;
}
.theme-preview {
  border: 1px solid #ffffff18;
  border-radius: 12px;
  background: var(--preview-bg, var(--bg));
  color: var(--preview-text, var(--page-text));
  overflow: hidden;
  align-self: start;
}
.preview-topline {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  font-size: 8px;
  letter-spacing: 0.13em;
  border-bottom: 1px solid currentColor;
}
.preview-topline > span {
  opacity: 0.7;
}
.preview-content {
  display: flex;
  padding: 15px;
  gap: 15px;
}
.preview-mini-sidebar {
  width: 50px;
  border-right: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  padding-right: 10px;
}
.preview-mini-sidebar span {
  display: block;
  height: 7px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.15;
  margin: 12px 0;
}
.preview-mini-sidebar span:first-child {
  background: var(--preview-primary, var(--primary));
  opacity: 1;
}
.preview-mini-main {
  flex: 1;
  min-width: 0;
}
.preview-mini-label {
  font-size: 8px;
  opacity: 0.6;
}
.preview-mini-main h3 {
  font-size: 17px;
  margin: 4px 0 12px;
}
.preview-gradient {
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(
    100deg,
    var(--preview-primary, var(--primary)),
    var(--preview-secondary, var(--secondary))
  );
}
.preview-tiles {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.preview-tiles span {
  flex: 1;
  height: 22px;
  background: currentColor;
  opacity: 0.08;
  border-radius: 4px;
}
.preview-button {
  font-size: 8px;
  padding: 7px 9px;
  display: inline-block;
  border-radius: 5px;
  background: var(--preview-primary, var(--primary));
  color: var(--preview-on-primary, var(--on-primary));
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  padding: 12px 22px;
  color: #b4a0c5;
  background: #ffffff02;
  border-top: 1px solid #ffffff08;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
td {
  padding: 17px 22px;
  border-top: 1px solid #ffffff08;
}
td:last-child {
  text-align: right;
}
.table-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-user strong {
  font-size: 11px;
}
.table-user small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.count {
  font-size: 10px;
  padding: 3px 7px;
  background: #ffffff09;
  border-radius: 5px;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 5px;
}
.invite-card {
  margin-top: 20px;
  scroll-margin-top: 85px;
}
.invite-card form {
  padding: 0 25px 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.form-grid label {
  font-size: 12px;
}
.permission-row {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #ffffff0a;
  padding: 18px 0;
}
.permission-row > span {
  flex: 1;
}
.permission-row strong {
  font-size: 12px;
}
.permission-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.permission-row code {
  font-size: 10px;
  color: var(--muted);
}
.access-toggle {
  padding-bottom: 24px;
}
.form-card #custom-permissions > h3 {
  margin-top: 25px;
  font-size: 15px;
}
.form-card #custom-permissions > p {
  font-size: 11px;
  margin-top: 7px;
}
.centered-card {
  max-width: 640px;
  margin: 65px auto;
  padding: 55px 30px;
  text-align: center;
}
.centered-card .eyebrow {
  margin-top: 20px;
}
.centered-card h1 {
  font-size: 32px;
}
.centered-card p:not(.eyebrow) {
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.centered-card code {
  display: block;
  margin: 20px 0;
  color: #d3b4e7;
}
.public-main {
  max-width: 1400px;
  margin: auto;
  padding: 45px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.public-main > .page-footer {
  margin-top: auto;
  padding-top: 40px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 70px;
  flex: 1;
  align-items: center;
}
.login-story {
  position: relative;
  padding: 0 0 25px;
  align-self: stretch;
  min-height: 690px;
  color: var(--page-text);
}
.login-story > .brand {
  margin-bottom: 70px;
}
.login-story > .brand strong {
  font-size: 16px;
  letter-spacing: -0.025em;
}
.login-story > .brand img {
  width: 45px;
  height: 45px;
}
.login-story > .eyebrow {
  color: inherit;
  opacity: 0.65;
}
.login-story h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.06;
  font-weight: 620;
}
.login-story h1 span {
  color: var(--secondary);
}
.login-story > p {
  font-size: 13px;
  opacity: 0.68;
  margin-top: 20px;
}
.login-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 300px;
  max-width: 400px;
  margin: 10px auto 0;
}
.login-art img {
  height: 300px;
  position: relative;
}
.login-panel {
  padding: 44px 38px;
  background:
    radial-gradient(ellipse at 100% 0%, #a855f711, transparent 65%),
    var(--panel);
  max-width: 450px;
}
.login-panel > .eyebrow {
  margin-top: 28px;
  font-size: 9px;
}
.login-panel h2 {
  font-size: 35px;
}
.login-panel > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0 28px;
}
.login-panel .notice {
  margin: 20px 0 0;
}
.login-note {
  border-top: 1px solid #ffffff0c;
  margin-top: 26px;
  padding-top: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #a896b8;
  font-size: 10px;
}
.login-note .icon {
  width: 18px;
}
.songripper-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 285px;
  margin-bottom: 20px;
  padding: 36px 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 45%, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 38%),
    linear-gradient(120deg, #241332, #1c1027);
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
}
.songripper-intro {
  position: relative;
  z-index: 2;
  max-width: 520px;
}
.songripper-intro .eyebrow {
  color: #dfb8ef;
  font-size: 8px;
}
.songripper-intro h2 {
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.songripper-intro > p:not(.eyebrow) {
  max-width: 460px;
  margin-top: 16px;
  color: #bba9c6;
  font-size: 11px;
  line-height: 1.75;
}
.songripper-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  color: #aa94b9;
  font-size: 9px;
}
.songripper-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.songripper-trust .icon {
  width: 12px;
  height: 12px;
  color: #89d6b7;
}
.songripper-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
}
.songripper-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  background: repeating-radial-gradient(circle, #2d1a3b 0 5px, #251530 6px 9px, #3a1d4b 10px 11px);
  border: 1px solid #ffffff14;
  border-radius: 50%;
  box-shadow: 0 25px 65px #0008, 0 0 55px color-mix(in srgb, var(--primary) 16%, transparent);
  transform: rotate(-10deg);
}
.songripper-disc::before {
  position: absolute;
  width: 64px;
  height: 64px;
  content: "";
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  border: 8px solid #1b1024;
  border-radius: 50%;
}
.songripper-disc span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--on-primary);
}
.songripper-disc .icon {
  width: 17px;
  height: 17px;
}
.songripper-wave {
  position: absolute;
  right: 2px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 7px 10px;
  background: #120a1ba8;
  border: 1px solid #ffffff0d;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.songripper-wave i {
  width: 3px;
  height: 10px;
  background: linear-gradient(var(--secondary), var(--primary));
  border-radius: 4px;
}
.songripper-wave i:nth-child(2),
.songripper-wave i:nth-child(6) {
  height: 20px;
}
.songripper-wave i:nth-child(3),
.songripper-wave i:nth-child(5) {
  height: 28px;
}
.songripper-wave i:nth-child(4) {
  height: 16px;
}
.songripper-workspace {
  padding: 24px;
}
.songripper-url-form > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  color: #d2c3db;
  font-size: 11px;
  font-weight: 600;
}
.songripper-url-form > label small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.songripper-url-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.songripper-url-row input {
  min-width: 0;
  min-height: 45px;
  flex: 1;
  padding: 10px 13px;
  color: var(--text);
  background: #120b1a;
  border: 1px solid #ffffff13;
  border-radius: 10px;
}
.songripper-url-row input::placeholder {
  color: #776681;
}
.songripper-url-row .button {
  min-width: 130px;
}
.songripper-progress-wrap {
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid #ffffff09;
}
.songripper-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 9px;
  color: #9f8ead;
  font-size: 9px;
}
.songripper-progress-heading b {
  color: #c7b3d4;
  font-size: 9px;
  font-weight: 550;
}
#songripper-status.error {
  color: #e798a7;
}
#songripper-progress {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  appearance: none;
  background: #0c0711;
  border: 0;
  border-radius: 10px;
}
#songripper-progress::-webkit-progress-bar {
  background: #0c0711;
  border-radius: 10px;
}
#songripper-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--primary), var(--secondary), #f29cda);
  background-size: 200% 100%;
  border-radius: 10px;
  transition: width 0.25s ease;
}
#songripper-progress.processing::-webkit-progress-value {
  animation: songripper-progress-glow 1.2s linear infinite;
}
#songripper-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
}
@keyframes songripper-progress-glow {
  to {
    background-position: -200% 0;
  }
}
.songripper-result {
  scroll-margin-top: 25px;
}
.songripper-track-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 20px 0 30px;
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--primary) 10%, transparent), transparent 45%),
    var(--panel);
}
.songripper-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  overflow: hidden;
  color: #bfa2d2;
  background: linear-gradient(145deg, #2b1738, #160d1f);
  border: 1px solid #ffffff12;
  border-radius: 15px;
}
.songripper-cover > .icon {
  width: 30px;
  height: 30px;
}
.songripper-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.songripper-track-copy {
  min-width: 0;
  flex: 1;
}
.songripper-track-copy .eyebrow {
  color: var(--secondary);
  font-size: 8px;
}
.songripper-track-copy h2 {
  overflow: hidden;
  font-size: 22px;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.songripper-track-copy > p:not(.eyebrow) {
  margin-top: 6px;
  color: #ad9aba;
  font-size: 11px;
}
.songripper-track-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
  margin-top: 15px;
  color: #8f7c9d;
  font-size: 9px;
}
.songripper-track-meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c1a4d3;
}
.songripper-track-meta .icon {
  width: 12px;
  height: 12px;
}
.songripper-section-heading {
  margin-bottom: 14px;
  color: var(--page-text);
}
.songripper-section-heading .eyebrow {
  color: var(--secondary);
  font-size: 8px;
}
.songripper-section-heading h2 {
  font-size: 19px;
  letter-spacing: -0.03em;
}
.songripper-section-heading p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.songripper-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.download-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 19px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--primary) 8%, transparent), transparent 48%),
    var(--panel);
}
.download-option h3 {
  font-size: 13px;
  letter-spacing: -0.02em;
}
.download-option p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}
.download-option .download-button {
  min-height: 41px;
  grid-column: 1 / -1;
  justify-content: center;
  color: #dcc3ec;
  background: color-mix(in srgb, var(--primary) 12%, #181020);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
}
.download-option .download-button:hover:not(:disabled) {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 22%, #181020);
  border-color: color-mix(in srgb, var(--primary) 46%, var(--border));
}
.download-option .download-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.download-option .download-button .icon {
  width: 14px;
  height: 14px;
}
.square-video-option label {
  display: block;
  margin-top: 13px;
  color: #a896b5;
  font-size: 9px;
}
.square-video-option select {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  padding: 7px 9px;
  color: #d4c5dc;
  background: #120b19;
  border: 1px solid #ffffff11;
  border-radius: 8px;
}
.cover-option {
  grid-column: 1 / -1;
}
.songripper-note {
  margin-top: 16px;
}
.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.audit-summary {
  position: relative;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--primary) 10%, transparent), transparent 52%),
    var(--panel);
}
.audit-summary > span {
  color: var(--muted);
  font-size: 10px;
}
.audit-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.audit-summary small {
  display: block;
  margin-top: 8px;
  color: #9381a1;
  font-size: 9px;
}
.audit-summary.success strong {
  color: #89d6b7;
}
.audit-summary.failed strong {
  color: #df8d9d;
}
.audit-filter-card {
  margin-bottom: 30px;
}
.audit-filter-form {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 0.8fr;
  gap: 17px;
  padding: 0 25px 25px;
}
.audit-filter-form label {
  min-width: 0;
  color: #c9b9d3;
  font-size: 10px;
  font-weight: 550;
}
.audit-filter-form label > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 450;
}
.audit-filter-form select,
.audit-filter-form input {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 9px 11px;
  color: var(--text);
  background: #130d1d;
  border: 1px solid #ffffff12;
  border-radius: 9px;
  color-scheme: dark;
}
.audit-filter-actions {
  display: flex;
  align-items: flex-end;
  grid-column: span 2;
  gap: 9px;
}
.audit-filter-actions .button {
  min-height: 42px;
}
.audit-results {
  margin-top: 25px;
}
.audit-page-count {
  color: #9b89aa;
  font-size: 9px;
  white-space: nowrap;
}
.audit-event-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.audit-event {
  display: flex;
  gap: 15px;
  padding: 20px;
  overflow: visible;
}
.audit-event-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
}
.audit-event-marker .icon {
  width: 16px;
  height: 16px;
}
.audit-event-marker.success {
  color: #8ddabb;
  background: #68deb00d;
  border: 1px solid #68deb020;
}
.audit-event-marker.failed {
  color: #e798a7;
  background: #e7687f0d;
  border: 1px solid #e7687f20;
}
.audit-event-content {
  min-width: 0;
  flex: 1;
}
.audit-event-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.audit-event-type {
  color: var(--secondary);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.audit-event-heading h3 {
  margin-top: 5px;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.audit-event-time {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.audit-status {
  padding: 4px 7px;
  font-size: 8px;
  border-radius: 6px;
}
.audit-status.success {
  color: #89d6b7;
  background: #68deb00d;
  border: 1px solid #68deb01a;
}
.audit-status.failed {
  color: #e798a7;
  background: #e7687f0d;
  border: 1px solid #e7687f1a;
}
.audit-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 17px 0 0;
}
.audit-context > div {
  min-width: 0;
  padding: 10px;
  background: #0f09161f;
  border: 1px solid #ffffff08;
  border-radius: 8px;
}
.audit-context dt {
  color: #887793;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.audit-context dd {
  overflow: hidden;
  margin: 5px 0 0;
  color: #c2b2cc;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-payload {
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
}
.audit-payload summary {
  width: fit-content;
  cursor: pointer;
}
.audit-payload pre {
  max-height: 260px;
  margin: 10px 0 0;
  padding: 13px;
  overflow: auto;
  color: #cdbed6;
  background: #0c0711a8;
  border: 1px solid #ffffff09;
  border-radius: 9px;
}
.audit-payload code {
  font-size: 9px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.audit-empty {
  margin-bottom: 20px;
}
.audit-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 5px;
}
.audit-pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.audit-page-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.audit-page-links a,
.audit-page-links span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  color: #a996b6;
  font-size: 10px;
  border-radius: 8px;
}
.audit-page-links a:hover {
  color: #fff;
  background: #ffffff08;
}
.audit-page-links a.active {
  color: var(--on-primary);
  background: var(--primary);
}
.mobile-bar {
  display: none;
}
.nav-backdrop[hidden] {
  display: none;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: #fff;
  color: #12091f;
  padding: 12px 18px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1700px) {
  .main {
    margin-right: auto;
    padding-left: 55px;
    padding-right: 55px;
  }
  .hero {
    min-height: 340px;
  }
  .hero-art {
    right: 12%;
  }
  .hero-art img {
    width: 330px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .main {
    margin-left: 220px;
    padding-left: 25px;
    padding-right: 25px;
  }
  .page-heading > .pill {
    display: none;
  }
  .hero {
    padding: 30px;
    min-height: 285px;
  }
  .hero-art {
    right: 0;
    width: 245px;
  }
  .hero-art img {
    width: 240px;
  }
  .hero-art .orbit {
    width: 230px;
    height: 230px;
  }
  .hero-art .orbit-two {
    width: 270px;
    height: 160px;
  }
  .hero-copy {
    max-width: 65%;
  }
  .hero-copy p br {
    display: none;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-value.status-value {
    font-size: 21px;
  }
  .stat-title {
    font-size: 10px;
  }
  .theme-layout {
    gap: 25px;
  }
  .settings-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .avatar-upload {
    gap: 14px;
  }
  .avatar-upload > img {
    width: 72px;
    height: 72px;
  }
  .public-main {
    padding: 35px;
  }
  .login-layout {
    gap: 40px;
  }
  .login-panel {
    padding: 35px 28px;
  }
}
@media (max-width: 950px) {
  .songripper-hero {
    grid-template-columns: 1.3fr 0.7fr;
    padding: 30px;
  }
  .songripper-disc {
    width: 145px;
    height: 145px;
  }
  .stats-grid,
  .health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audit-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audit-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .profile-preview {
    display: none;
  }
  .theme-layout {
    grid-template-columns: 1fr;
  }
  .color-fields {
    max-width: 450px;
  }
  .hero-art {
    opacity: 0.75;
    right: -30px;
  }
  .hero-copy {
    max-width: 75%;
  }
  .hero-caption {
    display: none;
  }
  .public-main {
    padding: 28px;
  }
  .login-layout {
    gap: 25px;
  }
  .login-story h1 {
    font-size: 43px;
  }
  .login-panel h2 {
    font-size: 29px;
  }
  .login-story {
    min-height: 630px;
  }
  .login-story > .brand {
    margin-bottom: 65px;
  }
}
@media (max-width: 700px) {
  .songripper-hero {
    display: block;
    min-height: 300px;
    padding: 26px 21px;
  }
  .songripper-intro {
    max-width: 78%;
  }
  .songripper-intro h2 {
    font-size: 30px;
  }
  .songripper-art {
    position: absolute;
    right: -65px;
    bottom: -35px;
    min-height: 190px;
    opacity: 0.42;
  }
  .songripper-disc {
    width: 155px;
    height: 155px;
  }
  .songripper-wave {
    display: none;
  }
  .songripper-workspace {
    padding: 19px;
  }
  .songripper-url-form > label {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .songripper-url-row {
    flex-direction: column;
  }
  .songripper-url-row .button {
    width: 100%;
  }
  .songripper-track-card {
    align-items: flex-start;
    gap: 14px;
    padding: 17px;
  }
  .songripper-cover {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }
  .songripper-track-copy h2 {
    font-size: 18px;
  }
  .songripper-track-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .songripper-download-grid {
    grid-template-columns: 1fr;
  }
  .cover-option {
    grid-column: auto;
  }
  .audit-summary-grid {
    gap: 8px;
  }
  .audit-summary {
    padding: 14px 12px;
  }
  .audit-summary strong {
    font-size: 23px;
  }
  .audit-summary small {
    min-height: 24px;
  }
  .audit-filter-form {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 18px 20px;
  }
  .audit-filter-actions {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
  }
  .audit-event {
    gap: 10px;
    padding: 16px;
  }
  .audit-event-heading {
    flex-direction: column;
    gap: 9px;
  }
  .audit-event-time {
    align-items: flex-start;
    flex-direction: row;
  }
  .audit-context {
    gap: 7px;
  }
  .audit-pagination {
    gap: 8px;
  }
  .audit-page-links a:not(.active),
  .audit-page-links span {
    display: none;
  }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 25;
    height: 68px;
    padding: 0 18px;
    background: #140e1ef5;
    border-bottom: 1px solid #ffffff0c;
    backdrop-filter: blur(14px);
  }
  .mobile-bar .brand img {
    width: 40px;
    height: 40px;
  }
  .mobile-bar .brand strong {
    font-size: 23px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 270px;
    padding-top: 24px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #0009;
    backdrop-filter: blur(4px);
    border: 0;
    z-index: 29;
  }
  .main {
    margin: 0;
    padding: 0 18px 24px;
  }
  .topbar {
    height: 56px;
    font-size: 10px;
  }
  .private-badge {
    font-size: 9px;
  }
  .page-heading {
    margin: 25px 0 22px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 11px;
  }
  .hero {
    padding: 27px 22px;
    min-height: 295px;
  }
  .hero h2 {
    font-size: 31px;
  }
  .hero-copy {
    max-width: 85%;
  }
  .hero p:not(.eyebrow) {
    font-size: 11px;
    max-width: 220px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .hero-art {
    width: 210px;
    right: -75px;
    top: 35px;
    opacity: 0.45;
  }
  .hero-art img {
    width: 210px;
  }
  .hero-art .orbit {
    width: 200px;
    height: 200px;
  }
  .hero-art .orbit-two {
    width: 230px;
    height: 160px;
  }
  .hero-star {
    display: none;
  }
  .stats-grid {
    gap: 10px;
    margin: 14px 0;
  }
  .stat {
    padding: 16px;
  }
  .stat-title {
    font-size: 10px;
    gap: 5px;
  }
  .stat-title .icon {
    width: 15px;
    height: 15px;
  }
  .stat small {
    font-size: 9px;
    min-height: 28px;
  }
  .stat-value.status-value {
    font-size: 22px;
  }
  .stat-value {
    font-size: 28px;
  }
  .detail-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  .dialog-card {
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .dialog-heading {
    padding: 22px 18px 18px;
  }
  .dialog-heading h2 {
    font-size: 22px;
  }
  .dialog-body {
    padding: 9px 18px 16px;
  }
  .dialog-note {
    padding: 13px 18px;
  }
  .server-detail-list .access-badge {
    display: none;
  }
  .server-memberships {
    padding-left: 0;
  }
  .container-health {
    margin-top: 25px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .health-grid {
    gap: 10px;
  }
  .health-card {
    padding: 16px;
  }
  .health-card strong {
    font-size: 18px;
  }
  .runtime-strip {
    gap: 6px 14px;
  }
  .dashboard-bottom {
    gap: 14px;
  }
  .card-heading {
    padding: 22px 20px 18px;
  }
  .quick-link {
    margin: 0 20px;
  }
  .coming-next {
    margin: 5px 20px 20px;
  }
  .activity-list {
    padding: 0 20px 15px;
  }
  .page-footer {
    font-size: 8px;
    flex-wrap: wrap;
    gap: 7px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .form-card form,
  .invite-card form {
    padding: 0 20px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .form-actions > .muted {
    max-width: 100%;
  }
  .form-actions .button {
    font-size: 11px;
  }
  .color-field {
    gap: 8px;
  }
  .theme-layout {
    gap: 15px;
  }
  .permission-row {
    flex-wrap: wrap;
  }
  .permission-row code {
    margin-left: 30px;
  }
  .permission-row > span {
    flex-basis: 75%;
  }
  .avatar-upload {
    align-items: flex-start;
  }
  .avatar-upload > img {
    width: 64px;
    height: 64px;
  }
  .avatar-upload small {
    font-size: 9px;
  }
  .form-card label:not(.checkbox):not(.permission-row) {
    font-size: 11px;
  }
  .centered-card {
    margin: 30px auto;
    padding: 40px 20px;
  }
  .centered-card h1 {
    font-size: 29px;
  }
  .public-main {
    padding: 22px;
    min-height: 100dvh;
  }
  .login-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .login-story {
    min-height: 0;
    padding: 0;
  }
  .login-story > .brand {
    margin-bottom: 30px;
  }
  .login-story h1 {
    font-size: 42px;
  }
  .login-story > p {
    font-size: 12px;
    max-width: 300px;
  }
  .login-art {
    position: absolute;
    right: -15px;
    bottom: -40px;
    height: 160px;
    width: 160px;
    opacity: 0.45;
    pointer-events: none;
  }
  .login-art img {
    height: 160px;
  }
  .login-art .orbit {
    display: none;
  }
  .login-panel {
    position: relative;
    padding: 28px;
    max-width: 100%;
  }
  .login-panel > .symbol-box {
    display: none;
  }
  .login-panel > .eyebrow {
    margin-top: 0;
  }
  .login-panel h2 {
    font-size: 28px;
  }
  .login-panel h2 br {
    display: none;
  }
  .login-panel > p:not(.eyebrow) {
    font-size: 12px;
    margin: 13px 0 22px;
  }
  .login-note {
    margin-top: 20px;
    padding-top: 18px;
  }
  .public-main > .page-footer {
    padding-top: 25px;
  }
  .private-badge .icon {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 700px) {
  .table-scroll {
    overflow: hidden;
  }
  table,
  tbody {
    display: block;
    white-space: normal;
  }
  thead {
    display: none;
  }
  tbody > tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #ffffff0d;
    padding: 15px 20px;
    gap: 10px;
  }
  td {
    display: block;
    border: 0;
    padding: 0;
    min-width: 0;
  }
  td:first-child,
  td:last-child {
    grid-column: 1/-1;
  }
  td:last-child {
    text-align: left;
  }
  td:nth-child(4) {
    font-size: 10px;
    grid-column: 1/-1;
  }
  .table-user {
    margin-bottom: 5px;
  }
}
.card {
  min-width: 0;
}
@media (max-width: 700px) {
  body.nav-open { overflow: hidden; }
  .sidebar { overflow-y: auto; max-height: 100dvh; }
}

.user-avatar {
  position: relative;
  overflow: hidden;
}
.discord-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.discord-avatar[hidden] {
  display: none;
}

.page-permissions {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.permission-intro { grid-column: 1 / -1; }
.permission-intro h3 { font-size: 16px; }
.permission-intro p, .permission-page-heading p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.permission-page {
  min-width: 0;
  background: #ffffff02;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.permission-page-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 86px;
}
.permission-page-heading h3 { font-size: 14px; }
.permission-page .permission-row { align-items: flex-start; flex-wrap: wrap; }
.permission-page .permission-row:last-child { border-bottom: 0; padding-bottom: 0; }
.permission-page .permission-row > input { margin-top: 3px; }
.permission-page .permission-row > span { flex: 1 1 70%; }
.permission-page .permission-row > .permission-note {
  flex: 0 0 auto;
  margin-left: 30px;
  font-size: 9px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .page-permissions { grid-template-columns: 1fr; }
  .permission-page-heading { min-height: auto; padding-bottom: 5px; }
}
