:root {
  --bg: #f4eee3;
  --surface: #fffaf2;
  --surface-2: #eee5d8;
  --surface-3: #e5dacb;
  --line: #d8ccbc;
  --line-soft: #e8ded1;
  --text: #17140f;
  --muted: #6f665c;
  --dim: #968b7f;
  --orange: #e74712;
  --orange-2: #ff6530;
  --orange-soft: rgba(231, 71, 18, 0.1);
  --green: #198a4c;
  --green-soft: rgba(25, 138, 76, 0.1);
  --red: #bd443b;
  --shadow: 0 22px 60px -42px rgba(34, 24, 14, 0.45);
  --sidebar: 270px;
  --display: "Unbounded", sans-serif;
  --body: "Instrument Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f0d0a;
  --surface: #17140f;
  --surface-2: #1e1a14;
  --surface-3: #282219;
  --line: #302a22;
  --line-soft: #221e18;
  --text: #f4eee3;
  --muted: #aaa096;
  --dim: #766d63;
  --orange: #ff4d12;
  --orange-2: #ff7542;
  --orange-soft: rgba(255, 77, 18, 0.12);
  --green: #3ddc84;
  --green-soft: rgba(61, 220, 132, 0.1);
  --red: #ff7168;
  --shadow: 0 28px 70px -40px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  min-width: 320px;
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}
body {
  min-height: 100vh;
  zoom: var(--ui-scale, 1);
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.dash-shell {
  min-height: 100vh;
}
.dash-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
}
.dash-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 18px var(--display);
}
.dash-logo img {
  width: 31px;
  height: 31px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  transition: 0.18s;
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
}
.side-close,
.menu-btn {
  display: none;
}
.dash-nav {
  display: grid;
  gap: 3px;
  margin-top: 42px;
}
.nav-caption {
  padding: 0 12px 10px;
  color: var(--dim);
  font: 9px var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.nav-link {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  transition: 0.18s;
}
.nav-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-link.is-active {
  background: var(--surface-2);
  color: var(--text);
}
.nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}
.nav-icon svg { width: 16px; height: 16px; }
.nav-link.is-active .nav-icon { color: var(--orange); }
.nav-copy { min-width: 0; display: block; }
.nav-copy strong { font-size: 12px; font-weight: 600; }
.nav-copy small { display: none; }
.side-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
}
.plan-chip {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(140deg, var(--orange-soft), transparent 70%), var(--surface);
}
.plan-chip span,
.plan-chip strong,
.plan-chip a {
  display: block;
}
.plan-chip span {
  color: var(--dim);
  font: 9px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan-chip strong {
  margin: 5px 0 11px;
  font: 600 14px var(--display);
}
.plan-chip #forkUsage {
  display: block;
  margin: -5px 0 12px;
  color: var(--muted);
  font: 10px/1.4 var(--mono);
}
.plan-chip #forkUsage[hidden] {
  display: none;
}
.plan-chip a {
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
}
.user-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.user-card:hover,
.user-card:focus-visible {
  background: var(--surface-2);
  box-shadow: 0 8px 22px -18px rgba(35, 24, 15, .45);
  transform: translateY(-1px);
  outline: none;
}
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  font: 11px var(--mono);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.user-card div:nth-child(2) {
  min-width: 0;
}
.user-card strong,
.user-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-card strong {
  font-size: 13px;
}
.user-card span {
  color: var(--dim);
  font-size: 10px;
}
.user-card > a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--dim);
  transition: background .18s ease, color .18s ease;
}
.user-card > a svg {
  width: 17px;
  height: 17px;
}
.user-card > a:hover {
  background: var(--surface-2);
  color: var(--orange);
}
.side-scrim {
  display: none;
}
.dash-workspace {
  min-height: 100vh;
  margin-left: var(--sidebar);
}
.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 clamp(22px, 4vw, 56px);
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}
.dash-topbar > div:nth-child(2) {
  display: grid;
}
.top-kicker {
  color: var(--dim);
  font: 9px var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.dash-topbar strong {
  font: 600 14px var(--display);
}
.top-actions {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.notification-center { position: relative; }
.notification-btn {
  position: relative;
  border-radius: 50%;
}
.notification-btn svg { width: 19px; height: 19px; }
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: 600 9px var(--mono);
}
.notification-badge[hidden] { display: none; }
.notification-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 12px);
  right: 0;
  width: min(380px, calc(100vw - 30px));
  max-height: min(520px, calc(100vh - 100px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 65px -30px rgba(0, 0, 0, 0.55);
}
.notification-head {
  min-height: 68px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line-soft);
}
.notification-head strong,
.notification-head span { display: block; }
.notification-head strong { font: 600 13px var(--display); }
.notification-head span { margin-top: 3px; color: var(--dim); font-size: 10px; }
.notification-head button {
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--orange);
  font-size: 10px;
  font-weight: 600;
}
.notification-head button:hover { background: var(--orange-soft); }
.notification-list { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.notification-item {
  width: 100%;
  min-height: 76px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
}
.notification-item:hover { background: var(--surface-2); }
.notification-item.is-unread { background: var(--orange-soft); }
.notification-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--orange);
  font: 600 9px var(--display);
  background-position: center;
  background-size: cover;
}
.notification-copy { min-width: 0; }
.notification-copy strong,
.notification-copy span { display: block; }
.notification-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.notification-copy span { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.notification-item time { color: var(--dim); font: 8px var(--mono); white-space: nowrap; }
.notification-empty { padding: 34px 18px; color: var(--muted); font-size: 12px; text-align: center; }
.notification-invite { min-height: 112px; }
.notification-invite-actions { display: flex !important; gap: 7px; margin-top: 10px !important; overflow: visible !important; }
.notification-invite-actions button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}
.notification-invite-actions button:first-child { border-color: var(--orange); background: var(--orange); color: #111; }
.notification-invite-actions button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 560px) {
  .notification-panel { position: fixed; top: 72px; right: 14px; left: 14px; width: auto; }
}
.theme-btn {
  flex: 0 0 42px;
  border-radius: 50%;
  color: var(--text);
}
.theme-btn svg {
  width: 18px;
  height: 18px;
}
.theme-btn .icon-moon {
  display: none;
}
[data-theme="dark"] .theme-btn .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-btn .icon-moon {
  display: block;
}
.primary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: 0.18s;
}
.primary-btn {
  border-color: var(--orange);
  background: var(--orange);
  color: #0f0d0a;
}
.primary-btn:hover {
  background: var(--orange-2);
  transform: translateY(-2px);
  box-shadow: 0 13px 30px -13px rgba(255, 77, 18, 0.65);
}
.primary-btn:disabled,
.primary-btn:disabled:hover {
  border-color: var(--line);
  background: var(--surface-3);
  color: var(--dim);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.72;
}
.ghost-btn {
  background: var(--surface);
  color: var(--text);
}
.ghost-btn:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}
.ghost-btn:disabled,
.ghost-btn:disabled:hover,
.ghost-btn[aria-disabled="true"],
.ghost-btn[aria-disabled="true"]:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.45;
  pointer-events: none;
}
.wide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dash-main {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px) clamp(22px, 4vw, 56px) 80px;
}
.view {
  display: none;
}
.view.is-active {
  display: block;
  animation: viewIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 35px;
}
.page-heading.compact {
  align-items: center;
}
.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font: 10px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-heading h1 {
  font: 600 clamp(32px, 4.6vw, 55px)/1.07 var(--display);
  letter-spacing: -0.04em;
}
.page-heading p {
  max-width: 58ch;
  margin-top: 13px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.create-header-wave {
  width: min(46vw, 500px);
  height: 72px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.create-header-wave i {
  width: 5px;
  height: calc(var(--h) * 1%);
  min-height: 4px;
  border-radius: 4px;
  background: var(--orange);
  transform-origin: center;
  animation: create-wave 1s ease-in-out infinite alternate;
  animation-delay: calc(var(--d) * -1s);
}
@keyframes create-wave {
  from { transform: scaleY(0.35); opacity: 0.45; }
  to { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .create-header-wave i { animation: none; }
}
.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: 10px var(--mono);
  white-space: nowrap;
}
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 38px;
}
.stat {
  min-height: 148px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
}
.stat-label {
  color: var(--dim);
  font: 9px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat strong {
  display: block;
  margin-top: 17px;
  font: 600 31px var(--display);
}
.stat small {
  color: var(--muted);
  font-size: 11px;
}
.section-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-bar h2 {
  font: 600 20px var(--display);
}
.section-bar p {
  margin-top: 5px;
  color: var(--dim);
  font-size: 12px;
}
.filters {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.filter {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.filter.is-active {
  background: var(--text);
  color: var(--bg);
}
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
[data-ui-scale="compact"] .test-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
[data-ui-scale="compact"] .test-card {
  padding: 17px;
}
.test-card {
  position: relative;
  min-width: 0;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.test-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
}
.test-card.is-pinned {
  border-color: color-mix(in srgb, var(--orange) 38%, var(--line));
}
.test-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.test-pin-badge {
  width: 24px;
  height: 24px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--orange) 11%, transparent);
  color: var(--orange);
}
.test-pin-badge svg {
  width: 13px;
  height: 13px;
}
.status {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 0;
}
.status::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 9%, transparent);
}
.status::after {
  content: "Live";
  font: 500 9px var(--mono);
  letter-spacing: 0.06em;
}
.status.closed {
  color: var(--muted);
}
.status.closed::after { content: "Closed"; }
.status.archived {
  color: var(--dim);
}
.status.archived::after { content: "Archived"; }
.test-card:has(.status.archived) [data-card-action="archived"] { display: none; }
.test-expiry {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font: 9px var(--mono);
  white-space: nowrap;
}
.more-btn {
  position: relative;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--dim);
  font-size: 18px;
}
.more-btn:hover,
.more-btn[aria-expanded="true"] {
  background: var(--surface-2);
  color: var(--text);
}
.card-menu {
  position: absolute;
  z-index: 5;
  top: 52px;
  right: 14px;
  width: 174px;
  display: none;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 18px 42px -22px rgba(15, 13, 10, 0.65);
}
.card-menu.is-open { display: grid; }
.card-menu-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
}
.card-menu-item:hover { background: var(--surface-2); color: var(--text); }
.card-menu-item svg { width: 16px; height: 16px; flex: 0 0 auto; }
.card-menu-item.delete { color: var(--red); }
.archive-state {
  display: inline-flex !important;
  width: max-content;
  margin-top: 5px;
  padding: 4px 7px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--dim) !important;
  font: 9px var(--mono) !important;
  text-transform: uppercase;
}
.trash-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.trash-heading-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.trash-heading h2 { font: 600 17px var(--display); }
.trash-actions { display: flex; align-items: center; gap: 8px; }
.trash-delete,
.empty-trash { color: var(--red); }
.empty-trash:disabled { opacity: 0.45; cursor: not-allowed; }
.trash-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 14px 0 4px; }
.trash-bulk { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; }
.trash-bulk[hidden] { display: none; }
.trash-selected-count { color: var(--dim); font: 10px var(--mono); margin-right: 4px; }
.trash-check-label { display: none; align-items: center; cursor: pointer; }
.trash-check { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.trash-selecting .trash-check-label { display: flex; }
.trash-selecting .trash-actions { display: none; }
.trash-selecting .archive-row { display: grid; grid-template-columns: auto minmax(0, 1fr); justify-content: initial; }
.trash-selecting .archive-row > div:nth-child(2) { min-width: 0; }
.trash-bulk-delete { color: var(--red); }
.test-card h3 {
  margin: 18px 0 5px;
  font: 600 15px/1.35 var(--display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.test-question {
  height: 38px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
}
.ab-mini {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.ab-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 35px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.ab-letter {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font: 600 10px var(--display);
}
.ab-letter.b {
  background: var(--orange-soft);
  color: var(--orange);
}
.ab-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ab-row strong {
  text-align: right;
}
.split {
  height: 5px;
  display: flex;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}
.split i:first-child {
  background: var(--text);
}
.split i:last-child {
  background: var(--orange);
}
.test-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font: 10px var(--mono);
}
.card-capabilities {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 10px 0;
}
.card-capabilities + .test-foot { margin-top: 0; }
.card-capability {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-2) 45%, transparent);
  color: var(--dim);
  opacity: 0.55;
}
.card-capability.is-enabled {
  border-color: color-mix(in srgb, var(--green) 24%, var(--line));
  background: color-mix(in srgb, var(--green) 7%, var(--surface));
  color: var(--green);
  opacity: 1;
}
.card-capability svg {
  width: 13px;
  height: 13px;
}
.card-capability[title] { cursor: help; }
.open-result {
  position: absolute;
  inset: 0;
  border-radius: 20px;
}
.empty {
  grid-column: 1/-1;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
}
.dash-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 20px;
}
.create-main {
  display: grid;
  gap: 18px;
}
.form-card {
  padding: clamp(22px, 3vw, 32px);
}
.form-head {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  margin-bottom: 25px;
}
.form-head > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--orange-soft);
  color: var(--orange);
  font: 10px var(--mono);
}
.form-head h2,
.launch-card h2 {
  font: 600 17px var(--display);
}
.form-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field > span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.field em {
  color: var(--dim);
  font-size: 10px;
  font-style: normal;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  outline: none;
}
.field input,
.field select {
  min-height: 48px;
  padding: 0 34px 0 13px;
}
.field textarea {
  min-height: 90px;
  padding: 12px 13px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
  background: var(--surface);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}
.questionnaire-type {
  min-width: 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}
.questionnaire-type legend {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.type-option {
  position: relative;
  min-height: 126px;
  display: block;
  cursor: pointer;
}
.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.type-option > span {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.type-option strong,
.type-option small { display: block; }
.type-option strong { font: 600 13px var(--display); }
.type-option small { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.type-option:hover > span { border-color: color-mix(in srgb, var(--orange) 45%, var(--line)); transform: translateY(-2px); }
.type-option input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.type-option input:checked + span {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: 0 16px 34px -22px rgba(231, 71, 18, 0.75);
}
.type-option input:checked + span small { color: rgba(255, 255, 255, 0.82); }
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.track-upload {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-2);
}
.version {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font: 600 13px var(--display);
  background: var(--text);
  color: var(--bg);
}
.version.b {
  background: var(--orange);
  color: #0f0d0a;
}
.dropzone {
  min-height: 92px;
  margin-top: 0;
  border: 1px dashed var(--line);
  border-radius: 13px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
}
.dropzone:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.dropzone.is-dragging {
  border-style: solid;
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 16%, var(--surface));
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--orange) 14%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--orange) 28%, transparent);
}
.dropzone.is-dragging > span {
  transform: translateY(-2px) scale(1.12);
}
.dropzone.is-dragging strong {
  color: var(--orange);
}
.dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dropzone > span {
  color: var(--orange);
  font-size: 20px;
  transition: transform .18s ease;
}
.dropzone strong {
  font-size: 12px;
}
.dropzone small {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dim);
  font-size: 9px;
}
.dropzone.has-audio {
  border-style: solid;
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 9%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 18%, transparent);
}
.dropzone.has-audio:hover { background: color-mix(in srgb, var(--orange) 13%, var(--surface)); }
.dropzone.has-audio > span {
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
}
.dropzone.has-audio strong { color: var(--text); font-size: 13px; }
.dropzone.has-audio small { max-width: 230px; color: var(--orange); font-size: 10px; font-weight: 600; }
.dropzone.source-error { border-style: solid; border-color: #e04635; background: color-mix(in srgb, #e04635 8%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, #e04635 12%, transparent); }
.dropzone.source-error strong { color: #e04635; }
.library-pick { min-height: 38px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; }
.library-pick:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
.audio-source-divider { display: flex; align-items: center; gap: 10px; color: var(--dim); font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.audio-source-divider::before, .audio-source-divider::after { content: ""; height: 1px; flex: 1; background: var(--line-soft); }
.spotify-field { margin: 0; }
.spotify-field input { min-height: 44px; font-size: 12px; }
.spotify-field input.is-loading { border-color: var(--orange); background-image: linear-gradient(90deg, transparent, var(--orange-soft), transparent); background-size: 200% 100%; animation: spotify-loading 1.1s linear infinite; }
@keyframes spotify-loading { to { background-position: -200% 0; } }
.spotify-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.spotify-preview iframe { width: 100%; height: 152px; display: block; border: 0; }
.upload-wave-player { padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.upload-wave-player[hidden] { display: none; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.library-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.library-card-head { display: flex; align-items: center; gap: 11px; }
.library-art { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--orange-soft); color: var(--orange); }
.library-art svg { width: 19px; height: 19px; }
.library-art.has-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.library-card-copy { min-width: 0; }
.library-card-copy strong, .library-card-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-card-copy strong { font-size: 13px; }
.library-card-copy span { margin-top: 3px; color: var(--dim); font-size: 10px; }
.library-wave-player {
  margin: 17px 0 13px;
}
.library-wave-player:empty {
  min-height: 70px;
  display: grid;
  place-items: center;
}
.library-wave-player:empty::before {
  content: 'Loading waveform…';
  color: var(--muted);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: library-wave-loading 1.25s ease-in-out infinite;
}
@keyframes library-wave-loading {
  0%, 100% { opacity: .42; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .library-wave-player:empty::before { animation: none; opacity: .7; }
}
.library-actions { display: flex; gap: 8px; }
.library-delete { width: 34px; height: 34px; margin-left: auto; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--dim); transition: .18s; }
.library-delete svg { width: 15px; height: 15px; }
.library-delete:hover { border-color: #e04635; background: color-mix(in srgb, #e04635 8%, transparent); color: #e04635; }
.library-delete:disabled { cursor: wait; opacity: .45; }
.library-play, .library-use { min-height: 38px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.library-play { width: 40px; border: 0; background: var(--orange); color: #fff; }
.library-use { flex: 1; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.library-use:hover { border-color: var(--orange); color: var(--orange); }
.library-empty { grid-column: 1/-1; padding: 54px 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.library-empty h2 { margin-bottom: 7px; color: var(--text); font: 600 17px var(--display); }
.library-picker { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; }
.library-picker[hidden] { display: none; }
.library-picker-scrim { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.62); }
.library-picker-panel { position: relative; width: min(620px, 100%); max-height: min(680px, calc(100vh - 36px)); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 30px 90px -35px #000; }
.library-picker-head { min-height: 86px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.library-picker-head .eyebrow { margin-bottom: 6px; }
.library-picker-head h2 { font: 600 17px var(--display); }
.library-picker-list { max-height: 560px; padding: 10px; overflow-y: auto; }
.library-picker-item { width: 100%; min-height: 66px; padding: 10px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 13px; background: transparent; text-align: left; }
.library-picker-item:hover { background: var(--surface-2); }
.library-picker-item .library-art { width: 38px; height: 38px; }
.library-picker-item .library-card-copy { flex: 1; }
.library-picker-item > span:last-child { color: var(--orange); font-size: 11px; font-weight: 600; }
.delete-track-modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 18px; }
.delete-track-modal[hidden] { display: none; }
.delete-track-scrim { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(8px); }
.delete-track-dialog { position: relative; width: min(440px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 30px 90px -35px #000; }
.delete-track-icon { width: 44px; height: 44px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, #e04635 12%, transparent); color: #e04635; }
.delete-track-icon svg { width: 20px; height: 20px; }
.delete-track-dialog h2 { margin: 8px 0 10px; font: 600 25px/1.1 var(--display); }
.delete-track-dialog p { color: var(--dim); line-height: 1.55; }
.delete-track-dialog p strong { color: var(--text); font-weight: 600; }
.delete-track-actions { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delete-track-actions button { min-height: 48px; border-radius: 999px; }
.delete-track-confirm { border: 1px solid #e04635; background: #e04635; color: #fff; font-weight: 700; }
.delete-track-confirm:disabled { cursor: wait; opacity: .55; }
.edit-test-modal { position: fixed; inset: 0; z-index: 145; display: grid; place-items: center; padding: 18px; }
.edit-test-modal[hidden] { display: none; }
.edit-test-scrim { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(8px); }
.edit-test-dialog { position: relative; width: min(760px, 100%); max-height: min(860px, calc(100vh - 36px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 30px 90px -35px #000; }
.edit-test-head { min-height: 88px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.edit-test-head h2 { margin-top: 6px; font: 600 22px/1.1 var(--display); }
.edit-test-dialog form { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.edit-test-body { flex: 1 1 auto; min-height: 0; padding: 24px; overflow-y: auto; }
.edit-test-body > .field { margin-bottom: 18px; }
.edit-test-body textarea { resize: none; }
.edit-test-versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.edit-test-versions fieldset { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.edit-test-versions legend { padding: 0 7px; display: flex; align-items: center; gap: 8px; font: 600 13px var(--display); }
.edit-test-versions .field + .field { margin-top: 14px; }
.edit-test-versions .field small { color: var(--dim); font-weight: 400; }
.edit-test-toggles { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.edit-test-toggles label { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 14px; }
.edit-test-toggles strong, .edit-test-toggles small { display: block; }
.edit-test-toggles strong { font-size: 12px; }
.edit-test-toggles small { margin-top: 3px; color: var(--dim); font-size: 9px; line-height: 1.35; }
.edit-test-toggles input { flex: 0 0 auto; width: 34px; height: 20px; accent-color: var(--orange); }
.edit-publish-settings {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.edit-publish-settings > label {
  min-height: 68px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.edit-publish-settings > label[hidden] {
  display: none;
}
.edit-publish-settings > label,
.launch-select-row {
  position: relative;
}
.edit-publish-settings strong,
.edit-publish-settings small {
  display: block;
}
.edit-publish-settings strong { font-size: 12px; }
.edit-publish-settings small {
  margin-top: 3px;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.35;
}
.edit-publish-settings select {
  max-width: 190px;
  padding: 10px 30px 10px 11px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 10px var(--mono);
}
.edit-publish-settings .expiry-select {
  width: min(190px, 100%);
  flex: 0 1 190px;
}
.edit-public-profile-row input {
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  accent-color: var(--orange);
}
.edit-test-actions { flex: 0 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line-soft); }
.edit-test-actions button { min-width: 140px; min-height: 46px; border-radius: 999px; }
@media (max-width: 1100px) { .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .library-grid { grid-template-columns: 1fr; } .library-picker { padding: 0; place-items: end center; } .library-picker-panel { width: 100%; max-height: 85vh; border-radius: 22px 22px 0 0; } }
@media (max-width: 620px) { .delete-track-modal { padding: 0; place-items: end center; } .delete-track-dialog { width: 100%; padding: 24px 20px max(24px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; } }
@media (max-width: 720px) { .edit-test-modal { padding: 0; place-items: end center; } .edit-test-dialog { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; } .edit-test-head { padding: 18px 20px; } .edit-test-body { padding: 20px; } .edit-test-versions, .edit-test-toggles, .edit-publish-settings { grid-template-columns: 1fr; } .edit-publish-settings > label { align-items: flex-start; flex-direction: column; } .edit-publish-settings select, .edit-publish-settings .expiry-select { width: 100%; max-width: none; flex-basis: auto; } .edit-test-actions { padding: 14px 20px max(14px, env(safe-area-inset-bottom)); } .edit-test-actions button { min-width: 0; flex: 1; } }
.create-side {
  position: sticky;
  top: 94px;
}
.launch-card {
  padding: 24px;
}
.launch-card h2 {
  margin-bottom: 20px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}
.toggle-row span,
.toggle-row strong,
.toggle-row small {
  display: block;
}
.toggle-row strong {
  font-size: 12px;
}
.toggle-row small {
  margin-top: 3px;
  color: var(--dim);
  font-size: 10px;
}
.toggle-row input {
  width: 38px;
  height: 22px;
  accent-color: var(--orange);
}
.launch-select-row {
  display: grid;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}
.launch-select-row span,
.launch-select-row strong,
.launch-select-row small { display: block; }
.launch-select-row strong { font-size: 12px; }
.launch-select-row small { margin-top: 3px; color: var(--dim); font-size: 10px; }
.launch-select-row select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 16px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}
.expiry-select { position: relative; width: 100%; }
.expiry-select > select { display: none !important; }
.expiry-select-wrapper { max-width: 420px; font-family: var(--body); }
.expiry-label { display: block; margin-bottom: 2px; color: var(--text); font-size: 12px; font-weight: 600; }
.expiry-sublabel { margin: 0 0 12px; color: var(--dim); font-size: 10px; }
#expirySelect .expiry-trigger { min-height: 42px; padding: 0 16px; border-color: var(--line); background: var(--surface); color: var(--text); }
#expirySelect .expiry-trigger:hover { border-color: var(--orange); }
#expirySelect .expiry-chevron { color: var(--muted); }
#expirySelect .expiry-options { display: none; border-color: var(--line); background: var(--surface); box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); }
#expirySelect .expiry-options.open { display: block; }
#expirySelect .expiry-option { border-color: var(--line-soft); color: var(--text); }
#expirySelect .expiry-option:hover { background: var(--surface-2); }
#expirySelect .expiry-check { color: var(--text); }
.expiry-trigger { width: 100%; min-height: 42px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 15px; text-align: left; transition: border-color .15s; }
.expiry-trigger:hover { border-color: var(--orange); }
.expiry-chevron { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; color: var(--muted); transition: transform .15s ease; }
.expiry-chevron.open { transform: rotate(180deg); }
.expiry-options { position: absolute; display: none; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); }
.expiry-options.open { display: grid; }
.expiry-option { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; font-size: 15px; color: var(--text); border-top: 1px solid var(--line-soft); }
.expiry-option:first-child { border-top: 0; }
.expiry-option:hover, .expiry-option[aria-selected="true"] { background: var(--surface-2); }
.expiry-check { width: 16px; height: 16px; flex: 0 0 auto; color: var(--text); stroke: currentColor; stroke-width: 2; visibility: hidden; }
.expiry-check.visible { visibility: visible; }
.toggle-row.is-disabled,
.edit-test-toggles label.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.toggle-row.is-disabled input,
.edit-test-toggles label.is-disabled input {
  cursor: not-allowed;
}
.launch-card .primary-btn {
  margin-top: 20px;
}
.launch-card .ghost-btn {
  margin-top: 8px;
}
.public-profile-head,
.public-profile-url,
.profile-publish-toggle {
  display: flex;
  align-items: center;
}
.public-profile-head { justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.public-profile-head h2 { margin: 5px 0; font: 600 24px var(--display); }
.public-profile-head p { color: var(--muted); font-size: 12px; }
.profile-publish-toggle { gap: 10px; font: 11px var(--mono); }
.profile-publish-toggle input { width: 38px; height: 22px; accent-color: var(--orange); }
.public-profile-url { gap: 10px; }
.social-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.social-field-grid .field { min-width: 0; }
@media (max-width: 640px) { .social-field-grid { grid-template-columns: 1fr; } }
.public-profile-url input { flex: 1; }
.public-profile-url .public-url-input {
  background: var(--surface-3);
  border-color: var(--line);
  color: var(--dim);
  cursor: not-allowed;
  user-select: text;
}
.public-profile-url .public-url-input:hover,
.public-profile-url .public-url-input:focus {
  background: var(--surface-3);
  border-color: var(--line);
  box-shadow: none;
  color: var(--dim);
}
.public-profile-url .ghost-btn { min-width: 90px; }
.public-profile-url .public-profile-preview {
  min-width: 112px;
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
  font: 600 12px var(--display);
  text-decoration: none;
}
.public-profile-url .public-profile-preview span:last-child {
  font: 14px var(--mono);
  transition: transform 0.15s ease;
}
.public-profile-url .public-profile-preview:hover span:last-child {
  transform: translate(2px, -2px);
}
@media(max-width:620px) {
  .public-profile-head { align-items: flex-start; flex-direction: column; }
  .public-profile-url { align-items: stretch; flex-direction: column; }
}
.local-note {
  margin-top: 17px;
  color: var(--dim);
  font: 9px/1.6 var(--mono);
}
.results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}
.results-head h1 {
  font: 600 clamp(27px, 4vw, 43px) var(--display);
  letter-spacing: -0.035em;
}
.result-description {
  width: min(620px, 100%);
  color: var(--muted);
  font: 400 clamp(14px, 1.8vw, 16px) / 1.6 var(--body);
  letter-spacing: 0;
  text-align: left;
}
.result-description.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.result-description p { margin: 0; }
.result-description p + p { margin-top: 0.65em; }
.result-description h1 {
  margin: 0 0 0.45em;
  color: var(--text);
  font: 600 clamp(19px, 2.8vw, 24px) / 1.3 var(--display) !important;
  letter-spacing: -0.025em;
}
.result-description h2 {
  margin: 0 0 0.4em;
  color: var(--text);
  font: 600 clamp(16px, 2.2vw, 19px) / 1.35 var(--display);
  letter-spacing: -0.015em;
}
.result-description strong,
.result-description b {
  color: var(--text);
  font-weight: 700;
}
.result-description-toggle {
  margin-top: 7px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  font: 600 11px var(--body);
}
.result-description-toggle:hover,
.result-description-toggle:focus-visible { color: var(--text); }
.result-actions {
  display: flex;
  gap: 8px;
}
.result-owner-menu { position: relative; display: flex; }
.result-owner-menu > .more-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.result-owner-menu .card-menu { top: 54px; right: 0; }
.share-btn {
  min-width: 154px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  border-color: #0f0d0a;
  background: #0f0d0a;
  color: #f4eee3;
  font-size: 13px;
}
.share-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.share-btn:hover {
  border-color: #282219;
  background: #282219;
  color: #f4eee3;
}
.share-btn.is-copied {
  border-color: #0f0d0a;
  background: #0f0d0a;
  color: #f4eee3;
}
.result-hero {
  padding: 27px;
  margin-bottom: 17px;
  background:
    linear-gradient(125deg, var(--orange-soft), transparent 60%), var(--surface);
}
.result-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.result-hero h2 {
  font: 600 17px var(--display);
}
.result-hero p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.vote-total {
  padding: 8px 11px;
  border: 1px solid rgba(255, 77, 18, 0.2);
  border-radius: 99px;
  color: var(--orange);
  font: 10px var(--mono);
}
.big-results {
  display: grid;
  gap: 12px;
  margin-top: 23px;
}
.big-row {
  display: grid;
  grid-template-columns: 38px 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.big-row strong {
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  font: 600 20px var(--display);
  font-variant-numeric: tabular-nums;
}
.big-track {
  height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.big-track i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--orange-soft);
}
.big-track span {
  position: relative;
  font-weight: 600;
  font-size: 13px;
}
.audio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.ab-testing-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}
.result-ab-control {
  --idle-fill: var(--soft);
  --a-color: var(--text);
  --b-color: var(--orange);
  --toggle-muted: var(--muted);
  --toggle-text: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.result-ab-toggle {
  width: 60px;
  height: 60px;
  min-height: 60px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--idle-fill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.result-ab-toggle:hover {
  transform: none;
  filter: brightness(1.08);
}
.result-ab-toggle:active {
  transform: scale(0.94);
}
.result-ab-toggle:not(.to-a):not(.to-b):not(:disabled) {
  animation: result-ab-idle-pulse 1.7s ease-in-out infinite;
}
@keyframes result-ab-idle-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 0%, transparent);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--orange) 16%, transparent);
    filter: brightness(1.12);
  }
}
.result-ab-toggle:focus-visible {
  outline: 2px solid var(--toggle-text);
  outline-offset: 3px;
}
.result-ab-toggle.to-b {
  background: var(--b-color);
}
.result-ab-toggle.to-a {
  background: var(--a-color);
}
.result-ab-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--toggle-muted);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.result-ab-toggle.to-a svg {
  stroke: var(--bg);
  stroke-width: 2.6;
}
.result-ab-toggle.to-b svg {
  stroke: #17140f;
  stroke-width: 2.6;
}
.result-ab-toggle .icon-single {
  display: none;
}
.result-ab-toggle.to-a .icon-idle,
.result-ab-toggle.to-b .icon-idle {
  display: none;
}
.result-ab-toggle.to-a .icon-single,
.result-ab-toggle.to-b .icon-single {
  display: block;
}
.result-ab-toggle.to-b .icon-single {
  transform: rotate(180deg);
}
.result-ab-status {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--toggle-muted);
  text-align: center;
}
.result-ab-status.on-a {
  color: var(--a-color);
}
.result-ab-status.on-b {
  color: var(--b-color);
}
.result-ab-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: max-content;
  color: var(--muted);
  font: 500 11px/1.3 var(--body);
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.result-ab-shortcuts > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.result-ab-shortcuts kbd {
  min-width: 25px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--text);
  font: 600 10px/1 var(--mono);
  text-align: center;
  box-shadow: 0 1px 0 var(--line);
}
@media (max-width: 720px) {
  .result-ab-shortcuts {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .result-ab-toggle {
    transition: none !important;
    animation: none !important;
  }
}
.audio-card { padding: 17px 18px; }
.result-player { min-height: 176px; border-radius: 18px; }
.result-player.is-current { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 12%, transparent); }
.result-player.is-playing { border-color: var(--orange); animation: result-track-playing 1.35s ease-in-out infinite; }
@keyframes result-track-playing { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 8%, transparent); } 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 22%, transparent); } }
.track-player-head { display: flex; align-items: center; gap: 12px; }
.track-player-head > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px var(--display); }
.track-badge { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--text); color: var(--bg); font: 600 13px var(--display); }
.track-badge.b { background: color-mix(in srgb, var(--orange) 13%, var(--surface)); color: var(--orange); }
.track-download { min-height: 34px; margin-left: auto; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; cursor: pointer; transition: .18s; }
.track-download svg { width: 14px; height: 14px; }
.track-download:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
.track-download.is-loading { opacity: .35; cursor: wait; }
.audio-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.audio-title h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.result-source { margin-left: auto; padding: 5px 8px; border-radius: 999px; background: var(--surface-2); color: var(--dim); font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.result-source.spotify { background: #1ed760; color: #07130a; font-weight: 600; }
.spotify-result-card iframe { width: 100%; height: 152px; display: block; margin-top: 17px; border: 0; border-radius: 12px; }
.result-wave-player { margin-top: 18px; }
.waveform {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 20px 0;
}
.waveform i {
  width: 3px;
  border-radius: 3px;
  background: var(--line);
  height: calc(var(--h) * 1%);
}
.audio-card.b .waveform i {
  background: color-mix(in srgb, var(--orange) 50%, var(--line));
}
.play-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 10px var(--mono);
}
.play-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #0f0d0a;
}
.comments-card {
  margin-top: 17px;
  padding: 24px;
}
.comments-card h2 {
  font: 600 16px var(--display);
}
.comment {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
}
.comment:last-child {
  border: 0;
}
.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  font: 10px var(--mono);
}
.comment strong {
  font-size: 12px;
}
.comment p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.comment time {
  color: var(--dim);
  font: 9px var(--mono);
}
.settings-layout {
  max-width: 970px;
}
.settings-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}
.settings-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.settings-tab.is-active {
  background: var(--text);
  color: var(--bg);
}
.settings-card {
  padding: 28px;
}
.settings-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.settings-section-header h2 {
  margin: 0;
  font: 600 17px var(--display);
}
.settings-section-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.settings-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.interface-card-head.settings-section-header {
  display: block;
}
.interface-card-head .eyebrow {
  display: block;
  margin-bottom: 8px;
}
.interface-card-head h2 {
  font: 600 17px var(--display);
}
.interface-card-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.interface-scale-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.interface-scale-option {
  position: relative;
  cursor: pointer;
}
.interface-scale-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.interface-scale-option > span {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  transition: 0.18s;
}
.interface-scale-option:hover > span {
  border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
  transform: translateY(-2px);
}
.interface-scale-option input:focus-visible + span {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.interface-scale-option input:checked + span {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
.interface-scale-option strong {
  font: 600 13px var(--display);
}
.interface-scale-option small {
  color: var(--muted);
  font-size: 11px;
}
.scale-preview {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 25px;
}
.scale-preview i {
  width: 5px;
  border-radius: 3px;
  background: var(--orange);
}
.scale-preview i:nth-child(1) { height: 45%; }
.scale-preview i:nth-child(2) { height: 75%; }
.scale-preview i:nth-child(3) { height: 100%; }
.interface-scale-option[data-scale="0.9"] .scale-preview { transform: scale(0.85); transform-origin: left bottom; }
.interface-scale-option[data-scale="1.1"] .scale-preview { transform: scale(1.15); transform-origin: left bottom; }
@media (max-width: 620px) {
  .interface-scale-options { grid-template-columns: 1fr; }
  .interface-scale-option > span { min-height: 88px; }
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  font: 600 18px var(--display);
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.profile-avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -18px rgba(15, 13, 10, 0.65);
}
.profile-avatar::after {
  content: "Change";
  position: absolute;
  inset: auto 0 0;
  padding: 5px 2px;
  background: rgba(15, 13, 10, 0.72);
  color: #fff;
  font: 8px var(--mono);
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.18s;
}
.profile-avatar:hover::after {
  transform: none;
}
.avatar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.avatar-upload,
.avatar-remove {
  border: 0;
  background: transparent;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.avatar-remove {
  color: var(--dim);
}
.nickname-field small {
  display: none;
}
.email-locked input {
  cursor: not-allowed;
  color: color-mix(in srgb, var(--dim) 82%, transparent);
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-2) 88%, var(--line));
  caret-color: transparent;
  box-shadow: none;
}
.email-locked input:hover,
.email-locked input:focus,
.email-locked input:focus-visible {
  cursor: not-allowed;
  color: color-mix(in srgb, var(--dim) 82%, transparent);
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-2) 88%, var(--line));
  outline: none;
  box-shadow: none;
  transform: none;
}
.email-locked small {
  display: block;
  margin-top: 7px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.45;
}
.email-locked small a {
  color: var(--orange);
  font-weight: 600;
}
.password-card { width: 100%; }
.password-card-head { margin-bottom: 24px; }
.password-card-head h2 { font: 600 18px var(--display); }
.password-card-head p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.password-fields { display: grid; gap: 15px; }
.password-field-wrap { position: relative; }
.password-field-wrap input { padding-right: 48px; }
.password-visibility { position: absolute; right: 7px; bottom: 7px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--dim); font-size: 13px; }
.password-visibility:hover { background: var(--surface-2); color: var(--text); }
.password-requirements { color: var(--dim); font: 10px/1.5 var(--mono); }
.password-error { min-height: 18px; color: var(--red); font-size: 11px; }
.profile-row h2 {
  font: 600 17px var(--display);
}
.profile-row p {
  color: var(--muted);
  font-size: 12px;
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.plan-card {
  padding: 28px;
  background: var(--surface);
}
.plan-card h2 {
  font: 600 17px var(--display);
}
.plan-card p {
  max-width: 55ch;
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}
.plan-card .primary-btn {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 13px;
  line-height: 1;
}
.team-settings-card { padding: 28px; }
.team-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.team-settings-head h2,
.team-settings-loading h2 { margin-top: 7px; font: 600 24px var(--display); }
.team-settings-head p,
.team-settings-error { max-width: 58ch; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.team-seat-count {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 10px var(--mono);
}
.team-seat-store {
  margin-top: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--orange-soft);
}
.team-seat-store strong,
.team-seat-store span { display: block; }
.team-seat-store strong { font-size: 12px; }
.team-seat-store span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.team-seat-store .ghost-btn { flex: 0 0 auto; min-height: 38px; }
.team-seat-actions { display: flex; align-items: center; gap: 8px; }
.subscription-cancel-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.subscription-cancel-row strong,
.subscription-cancel-row span { display: block; }
.subscription-cancel-row span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.ghost-btn.is-danger { color: var(--orange); }
.seat-purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 13, 10, .7);
  backdrop-filter: blur(12px);
  animation: fade-in .18s ease;
}
.seat-purchase-card {
  position: relative;
  width: min(100%, 470px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.seat-purchase-card h2 { margin-top: 8px; font: 600 25px var(--display); }
.seat-purchase-card > p { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.seat-purchase-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  font-size: 20px;
}
.seat-purchase-picker {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
}
.seat-purchase-picker button {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 22px;
}
.seat-purchase-picker button:disabled { opacity: .35; }
.seat-purchase-picker strong { text-align: center; font: 600 25px var(--display); }
.seat-purchase-total {
  margin: 20px 0;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}
.seat-purchase-total strong { color: var(--text); font: 500 16px var(--mono); }
.seat-purchase-card > .primary-btn { width: 100%; min-height: 48px; }
.team-invite-form { margin-top: 26px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); }
.team-mail-warning {
  margin-top: 20px;
  padding: 13px 15px;
  display: grid;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--orange) 44%, var(--line));
  border-radius: 13px;
  background: var(--orange-soft);
}
.team-mail-warning strong { color: var(--text); font-size: 11px; }
.team-mail-warning span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.team-invite-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 8px; }
.team-invite-control input { min-height: 46px; }
.team-invite-control .primary-btn { min-width: 122px; min-height: 46px; }
.team-invite-form small { display: block; margin-top: 8px; color: var(--dim); font-size: 10px; line-height: 1.45; }
.team-list-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.team-list-heading h3 { font: 600 15px var(--display); }
.team-list-heading span { color: var(--dim); font: 9px var(--mono); }
.team-member { min-height: 60px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line-soft); }
.team-member:last-child { border-bottom: 0; }
.team-member-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: var(--orange-soft) center center / cover no-repeat; color: var(--orange); font: 600 11px var(--display); }
.team-member strong,
.team-member span:not(.team-member-avatar) { display: block; }
.team-member strong { font-size: 12px; }
.team-member .team-you-tag {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font: 500 8px var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.team-member span.team-you-tag { display: inline-flex; }
.team-member div span { margin-top: 3px; color: var(--dim); font-size: 10px; }
.team-member em { padding: 7px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font: normal 9px var(--mono); }
.team-member.is-pending { opacity: .78; }
.team-member.is-pending .team-member-avatar { background-color: var(--surface-3); }
.team-member-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.team-row-action {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 9px var(--body);
  cursor: pointer;
}
.team-row-action:hover { border-color: var(--text); color: var(--text); }
.team-row-action.is-danger:hover { border-color: var(--orange); color: var(--orange); }
.team-row-action:disabled { opacity: .45; cursor: wait; }
.team-leave-row {
  margin-top: 8px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
}
.team-leave-row strong,
.team-leave-row span { display: block; }
.team-leave-row strong { font-size: 12px; }
.team-leave-row span { margin-top: 4px; color: var(--dim); font-size: 10px; }
.team-leave-button { color: var(--orange); }
@media (max-width: 620px) {
  .team-settings-card { padding: 20px; }
  .team-settings-head { display: block; }
  .team-seat-count { display: inline-flex; margin-top: 14px; }
  .team-seat-store { align-items: flex-start; flex-direction: column; }
  .team-seat-store .ghost-btn { width: 100%; }
  .team-seat-actions { width: 100%; }
  .subscription-cancel-row { align-items: flex-start; flex-direction: column; }
  .team-invite-control { grid-template-columns: 1fr; }
  .team-invite-control .primary-btn { width: 100%; }
  .team-member { grid-template-columns: 38px minmax(0, 1fr); padding: 10px 0; }
  .team-member-avatar { width: 38px; height: 38px; }
  .team-member-end { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; margin-top: -6px; }
  .team-member-end em { width: fit-content; }
  .team-leave-row { align-items: flex-start; flex-direction: column; }
  .team-leave-button { width: 100%; }
}
.archive-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
}
.archive-row .card-menu { top: 56px; right: 0; }
.archive-row:last-child {
  border: 0;
}
.archive-row strong,
.archive-row span {
  display: block;
}
.archive-row span {
  color: var(--muted);
  font-size: 11px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 340px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
@media (min-width: 781px) {
  :root { --sidebar: 244px; }
  .dash-sidebar { padding: 20px 14px 14px; }
  .dash-logo { font-size: 16px; }
  .dash-logo img { width: 28px; height: 28px; }
  .dash-nav { margin-top: 30px; gap: 4px; }
  .nav-link { min-height: 42px; padding: 0 12px; font-size: 12px; }
  .plan-chip { padding: 14px; }
  .user-card { padding: 10px 5px; }
  .dash-topbar { height: 64px; padding: 0 clamp(20px, 3vw, 42px); }
  .icon-btn { width: 38px; height: 38px; }
  .theme-btn { flex-basis: 38px; }
  .dash-main { width: min(100%, 1240px); padding: 42px clamp(24px, 3.5vw, 46px) 64px; }
  .page-heading { margin-bottom: 32px; }
  .page-heading h1 { font-size: clamp(29px, 3.4vw, 45px); }
  .page-heading p { font-size: 13px; }
  .primary-btn,
  .ghost-btn { min-height: 42px; padding: 0 17px; font-size: 13px; }
  .stat-grid,
  .test-grid { gap: 13px; }
  .stat { min-height: 146px; padding: 20px; }
  .stat strong { font-size: 31px; }
  .section-bar { margin: 34px 0 15px; }
  .test-card { min-height: 268px; padding: 19px; }
  .test-card h3 { font-size: 15px; }
  .dash-card { border-radius: 18px; }
  .create-card,
  .settings-card { padding: 24px; }
  .field input,
  .field select { height: 43px; }
  .field textarea { min-height: 96px; }
  .field > span { font-size: 11px; }
  .profile-avatar { width: 60px; height: 60px; border-radius: 17px; }
  .settings-layout { max-width: 920px; }
  .result-hero { padding: 23px; }
  .audio-card { padding: 17px; }
  .comments-card { padding: 22px; }
}
@media (max-width: 1100px) {
  .test-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .create-layout {
    grid-template-columns: 1fr;
  }
  .create-side {
    position: static;
  }
  .audio-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .track-download > span { display: none; }
  .track-download { width: 34px; padding: 0; justify-content: center; }
}
@media (max-width: 780px) {
  :root {
    --sidebar: 280px;
  }
  .dash-sidebar {
    transform: translateX(-105%);
    transition: 0.25s;
  }
  .dash-sidebar.open {
    transform: none;
  }
  .side-close,
  .menu-btn {
    display: grid;
  }
  .side-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
  }
  .side-scrim.show {
    display: block;
  }
  .dash-workspace {
    margin-left: 0;
  }
  .dash-topbar {
    padding: 0 16px;
  }
  .dash-main {
    padding: 31px 16px 60px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .test-grid {
    grid-template-columns: 1fr;
  }
  .section-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .filters {
    max-width: 100%;
    overflow: auto;
  }
  .track-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .type-options { grid-template-columns: 1fr; }
  .field.full {
    grid-column: auto;
  }
  .top-actions .primary-btn {
    font-size: 0;
    width: 44px;
    padding: 0;
  }
  .top-actions .primary-btn::first-letter {
    font-size: 18px;
  }
  .result-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .results-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-actions .share-btn { flex: 1; min-width: 0; }
  .result-owner-menu { flex: 0 0 auto; }
  .trash-heading { flex-direction: column; }
  .trash-heading-actions { width: 100%; flex-wrap: wrap; }
  .trash-toolbar { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .trash-bulk { width: max-content; }
  .library-picker-list { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .audio-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .page-heading h1 {
    font-size: 31px;
  }
  .live-pill {
    display: none;
  }
  .test-grid {
    grid-template-columns: 1fr;
  }
  .big-row {
    grid-template-columns: 31px 60px minmax(0, 1fr);
    gap: 9px;
  }
  .top-kicker {
    display: none;
  }
  .comment {
    grid-template-columns: auto 1fr;
  }
  .comment time {
    grid-column: 2;
  }
  .settings-tabs {
    max-width: 100%;
    overflow: auto;
  }
  .dash-main { padding-inline: 14px; }
  .dash-topbar { padding-inline: 14px; }
  .page-heading { gap: 18px; }
  .create-header-wave { display: none; }
  .form-card,
  .launch-card,
  .settings-card { padding: 18px; }
  .track-upload { padding: 14px; }
  .notification-item { grid-template-columns: 32px minmax(0, 1fr); }
  .notification-item time { grid-column: 2; }
  .result-actions { gap: 6px; }
  .result-actions .ghost-btn { padding-inline: 12px; }
  .result-owner-menu > .more-btn { width: 42px; height: 42px; }
}
/* Compact rich-text editor used for questionnaire descriptions. */
.rich-description-field {
  gap: 8px !important;
}
.mini-editor-toolbar {
  min-height: 42px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--soft);
}
.mini-editor-toolbar button {
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.mini-editor-toolbar button:hover,
.mini-editor-toolbar button:focus-visible {
  background: var(--surface);
}
.mini-editor {
  min-height: 118px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.55;
  outline: none;
  overflow-wrap: anywhere;
}
.mini-editor:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--orange) 12%, transparent);
}
.mini-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}
.mini-editor ul,
.mini-editor ol {
  padding-left: 1.35em;
}
.edit-test-body .field:has(#editTestName) {
  display: none;
}
.test-question,
.result-hero-top p {
  display: none !important;
}
.description-editor {
  --editor-panel: var(--surface);
  --editor-field: var(--bg);
  --editor-line: var(--line);
  --editor-text: var(--text);
  --editor-muted: var(--muted);
  --editor-accent: var(--orange);
  overflow: hidden;
  border: 1px solid var(--editor-line);
  border-radius: 14px;
  background: var(--editor-panel);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.description-editor:focus-within {
  border-color: var(--editor-line);
  box-shadow: none;
}
.description-toolbar {
  min-height: 48px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid var(--editor-line);
  background: var(--editor-panel);
}
.description-toolbar-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--editor-muted);
  font: 700 13px var(--body);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.description-toolbar-btn:hover {
  background: var(--soft);
  color: var(--editor-text);
}
.description-toolbar-btn.is-active {
  background: var(--editor-accent);
  color: #17140f;
}
.description-toolbar-btn:focus-visible {
  outline: 2px solid var(--editor-accent);
  outline-offset: 1px;
}
.description-toolbar-btn.btn-italic { font-style: italic; }
.description-toolbar-btn.btn-underline { text-decoration: underline; }
.description-toolbar-divider {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: var(--editor-line);
}
.description-editor-input {
  min-height: 140px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px 16px;
  background: var(--editor-field);
  color: var(--editor-text);
  font-size: 14px;
  line-height: 1.55;
  outline: none;
  overflow-wrap: anywhere;
}
.description-editor-input h1 {
  margin: 0 0 8px;
  font: 700 20px/1.3 var(--display);
}
.description-editor-input h2 {
  margin: 0 0 6px;
  font: 700 16px/1.3 var(--display);
}
.description-editor-input p { margin: 0 0 8px; }
.description-editor-input p:last-child,
.description-editor-input h1:last-child,
.description-editor-input h2:last-child { margin-bottom: 0; }
.description-editor-input:empty::before {
  content: attr(data-placeholder);
  color: var(--editor-muted);
  pointer-events: none;
}
.description-editor-footer {
  min-height: 53px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid var(--editor-line);
  background: var(--editor-panel);
}
.description-char-counter {
  color: var(--editor-muted);
  font-size: 11.5px;
}
.description-char-counter.is-limit { color: var(--editor-accent); }
.field > .track-comment-counter {
  display: block;
  justify-self: start;
  color: var(--muted);
  font: 400 11.5px var(--body);
}
.field > .track-comment-counter.is-limit {
  color: var(--orange);
}
.delete-account-card {
  margin-top: 22px;
  border-color: color-mix(in srgb, #d83a20 45%, var(--line));
  display: grid;
  gap: 24px;
}
.delete-account-card h2 { margin: 8px 0 6px; font: 600 20px var(--display); }
.delete-account-card p { color: var(--muted); }
.delete-account-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.delete-account-button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #d83a20;
  border-radius: 999px;
  background: #d83a20;
  color: #fff;
  font: 600 14px var(--body);
  cursor: pointer;
}
.delete-account-button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 720px) { .delete-account-fields { grid-template-columns: 1fr; } }
