:root {
  --ink: #050505;
  --ink-soft: #0b0b0c;
  --panel: #101011;
  --panel-high: #151516;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --paper: #f5f3ef;
  --muted: #8d8b91;
  --muted-light: #b8b5bd;
  --purple: #8c52ff;
  --purple-soft: #a77aff;
  --success: #ff8259;
  --success-soft: #ff9a77;
  --green: #a7d36f;
  --radius: 30px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html[data-theme="light"] {
  --ink: #f4f1eb;
  --ink-soft: #ebe7df;
  --panel: #ffffff;
  --panel-high: #f8f6f1;
  --line: rgba(29, 26, 35, 0.13);
  --line-soft: rgba(29, 26, 35, 0.075);
  --paper: #17151b;
  --muted: #6f6b74;
  --muted-light: #4d4953;
  --purple: #7d45ed;
  --purple-soft: #6d36dc;
  --green: #567c22;
  color: var(--paper);
  background: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
}

body::selection {
  background: var(--purple);
  color: #fff;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.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;
}

.section-shell {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(167, 211, 111, 0.1);
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover {
  background: #fff;
}

.button-dark {
  background: #050505;
  color: #fff;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #ddd9e2;
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.button-small {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 0.74rem;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.025);
  color: #b9b5bd;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  border-color: rgba(140, 82, 255, 0.42);
  color: var(--purple-soft);
  transform: rotate(10deg);
}

.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.play-icon {
  font-size: 0.63rem;
}

/* Opening ident */

.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #8c52ff;
  opacity: 1;
  visibility: visible;
  transition: opacity 550ms ease, visibility 550ms ease;
}

.brand-intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-skip {
  position: absolute;
  right: 26px;
  bottom: 24px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  background: rgba(140, 82, 255, 0.48);
  color: #050505;
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

/* Header */

.site-header,
.auth-header {
  position: relative;
  z-index: 50;
  width: min(1400px, calc(100% - 64px));
  height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.site-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.wordmark {
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.76;
}

.wordmark-name {
  font-size: 1.58rem;
  font-weight: 900;
  letter-spacing: -0.095em;
}

.wordmark-sub {
  margin-top: 8px;
  font-size: 0.47rem;
  font-weight: 600;
  letter-spacing: 0.61em;
  text-indent: 0.61em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 37px;
}

.primary-nav a,
.text-link,
.back-home {
  color: #aaa8ae;
  font-size: 0.73rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.primary-nav a:hover,
.text-link:hover,
.back-home:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 15px;
  height: 1px;
  margin: 4px auto;
  background: #fff;
}

/* Hero */

.landing-page {
  background:
    radial-gradient(circle at 78% 18%, rgba(140, 82, 255, 0.085), transparent 25%),
    #050505;
}

.hero {
  min-height: 790px;
  padding: 82px 0 106px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 38px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: 4px;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 29px;
  font-size: clamp(4rem, 7vw, 7.5rem);
  line-height: 0.84;
  letter-spacing: -0.082em;
  font-weight: 720;
}

.hero h1 span {
  display: block;
  color: #747278;
  font-weight: 520;
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 35px;
  color: #9f9da3;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note {
  max-width: 480px;
  margin-top: 70px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
}

.hero-note span {
  color: var(--purple-soft);
  font-size: 0.63rem;
  font-weight: 700;
}

.hero-note p {
  margin: 0;
  color: #77757b;
  font-size: 0.73rem;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, #000 20%, transparent 68%);
}

.ambient-glow {
  position: absolute;
  z-index: -2;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(140, 82, 255, 0.24);
  filter: blur(100px);
}

.visual-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(140, 82, 255, 0.21);
  border-radius: 50%;
}

.orbit-one {
  width: 590px;
  height: 590px;
  animation: orbit 16s linear infinite;
}

.orbit-one::after,
.orbit-two::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 20px var(--purple);
}

.orbit-one::after {
  top: 80px;
  right: 62px;
}

.orbit-two {
  width: 480px;
  height: 480px;
  border-color: rgba(255, 255, 255, 0.08);
  animation: orbit 11s linear infinite reverse;
}

.orbit-two::after {
  left: 7px;
  top: 260px;
  width: 5px;
  height: 5px;
  background: #fff;
  box-shadow: 0 0 14px #fff;
}

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

.hero-label {
  position: absolute;
  z-index: 5;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 7, 8, 0.72);
  color: #77747e;
  backdrop-filter: blur(10px);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.hero-label-top {
  top: 66px;
  right: 80px;
}

.hero-label-side {
  left: 2px;
  top: 210px;
  transform: rotate(-90deg);
}

.device-frame {
  position: relative;
  z-index: 3;
  width: 292px;
  height: 596px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 52px;
  background: linear-gradient(145deg, #2c2c2e, #09090a 21%, #111 76%, #313134);
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.66), 0 0 0 4px #080809;
  transform: rotate(4deg);
}

.device-frame::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: inherit;
}

.device-canvas {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 22%, rgba(140, 82, 255, 0.12), transparent 29%),
    #09090a;
}

.device-topbar {
  position: relative;
  z-index: 8;
  height: 42px;
  padding: 12px 17px 0;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.48rem;
}

.device-island {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 82px;
  height: 23px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.device-status {
  letter-spacing: 0.08em;
}

.device-brand {
  position: absolute;
  top: 74px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  transform: translateX(-50%);
}

.mini-mark {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #070707;
  font-weight: 900;
}

.device-ghost-copy {
  position: absolute;
  top: 130px;
  left: 31px;
  right: 31px;
}

.device-ghost-copy span {
  display: block;
  height: 7px;
  margin-bottom: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.055);
}

.device-ghost-copy span:nth-child(1) { width: 78%; }
.device-ghost-copy span:nth-child(2) { width: 100%; }
.device-ghost-copy span:nth-child(3) { width: 56%; }

.verification-sheet {
  position: absolute;
  inset: auto 0 0;
  min-height: 332px;
  padding: 25px 21px 27px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(160deg, #1d1d1e, #151516);
  box-shadow: 0 -22px 70px rgba(0, 0, 0, 0.5);
}

.sheet-handle {
  width: 30px;
  height: 3px;
  margin: 0 auto 27px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.27);
}

.verification-entry,
.verification-success {
  transition: opacity 450ms ease, transform 500ms cubic-bezier(.2,.8,.2,1), filter 450ms ease;
}

.verification-entry {
  opacity: 1;
  transform: translateY(0);
}

.mini-eyebrow {
  margin-bottom: 9px !important;
  color: var(--success-soft) !important;
  font-size: 0.48rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.verification-entry h2 {
  margin-bottom: 9px;
  font-size: 1.04rem;
  letter-spacing: -0.045em;
}

.verification-entry > p:not(.mini-eyebrow, .resend-copy) {
  max-width: 210px;
  margin-bottom: 22px;
  color: #77747a;
  font-size: 0.58rem;
  line-height: 1.45;
}

.demo-code {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.demo-code span {
  height: 47px;
  border: 1px solid rgba(255, 130, 89, 0.36);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.9rem;
  font-weight: 650;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 180ms ease;
}

.demo-code span.filled {
  border-color: rgba(255, 130, 89, 0.75);
  box-shadow: 0 0 18px rgba(255, 130, 89, 0.1);
  transform: translateY(-1px);
}

.resend-copy {
  margin: 15px 0 0;
  color: #68666b;
  font-size: 0.51rem;
  text-align: center;
}

.resend-copy strong {
  color: #fff;
  font-weight: 600;
}

.verification-success {
  position: absolute;
  inset: 88px 20px 28px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(15px) scale(0.97);
  pointer-events: none;
}

.verification-success p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.verification-sheet.verified .verification-entry {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(-13px) scale(0.98);
}

.verification-sheet.verified .verification-success {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.glow-check {
  position: relative;
  width: 49px;
  height: 49px;
  border: 1.5px solid var(--success);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 130, 89, 0.16);
  box-shadow:
    0 0 0 7px rgba(255, 130, 89, 0.07),
    0 0 24px rgba(255, 130, 89, 0.75),
    0 0 65px rgba(255, 130, 89, 0.35),
    inset 0 0 16px rgba(255, 130, 89, 0.22);
}

.glow-check::before {
  content: "";
  position: absolute;
  inset: -48px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 130, 89, 0.25), transparent 67%);
  animation: checkPulse 1.8s ease-in-out infinite;
}

.glow-check span {
  font-size: 1.36rem;
  text-shadow: 0 0 8px #fff;
}

@keyframes checkPulse {
  50% { transform: scale(1.13); opacity: 0.72; }
}

.device-homebar {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 16px;
  width: 96px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.82);
  transform: translateX(-50%);
}

.floating-card {
  position: absolute;
  z-index: 5;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 14, 15, 0.74);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  margin-bottom: 3px;
  font-size: 0.69rem;
}

.floating-card div > span {
  color: #716f75;
  font-size: 0.5rem;
}

.floating-card-left {
  left: 32px;
  bottom: 108px;
}

.floating-card-right {
  right: -5px;
  top: 170px;
}

.floating-icon {
  color: var(--purple-soft);
  font-size: 1.3rem;
}

.mini-avatar {
  width: 27px;
  height: 27px;
  margin-right: -16px;
  border: 2px solid #121213;
  border-radius: 50%;
}

.avatar-one {
  background: linear-gradient(145deg, #b4dd79, #394922);
}

.avatar-two {
  margin-right: 0;
  background: linear-gradient(145deg, #a77aff, #351b67);
}

/* Capability strip */

.capability-strip {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: #080809;
}

.strip-track {
  width: max-content;
  min-height: 74px;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  animation: ticker 30s linear infinite;
}

.strip-track span {
  color: #77757b;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.strip-track i {
  color: var(--purple);
  font-style: normal;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Work */

.work {
  padding-block: 150px 160px;
}

.section-heading {
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.75fr;
  align-items: end;
  gap: 32px;
}

.section-heading .eyebrow {
  align-self: start;
}

.section-heading h2,
.method h2,
.studio h2 {
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.072em;
  font-weight: 620;
}

.section-heading > p:last-child {
  margin: 0;
  color: #858289;
  font-size: 0.88rem;
  line-height: 1.65;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.work-card {
  min-height: 565px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0a0a0b;
}

.work-card-featured {
  grid-row: span 2;
  min-height: 900px;
  background: linear-gradient(145deg, rgba(140, 82, 255, 0.08), transparent 50%), #0a0a0b;
}

.card-index {
  color: #6d6b71;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-copy {
  margin-top: auto;
  padding: 28px 9px 7px;
  border-top: 1px solid var(--line-soft);
}

.card-copy h3 {
  max-width: 470px;
  margin-bottom: 13px;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 560;
}

.card-copy p {
  max-width: 450px;
  margin: 0;
  color: #79767d;
  font-size: 0.78rem;
  line-height: 1.6;
}

.product-visual {
  min-height: 600px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.product-window {
  width: 84%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #101012;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.55);
  transform: rotateX(4deg) rotateY(-5deg);
}

.window-bar {
  height: 37px;
  padding-left: 13px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}

.window-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444248;
}

.window-layout {
  min-height: 350px;
  display: grid;
  grid-template-columns: 52px 1fr;
}

.window-sidebar {
  padding-top: 26px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.window-sidebar i {
  width: 16px;
  height: 16px;
  border: 1px solid #302f33;
  border-radius: 5px;
}

.window-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.window-main > p {
  margin: 22px 0 34px;
  color: #aaa7af;
  font-size: 0.73rem;
}

.ai-pulse {
  position: relative;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(140, 82, 255, 0.32);
  border-radius: 25px;
  display: grid;
  place-items: center;
  background: rgba(140, 82, 255, 0.08);
  box-shadow: 0 0 60px rgba(140, 82, 255, 0.18);
}

.ai-pulse::before,
.ai-pulse::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(140, 82, 255, 0.12);
  border-radius: 33px;
}

.ai-pulse::after {
  inset: -24px;
  border-radius: 42px;
}

.ai-pulse span {
  color: var(--purple-soft);
  font-size: 2.4rem;
  font-weight: 900;
}

.prompt-line {
  width: 72%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #2a292d;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5e5c62;
  font-size: 0.58rem;
}

.prompt-line i {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #050505;
  font-style: normal;
}

.system-visual,
.direction-visual {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
}

.system-visual svg {
  position: absolute;
  inset: 40px 0 0;
  width: 100%;
  height: 230px;
}

.system-visual path {
  fill: none;
  stroke: rgba(140, 82, 255, 0.26);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.node {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #101012;
  color: #77747d;
  font-size: 0.54rem;
}

.node-a { left: 4%; top: 46%; }
.node-b { top: 10%; left: 45%; }
.node-c { right: 4%; top: 46%; }

.system-core {
  position: relative;
  z-index: 3;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(140, 82, 255, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--purple-soft);
  background: rgba(140, 82, 255, 0.08);
  box-shadow: 0 0 55px rgba(140, 82, 255, 0.2);
}

.direction-visual {
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.direction-number {
  color: transparent;
  font-size: 8rem;
  font-weight: 800;
  letter-spacing: -0.09em;
  -webkit-text-stroke: 1px rgba(140, 82, 255, 0.45);
}

.direction-scan {
  position: absolute;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--purple);
  box-shadow: 0 0 18px var(--purple);
  animation: scan 3.5s ease-in-out infinite;
}

.direction-visual > span {
  position: absolute;
  bottom: 52px;
  color: #69676d;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes scan {
  0%, 100% { transform: translateX(-130px); opacity: 0; }
  20%, 80% { opacity: 1; }
  50% { transform: translateX(130px); }
}

/* Method */

.method {
  padding-block: 140px 170px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}

.method-sticky {
  position: sticky;
  top: 80px;
  align-self: start;
}

.method-art {
  position: relative;
  width: min(430px, 92%);
  aspect-ratio: 1;
  margin: 70px auto 0;
  display: grid;
  place-items: center;
}

.method-art::after {
  content: "";
  position: absolute;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: rgba(140, 82, 255, 0.22);
  filter: blur(48px);
}

.method-art > span {
  position: relative;
  z-index: 3;
  color: #fff;
  font-size: 4.8rem;
  font-weight: 900;
}

.method-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.ring-a { inset: 9%; }
.ring-b { inset: 22%; border-color: rgba(140, 82, 255, 0.26); }
.ring-c { inset: 36%; background: rgba(140, 82, 255, 0.08); }

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  min-height: 210px;
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
}

.method-list li:first-child {
  border-top: 1px solid var(--line);
}

.method-list li > span {
  color: var(--purple-soft);
  font-size: 0.66rem;
  font-weight: 700;
}

.method-list h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 520;
}

.method-list p {
  max-width: 480px;
  margin: 0;
  color: #807d84;
  font-size: 0.82rem;
  line-height: 1.7;
}

/* Studio and footer */

.studio {
  padding-bottom: 120px;
}

.studio-panel {
  min-height: 620px;
  padding: 72px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  background: var(--purple);
  color: #050505;
}

.studio-copy .eyebrow {
  color: rgba(0, 0, 0, 0.62);
}

.studio-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin: 29px 0 34px;
  color: rgba(0, 0, 0, 0.66);
  font-size: 1rem;
  line-height: 1.6;
}

.studio-logo-crop {
  height: 360px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 26px;
  background: #8c52ff;
  box-shadow: 0 30px 80px rgba(58, 19, 130, 0.2);
}

.studio-logo-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.5);
}

.site-footer {
  padding: 100px 0 30px;
  border-top: 1px solid var(--line-soft);
}

.footer-wordmark {
  overflow: hidden;
  color: #151516;
  font-size: clamp(8rem, 23vw, 22rem);
  line-height: 0.76;
  font-weight: 900;
  letter-spacing: -0.095em;
  text-align: center;
  user-select: none;
}

.footer-meta {
  margin-top: 55px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #76737a;
  font-size: 0.75rem;
}

.footer-meta p {
  margin: 0;
}

.footer-meta div {
  display: flex;
  gap: 30px;
}

.footer-meta a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 90px;
  display: flex;
  justify-content: space-between;
  color: #3f3e42;
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Reveal motion */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 750ms ease, transform 750ms cubic-bezier(.2,.8,.2,1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 120ms;
}

/* Auth page */

.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 72% 45%, rgba(140, 82, 255, 0.12), transparent 30%),
    #050505;
  background-size: 46px 46px, 46px 46px, auto, auto;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.65) 100%);
}

.auth-header {
  justify-content: space-between;
}

.back-home {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 64px));
  min-height: calc(100vh - 96px);
  margin-inline: auto;
  padding: 32px 0 70px;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  align-items: center;
  gap: 90px;
}

.auth-story {
  padding: 40px 0 20px;
}

.auth-story h1 {
  max-width: 680px;
  margin-bottom: 31px;
  font-size: clamp(4rem, 6.5vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: -0.078em;
  font-weight: 650;
}

.auth-story > p:not(.eyebrow) {
  max-width: 530px;
  color: #8b888f;
  font-size: 1.02rem;
  line-height: 1.65;
}

.access-points {
  max-width: 590px;
  margin-top: 65px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.access-points > div {
  min-height: 140px;
  padding: 20px 20px 20px 0;
}

.access-points > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.access-points span {
  color: var(--purple-soft);
  font-size: 0.58rem;
  font-weight: 700;
}

.access-points p {
  margin: 30px 0 0;
  color: #66646a;
  font-size: 0.64rem;
  line-height: 1.55;
}

.access-points strong {
  display: block;
  margin-bottom: 5px;
  color: #c6c2ca;
  font-size: 0.7rem;
}

.story-footnote {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 17px;
}

.story-orb {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #050505;
  font-size: 1.45rem;
  font-weight: 900;
}

.story-footnote p {
  margin: 0;
  color: #555359;
  font-size: 0.63rem;
  line-height: 1.5;
}

.auth-card-wrap {
  display: grid;
  place-items: center;
}

.auth-card {
  position: relative;
  width: min(100%, 450px);
  min-height: 700px;
  padding: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(140, 82, 255, 0.18) 42%, rgba(255, 255, 255, 0.05));
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.6), 0 0 80px rgba(140, 82, 255, 0.06);
}

.auth-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 122, 255, 0.9), transparent);
  box-shadow: 0 0 24px rgba(140, 82, 255, 0.6);
  pointer-events: none;
}

.auth-screen {
  position: relative;
  z-index: 2;
  min-height: 698px;
  padding: 57px 42px 46px;
  overflow: hidden;
  border-radius: 27px;
  background: linear-gradient(160deg, #141415, #0f0f10 66%);
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0, rgba(140, 82, 255, 0.055), transparent 31%);
}

.auth-panel {
  width: 100%;
  animation: panelIn 480ms cubic-bezier(.2,.8,.2,1) both;
}

.auth-panel[hidden] {
  display: none;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateX(16px); filter: blur(3px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.panel-back {
  position: absolute;
  top: 17px;
  left: 26px;
  z-index: 5;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a5a2aa;
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
}

.panel-kicker {
  margin-bottom: 15px;
  color: var(--purple-soft);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.auth-panel h2 {
  margin-bottom: 16px;
  font-size: 2.55rem;
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 680;
}

.panel-intro {
  max-width: 310px;
  margin-bottom: 29px;
  color: #79777d;
  font-size: 0.68rem;
  line-height: 1.55;
}

.field {
  position: relative;
  min-height: 49px;
  margin-bottom: 10px;
  border: 1px solid #252527;
  border-radius: 10px;
  display: flex;
  align-items: center;
  background: #19191a;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field:focus-within {
  border-color: rgba(140, 82, 255, 0.67);
  box-shadow: 0 0 0 4px rgba(140, 82, 255, 0.08);
}

.field.has-error {
  border-color: rgba(255, 130, 89, 0.75);
  animation: fieldShake 340ms ease;
}

@keyframes fieldShake {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.field-icon {
  width: 39px;
  color: #59575c;
  font-size: 0.65rem;
  text-align: center;
}

.field input {
  min-width: 0;
  flex: 1;
  height: 47px;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f2eff5;
  font-size: 0.7rem;
}

.field input::placeholder {
  color: #57555a;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f2eff5;
  caret-color: #f2eff5;
  box-shadow: 0 0 0 1000px #19191a inset;
  transition: background-color 9999s ease-out;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 11px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #66646a;
  font-size: 0.54rem;
  cursor: pointer;
}

.forgot-link,
.resend-button {
  margin: 4px 0 22px auto;
  padding: 2px 0;
  border: 0;
  display: block;
  background: transparent;
  color: #77757b;
  font-size: 0.56rem;
  cursor: pointer;
}

.forgot-link:hover,
.resend-button strong,
.panel-switch button:hover {
  color: #fff;
}

.auth-primary {
  width: 100%;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: #f7f5f2;
  color: #080808;
  font-size: 0.68rem;
  font-weight: 730;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.auth-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.auth-primary:disabled {
  opacity: 0.55;
  cursor: progress;
}

.auth-divider {
  position: relative;
  height: 33px;
  display: grid;
  place-items: center;
  color: #47464a;
  font-size: 0.55rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-soft);
}

.auth-divider span {
  position: relative;
  padding-inline: 11px;
  background: #111112;
}

.social-stack {
  display: grid;
  gap: 8px;
}

.social-stack button {
  min-height: 43px;
  border: 1px solid #29292b;
  border-radius: 9px;
  background: #1b1b1c;
  color: #d9d6dc;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.social-stack button:hover {
  border-color: #3a393d;
  background: #202022;
}

.apple-mark,
.google-mark {
  margin-right: 8px;
}

.apple-mark {
  color: #fff;
  font-size: 0.67rem;
}

.google-mark {
  color: #f0b94e;
  font-weight: 900;
}

.panel-switch {
  margin: 18px 0 0;
  color: #5a585e;
  font-size: 0.56rem;
  text-align: center;
}

.panel-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b8b5bc;
  font-weight: 650;
  cursor: pointer;
}

.terms-check {
  margin: 5px 0 20px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #77757b;
  font-size: 0.55rem;
  line-height: 1.45;
  cursor: pointer;
}

.terms-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--purple);
}

.identity-panel h2 {
  font-size: 2.28rem;
}

.document-types {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.document-option {
  position: relative;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #29282c;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  align-items: center;
  gap: 8px;
  background: #19191a;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.document-option:has(input:checked) {
  border-color: rgba(140, 82, 255, 0.68);
  background: rgba(140, 82, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(140, 82, 255, 0.05);
}

.document-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.document-option-icon {
  color: var(--purple-soft);
  font-size: 1.05rem;
}

.document-option strong,
.document-option small {
  display: block;
}

.document-option strong {
  color: #d9d6dc;
  font-size: 0.61rem;
}

.document-option small {
  margin-top: 4px;
  color: #66646a;
  font-size: 0.49rem;
}

.document-option i {
  width: 15px;
  height: 15px;
  border: 1px solid #3c3a40;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0.45rem;
  font-style: normal;
}

.document-option:has(input:checked) i {
  border-color: var(--purple);
  background: var(--purple);
  color: #090909;
}

.identity-upload-grid {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.identity-upload {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border: 1px dashed #343238;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.identity-upload:hover,
.identity-upload:focus-within,
.identity-upload.has-file {
  border-color: rgba(140, 82, 255, 0.62);
  background: rgba(140, 82, 255, 0.04);
}

.identity-upload > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.upload-empty[hidden],
.upload-preview[hidden] {
  display: none;
}

.upload-empty i {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border: 1px solid #37353b;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--purple-soft);
  font-size: 0.9rem;
  font-style: normal;
}

.upload-empty strong {
  color: #bcb9c1;
  font-size: 0.58rem;
}

.upload-empty small {
  margin-top: 5px;
  color: #57555a;
  font-size: 0.45rem;
}

.upload-preview {
  position: absolute;
  inset: 0;
}

.upload-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent 65%);
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview > span {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 9px;
}

.upload-preview strong,
.upload-preview small {
  display: block;
}

.upload-preview strong {
  color: #fff;
  font-size: 0.56rem;
}

.upload-preview small {
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #87848c;
  font-size: 0.45rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-privacy {
  margin: 0 0 16px;
  display: flex;
  gap: 8px;
  color: #646268;
  font-size: 0.49rem;
  line-height: 1.45;
}

.identity-privacy span {
  flex: 0 0 auto;
  color: var(--green);
}

.otp-inputs {
  margin: 8px 0 19px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.otp-inputs input {
  width: 100%;
  height: 67px;
  border: 1px solid #2c2b2f;
  border-radius: 12px;
  outline: 0;
  background: #19191a;
  color: #fff;
  caret-color: var(--success);
  font-size: 1.25rem;
  font-weight: 650;
  text-align: center;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.otp-inputs input:focus,
.otp-inputs input.filled {
  border-color: rgba(255, 130, 89, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 130, 89, 0.05), 0 0 22px rgba(255, 130, 89, 0.07);
}

.otp-inputs input.filled {
  transform: translateY(-1px);
}

.otp-inputs.invalid input {
  border-color: rgba(255, 130, 89, 0.84);
  animation: fieldShake 340ms ease;
}

.verify-panel .resend-button {
  margin-inline: auto;
  margin-bottom: 28px;
}

.verified-panel {
  min-height: 500px;
}

.verified-centre {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.verified-centre h2 {
  margin-bottom: 45px;
  font-size: 2rem;
}

.verified-centre > p:last-child {
  max-width: 220px;
  margin: 43px 0 0;
  color: #6e6c72;
  font-size: 0.62rem;
  line-height: 1.5;
}

.glow-check-large {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  animation: checkArrive 650ms cubic-bezier(.2,1.4,.3,1) both;
}

.glow-check-large span {
  font-size: 2rem;
}

@keyframes checkArrive {
  from { opacity: 0; transform: scale(0.45) rotate(-12deg); filter: blur(8px); }
  to { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 25px;
  min-width: 250px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 26, 28, 0.9);
  color: #ece8ef;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  font-size: 0.69rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Contributor dashboard */

.dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(140, 82, 255, 0.07), transparent 22%),
    #080809;
  color: #f3f1f5;
}

.dashboard-shell {
  min-height: 100vh;
}

.dashboard-sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  width: 242px;
  padding: 29px 20px 22px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  background: rgba(8, 8, 9, 0.96);
  backdrop-filter: blur(20px);
}

.dashboard-wordmark {
  margin: 3px 0 58px 7px;
}

.dashboard-nav {
  display: grid;
  gap: 5px;
}

.dashboard-nav button,
.sidebar-link {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  background: transparent;
  color: #747178;
  font-size: 0.67rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 170ms ease, background 170ms ease;
}

.dashboard-nav button:hover,
.dashboard-nav button.active,
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.045);
  color: #f0edf3;
}

.dashboard-nav button.active {
  box-shadow: inset 2px 0 var(--purple);
}

.dashboard-nav button > span,
.sidebar-link > span {
  color: #66636a;
  font-size: 0.9rem;
}

.dashboard-nav button.active > span {
  color: var(--purple-soft);
}

.dashboard-nav button i {
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(140, 82, 255, 0.13);
  color: var(--purple-soft);
  font-size: 0.48rem;
  font-style: normal;
}

.sidebar-bottom {
  margin-top: auto;
}

.platform-status {
  margin-bottom: 12px;
  padding: 14px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(167, 211, 111, 0.08), 0 0 12px rgba(167, 211, 111, 0.35);
}

.platform-status strong,
.platform-status small {
  display: block;
}

.platform-status strong {
  margin-bottom: 4px;
  color: #aaa7ae;
  font-size: 0.56rem;
}

.platform-status small {
  color: #4f4d52;
  font-size: 0.47rem;
}

.sidebar-link {
  min-height: 37px;
  grid-template-columns: 25px 1fr;
  font-size: 0.57rem;
}

.dashboard-main {
  min-height: 100vh;
  margin-left: 242px;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 78px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 9, 0.82);
  backdrop-filter: blur(24px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.topbar-left > div span,
.topbar-left > div strong {
  display: block;
}

.topbar-left > div span {
  margin-bottom: 3px;
  color: #77747a;
  font-size: 0.55rem;
}

.topbar-left > div strong {
  color: #bdb9c1;
  font-size: 0.64rem;
  font-weight: 600;
}

.dashboard-menu {
  display: none;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #101011;
  color: #88858c;
  cursor: pointer;
}

.icon-button i {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 5px;
  height: 5px;
  border: 1px solid #111;
  border-radius: 50%;
  background: var(--purple);
}

.location-chip,
.profile-chip {
  min-height: 46px;
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #101011;
  cursor: pointer;
}

.location-chip > span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #19181b;
  font-size: 0.85rem;
}

.location-chip small,
.location-chip strong,
.profile-chip small,
.profile-chip strong {
  display: block;
  white-space: nowrap;
}

.location-chip small,
.profile-chip small {
  margin-bottom: 2px;
  color: #5e5b62;
  font-size: 0.46rem;
  font-weight: 500;
}

.location-chip strong,
.profile-chip strong {
  color: #d1cdd4;
  font-size: 0.59rem;
  font-weight: 650;
}

.location-chip > i {
  margin-left: 5px;
  color: #5a575e;
  font-size: 0.55rem;
  font-style: normal;
}

.location-chip.unconfigured {
  border-color: rgba(255, 130, 89, 0.24);
  background: rgba(255, 130, 89, 0.035);
}

.location-chip.unconfigured strong {
  color: var(--success-soft);
}

.profile-chip > span:first-child {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #090909;
  font-size: 0.57rem;
  font-weight: 800;
}

.dashboard-content {
  width: min(1240px, calc(100% - 68px));
  margin-inline: auto;
  padding: 62px 0 26px;
}

.dashboard-welcome {
  margin-bottom: 38px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.dashboard-welcome .eyebrow {
  margin-bottom: 18px;
  font-size: 0.61rem;
}

.dashboard-welcome h1 {
  margin-bottom: 13px;
  font-size: clamp(2.9rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.067em;
  font-weight: 620;
}

.dashboard-welcome h1 span {
  color: #716f75;
}

.dashboard-welcome > div > p:last-child {
  max-width: 590px;
  margin: 0;
  color: #76737a;
  font-size: 0.75rem;
  line-height: 1.6;
}

.dashboard-stats {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dashboard-stats article {
  min-height: 134px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  display: flex;
  gap: 14px;
  background: #0d0d0e;
}

.stat-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

.stat-icon.purple { color: #b18cff; background: rgba(140, 82, 255, 0.11); }
.stat-icon.green { color: var(--green); background: rgba(167, 211, 111, 0.09); }
.stat-icon.orange { color: var(--success); background: rgba(255, 130, 89, 0.09); }
.stat-icon.blue { color: #75b8ff; background: rgba(117, 184, 255, 0.09); }

.dashboard-stats small,
.dashboard-stats strong,
.dashboard-stats p {
  display: block;
}

.dashboard-stats small {
  margin-bottom: 10px;
  color: #6c6970;
  font-size: 0.52rem;
}

.dashboard-stats strong {
  color: #e5e1e8;
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}

.dashboard-stats p {
  margin: 8px 0 0;
  color: #4f4d52;
  font-size: 0.47rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
}

.projects-panel,
.onboarding-panel {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #0d0d0e;
}

.projects-panel {
  min-height: 530px;
  padding: 24px;
}

.onboarding-panel {
  align-self: start;
  padding: 24px;
}

.panel-heading-row {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-overline {
  margin-bottom: 7px;
  color: var(--purple-soft);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-heading-row h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  font-weight: 620;
}

.panel-heading-row button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #78757c;
  font-size: 0.56rem;
  cursor: pointer;
}

.panel-heading-row > span {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
}

.project-list {
  display: grid;
  gap: 9px;
}

.project-list.locked {
  min-height: 420px;
  place-items: center;
}

.project-empty {
  max-width: 340px;
  text-align: center;
}

.project-empty > span {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border: 1px solid rgba(140, 82, 255, 0.22);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--purple-soft);
  background: rgba(140, 82, 255, 0.07);
  box-shadow: 0 0 45px rgba(140, 82, 255, 0.08);
}

.project-empty h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  letter-spacing: -0.035em;
}

.project-empty p {
  margin-bottom: 20px;
  color: #68666c;
  font-size: 0.62rem;
  line-height: 1.6;
}

.project-empty .button {
  min-height: 40px;
  font-size: 0.58rem;
}

.project-card {
  min-height: 126px;
  padding: 16px;
  border: 1px solid #1e1e20;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 14px;
  background: #111112;
  transition: border-color 170ms ease, transform 170ms ease;
}

.project-card:hover {
  border-color: #302e33;
  transform: translateY(-1px);
}

.project-accent {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
}

.project-accent.purple { color: #b18cff; background: rgba(140, 82, 255, 0.11); }
.project-accent.green { color: var(--green); background: rgba(167, 211, 111, 0.09); }
.project-accent.orange { color: var(--success); background: rgba(255, 130, 89, 0.09); }
.project-accent.blue { color: #75b8ff; background: rgba(117, 184, 255, 0.09); }

.project-card-top {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.project-card-top span {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(167, 211, 111, 0.08);
  color: var(--green);
  font-size: 0.42rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card-top small,
.project-card-main > p {
  color: #555359;
  font-size: 0.48rem;
}

.project-card-main h3 {
  margin-bottom: 5px;
  font-size: 0.76rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.project-card-main > p {
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  gap: 5px;
}

.project-tags span {
  padding: 4px 7px;
  border: 1px solid #29282b;
  border-radius: 999px;
  color: #77747b;
  font-size: 0.43rem;
}

.project-card-side {
  min-width: 122px;
  padding-left: 16px;
  border-left: 1px solid var(--line-soft);
  text-align: right;
}

.project-card-side small,
.project-card-side strong {
  display: block;
}

.project-card-side small {
  margin-bottom: 5px;
  color: #565359;
  font-size: 0.45rem;
}

.project-card-side strong {
  margin-bottom: 13px;
  color: #d8d4db;
  font-size: 0.62rem;
}

.project-card-side button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple-soft);
  font-size: 0.5rem;
  font-weight: 650;
  cursor: pointer;
}

.progress-track,
.config-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #1b1a1d;
}

.progress-track > span,
.config-progress > span {
  display: block;
  width: 67%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #b88fff);
  box-shadow: 0 0 15px rgba(140, 82, 255, 0.35);
  transition: width 600ms ease;
}

.checklist {
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 18px;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checklist li > i {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 1px solid #353339;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #77747b;
  font-size: 0.5rem;
  font-style: normal;
}

.checklist li.complete > i {
  border-color: rgba(167, 211, 111, 0.25);
  background: rgba(167, 211, 111, 0.08);
  color: var(--green);
}

.checklist strong,
.checklist small {
  display: block;
}

.checklist strong {
  margin-bottom: 4px;
  color: #aaa7ae;
  font-size: 0.59rem;
}

.checklist small {
  color: #57555a;
  font-size: 0.47rem;
}

.checklist-action {
  width: 100%;
  min-height: 40px;
  border: 1px solid #2b292e;
  border-radius: 9px;
  background: #171719;
  color: #c7c3ca;
  font-size: 0.55rem;
  font-weight: 650;
  cursor: pointer;
}

.checklist-action:disabled {
  color: var(--green);
  cursor: default;
}

.region-policy {
  margin: 15px 0 0;
  color: #4f4c52;
  font-size: 0.44rem;
  line-height: 1.55;
  text-align: center;
}

.dashboard-footer {
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  color: #444247;
  font-size: 0.48rem;
}

/* Regional access and M-Pesa flow */

.proxy-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(2, 2, 3, 0.78);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.proxy-gate.open {
  opacity: 1;
  visibility: visible;
}

.proxy-dialog {
  position: relative;
  width: min(100%, 570px);
  max-height: calc(100vh - 48px);
  padding: 28px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(140, 82, 255, 0.1), transparent 32%),
    #111112;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.74), 0 0 80px rgba(140, 82, 255, 0.06);
}

.proxy-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 82, 255, 0.9), transparent);
}

.proxy-dialog-top {
  margin-bottom: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proxy-step-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #656269;
  font-size: 0.48rem;
  font-weight: 700;
}

.proxy-step-count span:first-child {
  color: var(--purple-soft);
}

.proxy-step-count i {
  width: 36px;
  height: 1px;
  background: #2a292d;
}

.proxy-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #2b2a2e;
  border-radius: 9px;
  background: #18181a;
  color: #757279;
  font-size: 1rem;
  cursor: pointer;
}

.proxy-close[hidden] {
  display: none;
}

.proxy-step {
  animation: panelIn 420ms cubic-bezier(.2,.8,.2,1) both;
}

.proxy-step[hidden] {
  display: none;
}

.proxy-step h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 0.97;
  letter-spacing: -0.055em;
  font-weight: 650;
}

.proxy-intro {
  margin-bottom: 22px;
  color: #77747b;
  font-size: 0.65rem;
  line-height: 1.58;
}

.proxy-options {
  display: grid;
  gap: 8px;
}

.proxy-option {
  position: relative;
  min-height: 73px;
  padding: 12px 14px;
  border: 1px solid #29282c;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 39px 1fr auto 20px;
  align-items: center;
  gap: 11px;
  background: #18181a;
  cursor: pointer;
  transition: border-color 170ms ease, background 170ms ease;
}

.proxy-option:has(input:checked) {
  border-color: rgba(140, 82, 255, 0.72);
  background: rgba(140, 82, 255, 0.065);
  box-shadow: 0 0 0 4px rgba(140, 82, 255, 0.045);
}

.proxy-option input {
  position: absolute;
  opacity: 0;
}

.country-flag {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #222124;
  font-size: 1.12rem;
}

.proxy-option > span:nth-child(3) strong,
.proxy-option > span:nth-child(3) small,
.proxy-price strong,
.proxy-price small {
  display: block;
}

.proxy-option > span:nth-child(3) strong {
  margin-bottom: 5px;
  color: #d2cfd5;
  font-size: 0.63rem;
}

.proxy-option > span:nth-child(3) small,
.proxy-price small {
  color: #5e5b62;
  font-size: 0.47rem;
}

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

.proxy-price strong {
  margin-bottom: 4px;
  color: #e4e0e7;
  font-size: 0.7rem;
}

.proxy-option.owned .proxy-price strong {
  color: var(--green);
}

.proxy-option > i {
  width: 18px;
  height: 18px;
  border: 1px solid #3a383e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0.48rem;
  font-style: normal;
}

.proxy-option:has(input:checked) > i {
  border-color: var(--purple);
  background: var(--purple);
  color: #080808;
}

.proxy-notice {
  margin: 13px 0 18px;
  padding: 12px;
  border: 1px solid rgba(167, 211, 111, 0.1);
  border-radius: 10px;
  display: flex;
  gap: 9px;
  background: rgba(167, 211, 111, 0.025);
}

.proxy-notice > span {
  color: var(--green);
}

.proxy-notice p {
  margin: 0;
  color: #66636a;
  font-size: 0.48rem;
  line-height: 1.48;
}

.proxy-notice strong {
  color: #97949b;
}

.proxy-primary {
  width: 100%;
  min-height: 47px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f5f3ef;
  color: #080808;
  font-size: 0.62rem;
  font-weight: 750;
  cursor: pointer;
  transition: opacity 170ms ease, transform 170ms ease;
}

.proxy-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.proxy-primary:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.step-back {
  margin-bottom: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f6c73;
  font-size: 0.52rem;
  cursor: pointer;
}

.payment-summary {
  min-height: 73px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #29282c;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #18181a;
}

.payment-summary > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-summary > div > span:last-child strong,
.payment-summary > div > span:last-child small {
  display: block;
}

.payment-summary > div > span:last-child strong {
  margin-bottom: 5px;
  font-size: 0.62rem;
}

.payment-summary > div > span:last-child small {
  color: #5f5c63;
  font-size: 0.47rem;
}

.payment-summary > strong {
  font-size: 0.9rem;
}

.mpesa-field {
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid #29282c;
  border-radius: 12px;
  display: grid;
  gap: 11px;
  background: #18181a;
  transition: border-color 170ms ease, box-shadow 170ms ease;
}

.mpesa-field:focus-within {
  border-color: rgba(140, 82, 255, 0.68);
  box-shadow: 0 0 0 4px rgba(140, 82, 255, 0.05);
}

.mpesa-field.has-error {
  border-color: rgba(255, 130, 89, 0.72);
  animation: fieldShake 340ms ease;
}

.mpesa-field > span strong,
.mpesa-field > span small {
  display: block;
}

.mpesa-field > span strong {
  margin-bottom: 4px;
  color: #bbb8bf;
  font-size: 0.57rem;
}

.mpesa-field > span small {
  color: #5d5a61;
  font-size: 0.46rem;
}

.mpesa-field > div {
  height: 45px;
  border: 1px solid #2a292d;
  border-radius: 9px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111112;
}

.mpesa-field > div > span {
  height: 100%;
  padding: 0 12px;
  border-right: 1px solid #29282c;
  display: flex;
  align-items: center;
  color: #8b888f;
  font-size: 0.6rem;
}

.mpesa-field input {
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  flex: 1;
  background: transparent;
  color: #eeeaf1;
  font-size: 0.65rem;
}

.payment-method {
  min-height: 58px;
  margin-bottom: 11px;
  padding: 10px 13px;
  border: 1px solid rgba(167, 211, 111, 0.2);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 10px;
  background: rgba(167, 211, 111, 0.035);
}

.mpesa-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #57b849;
  color: #071007;
  font-weight: 900;
}

.payment-method strong,
.payment-method small {
  display: block;
}

.payment-method strong {
  margin-bottom: 4px;
  color: #c8c5cb;
  font-size: 0.58rem;
}

.payment-method small {
  color: #615f64;
  font-size: 0.46rem;
}

.payment-method > i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #081008;
  font-size: 0.46rem;
  font-style: normal;
}

.demo-disclaimer {
  margin: 0 0 15px;
  color: var(--success-soft);
  font-size: 0.47rem;
  text-align: center;
}

.centre-step {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.centre-step .proxy-intro {
  max-width: 390px;
}

.phone-pulse {
  position: relative;
  width: 78px;
  height: 78px;
  margin-bottom: 31px;
  border: 1px solid rgba(167, 211, 111, 0.3);
  border-radius: 25px;
  display: grid;
  place-items: center;
  background: rgba(167, 211, 111, 0.07);
  box-shadow: 0 0 55px rgba(167, 211, 111, 0.11);
}

.phone-pulse > span {
  color: var(--green);
  font-size: 2rem;
}

.phone-pulse i {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(167, 211, 111, 0.14);
  border-radius: 34px;
  animation: paymentPulse 1.7s ease-out infinite;
}

.phone-pulse i:last-child {
  inset: -26px;
  border-radius: 44px;
  animation-delay: 0.45s;
}

@keyframes paymentPulse {
  from { opacity: 0.8; transform: scale(0.82); }
  to { opacity: 0; transform: scale(1.18); }
}

.pending-status {
  padding: 9px 13px;
  border: 1px solid #29282c;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #716f74;
  font-size: 0.5rem;
}

.pending-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

.config-orbit {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 28px;
  border: 1px solid rgba(140, 82, 255, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(140, 82, 255, 0.12), transparent 66%);
}

.config-orbit::before,
.config-orbit::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.config-orbit::after {
  inset: -10px;
  border-color: rgba(140, 82, 255, 0.08);
}

.config-orbit span {
  font-size: 2rem;
}

.config-orbit > i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 13px var(--purple);
  animation: configOrbit 2.2s linear infinite;
  transform-origin: 0 52px;
}

.config-orbit > i:last-child {
  width: 4px;
  height: 4px;
  background: #fff;
  animation-duration: 3.4s;
  animation-direction: reverse;
  transform-origin: 0 39px;
}

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

.config-progress {
  width: min(100%, 410px);
  margin-top: 1px;
}

.config-progress > span {
  width: 0;
}

.config-percent {
  width: min(100%, 410px);
  margin: 9px 0 20px;
  display: flex;
  justify-content: space-between;
  color: #5a585e;
  font-size: 0.47rem;
}

.config-percent strong {
  color: var(--purple-soft);
}

.config-steps {
  width: min(100%, 410px);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  list-style: none;
}

.config-steps li {
  padding: 10px 6px;
  border: 1px solid #262529;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #535157;
  font-size: 0.43rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.config-steps li i {
  width: 14px;
  height: 14px;
  border: 1px solid #353339;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.4rem;
  font-style: normal;
}

.config-steps li.active {
  border-color: rgba(140, 82, 255, 0.3);
  color: #aaa6ae;
  background: rgba(140, 82, 255, 0.04);
}

.config-steps li.complete i {
  border-color: rgba(167, 211, 111, 0.25);
  background: rgba(167, 211, 111, 0.09);
  color: var(--green);
}

.success-burst {
  position: relative;
  width: 82px;
  height: 82px;
  margin-bottom: 29px;
  border: 1px solid var(--success);
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 130, 89, 0.12);
  box-shadow: 0 0 0 9px rgba(255, 130, 89, 0.04), 0 0 38px rgba(255, 130, 89, 0.4), 0 0 90px rgba(255, 130, 89, 0.18);
  animation: checkArrive 650ms cubic-bezier(.2,1.4,.3,1) both;
}

.success-burst::before {
  content: "";
  position: absolute;
  inset: -48px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 130, 89, 0.16), transparent 67%);
  animation: checkPulse 1.8s ease-in-out infinite;
}

.success-burst span {
  color: #fff;
  font-size: 2.1rem;
  text-shadow: 0 0 9px #fff;
}

.success-step .proxy-intro strong {
  color: #cbc7cf;
}

.active-location-card {
  width: min(100%, 410px);
  min-height: 70px;
  margin: 1px 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(167, 211, 111, 0.17);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  background: rgba(167, 211, 111, 0.025);
  text-align: left;
}

.active-location-card > span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1d1c1f;
  font-size: 1.15rem;
}

.active-location-card small,
.active-location-card strong {
  display: block;
}

.active-location-card small {
  margin-bottom: 5px;
  color: #5f5c63;
  font-size: 0.46rem;
}

.active-location-card strong {
  color: #c6c2c9;
  font-size: 0.59rem;
}

.active-location-card > i {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(167, 211, 111, 0.08);
  color: var(--green);
  font-size: 0.43rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .dashboard-sidebar {
    width: 224px;
  }

  .dashboard-main {
    margin-left: 224px;
  }

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

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-panel {
    display: none;
  }
}

@media (max-width: 820px) {
  .dashboard-sidebar {
    width: 242px;
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.5);
    transform: translateX(-105%);
    transition: transform 240ms cubic-bezier(.2,.8,.2,1);
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-menu {
    display: block;
  }

  .dashboard-content {
    width: min(100% - 36px, 680px);
  }
}

@media (max-width: 620px) {
  .dashboard-topbar {
    min-height: 68px;
    padding: 0 14px;
  }

  .topbar-left > div,
  .icon-button,
  .profile-chip > span:last-child,
  .location-chip small,
  .location-chip > i {
    display: none;
  }

  .profile-chip,
  .location-chip {
    padding: 5px 7px;
  }

  .location-chip > span:nth-child(2) strong {
    font-size: 0.52rem;
  }

  .dashboard-content {
    width: calc(100% - 28px);
    padding-top: 40px;
  }

  .dashboard-welcome {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-welcome h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .dashboard-welcome .button {
    align-self: flex-start;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-stats article {
    min-height: 145px;
    padding: 15px;
    flex-direction: column;
  }

  .projects-panel {
    padding: 17px;
  }

  .project-card {
    grid-template-columns: 36px 1fr;
  }

  .project-card-side {
    grid-column: 2;
    padding: 11px 0 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
    text-align: left;
  }

  .project-card-side strong {
    display: inline;
    margin-right: 10px;
  }

  .dashboard-footer {
    flex-direction: column;
    gap: 10px;
  }

  .proxy-gate {
    padding: 8px;
  }

  .proxy-dialog {
    max-height: calc(100vh - 16px);
    padding: 21px 17px;
    border-radius: 20px;
  }

  .proxy-dialog-top {
    margin-bottom: 21px;
  }

  .proxy-option {
    grid-template-columns: 36px 1fr 18px;
  }

  .proxy-price {
    grid-column: 2;
    text-align: left;
  }

  .proxy-option > i {
    grid-column: 3;
    grid-row: 1;
  }

  .config-steps {
    grid-template-columns: 1fr;
  }

  .centre-step {
    min-height: 520px;
  }
}

/* Light theme */

html[data-theme="light"] body {
  color: #17151b;
  background: #f4f1eb;
}

html[data-theme="light"] .landing-page {
  background:
    radial-gradient(circle at 78% 18%, rgba(125, 69, 237, 0.11), transparent 26%),
    linear-gradient(180deg, #f8f6f1, #f1ede6 72%);
}

html[data-theme="light"] .site-header,
html[data-theme="light"] .auth-header {
  border-color: rgba(28, 25, 33, 0.09);
}

html[data-theme="light"] .wordmark,
html[data-theme="light"] .menu-toggle,
html[data-theme="light"] .back-home {
  color: #17151b;
}

html[data-theme="light"] .primary-nav a,
html[data-theme="light"] .text-link,
html[data-theme="light"] .back-home {
  color: #6d6872;
}

html[data-theme="light"] .primary-nav a:hover,
html[data-theme="light"] .text-link:hover,
html[data-theme="light"] .back-home:hover {
  color: #17151b;
}

html[data-theme="light"] .theme-toggle {
  border-color: rgba(28, 25, 33, 0.12);
  background: rgba(255, 255, 255, 0.66);
  color: #403b46;
  box-shadow: 0 7px 22px rgba(33, 27, 43, 0.055);
}

html[data-theme="light"] .menu-toggle span:not(.sr-only) {
  background: #17151b;
}

html[data-theme="light"] .primary-nav {
  background: rgba(250, 248, 244, 0.96);
  box-shadow: 0 28px 75px rgba(37, 29, 48, 0.12);
}

html[data-theme="light"] .button-ghost {
  border-color: rgba(28, 25, 33, 0.13);
  background: rgba(255, 255, 255, 0.46);
  color: #38333e;
}

html[data-theme="light"] .button-ghost:hover {
  border-color: rgba(125, 69, 237, 0.28);
  background: rgba(255, 255, 255, 0.84);
}

html[data-theme="light"] .hero h1 span {
  color: #88828d;
}

html[data-theme="light"] .hero-lede {
  color: #68636d;
}

html[data-theme="light"] .hero-note {
  border-color: rgba(28, 25, 33, 0.12);
}

html[data-theme="light"] .hero-note p {
  color: #77717c;
}

html[data-theme="light"] .hero-visual::before {
  border-color: rgba(28, 25, 33, 0.05);
  background-image:
    linear-gradient(rgba(28, 25, 33, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 33, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] .hero-label {
  border-color: rgba(28, 25, 33, 0.1);
  background: rgba(251, 249, 245, 0.82);
  color: #77717d;
  box-shadow: 0 10px 30px rgba(34, 28, 42, 0.08);
}

html[data-theme="light"] .floating-card {
  border-color: rgba(28, 25, 33, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: #1b181e;
  box-shadow: 0 18px 45px rgba(39, 30, 50, 0.11);
}

html[data-theme="light"] .floating-card div > span {
  color: #77717c;
}

html[data-theme="light"] .capability-strip {
  border-color: rgba(28, 25, 33, 0.09);
  background: #eae6de;
}

html[data-theme="light"] .strip-track span {
  color: #6e6873;
}

html[data-theme="light"] .section-heading > p:last-child,
html[data-theme="light"] .card-copy p,
html[data-theme="light"] .method-list p {
  color: #706a75;
}

html[data-theme="light"] .work-card {
  border-color: rgba(28, 25, 33, 0.09);
  background: #fbfaf7;
  box-shadow: 0 24px 70px rgba(37, 29, 48, 0.055);
}

html[data-theme="light"] .work-card-featured {
  background: linear-gradient(145deg, rgba(125, 69, 237, 0.1), transparent 48%), #fbfaf7;
}

html[data-theme="light"] .card-index {
  color: #77717b;
}

html[data-theme="light"] .card-copy {
  border-color: rgba(28, 25, 33, 0.09);
}

html[data-theme="light"] .system-visual path {
  stroke: rgba(125, 69, 237, 0.34);
}

html[data-theme="light"] .node {
  border-color: rgba(28, 25, 33, 0.12);
  background: #fff;
  color: #6f6973;
  box-shadow: 0 8px 22px rgba(37, 29, 48, 0.06);
}

html[data-theme="light"] .direction-visual {
  background-image:
    linear-gradient(rgba(28, 25, 33, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 33, 0.05) 1px, transparent 1px);
}

html[data-theme="light"] .direction-visual > span {
  color: #6f6874;
}

html[data-theme="light"] .method {
  border-color: rgba(28, 25, 33, 0.09);
}

html[data-theme="light"] .method-ring {
  border-color: rgba(28, 25, 33, 0.1);
}

html[data-theme="light"] .method-list li {
  border-color: rgba(28, 25, 33, 0.11);
}

html[data-theme="light"] .site-footer {
  border-color: rgba(28, 25, 33, 0.09);
}

html[data-theme="light"] .footer-wordmark {
  color: #ddd8cf;
}

html[data-theme="light"] .footer-meta {
  border-color: rgba(28, 25, 33, 0.12);
  color: #706a74;
}

html[data-theme="light"] .footer-meta a:hover {
  color: #17151b;
}

html[data-theme="light"] .footer-bottom {
  color: #8c858f;
}

html[data-theme="light"] .auth-page {
  background:
    linear-gradient(rgba(28, 25, 33, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 33, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 72% 45%, rgba(125, 69, 237, 0.1), transparent 31%),
    #f5f2ec;
  background-size: 46px 46px, 46px 46px, auto, auto;
}

html[data-theme="light"] .auth-page::before {
  background: radial-gradient(circle at center, transparent 42%, rgba(198, 190, 178, 0.3) 100%);
}

html[data-theme="light"] .auth-story > p:not(.eyebrow) {
  color: #6f6974;
}

html[data-theme="light"] .access-points {
  border-color: rgba(28, 25, 33, 0.13);
}

html[data-theme="light"] .access-points > div + div {
  border-color: rgba(28, 25, 33, 0.11);
}

html[data-theme="light"] .access-points p,
html[data-theme="light"] .story-footnote p {
  color: #7b7580;
}

html[data-theme="light"] .access-points strong {
  color: #3a3540;
}

html[data-theme="light"] .auth-card {
  border-color: rgba(28, 25, 33, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(125, 69, 237, 0.18) 42%, rgba(255, 255, 255, 0.76));
  box-shadow: 0 40px 100px rgba(39, 30, 50, 0.14), 0 0 80px rgba(125, 69, 237, 0.045);
}

html[data-theme="light"] .auth-screen {
  background: linear-gradient(160deg, #ffffff, #faf8f4 68%);
}

html[data-theme="light"] .auth-screen::before {
  background: radial-gradient(circle at 100% 0, rgba(125, 69, 237, 0.07), transparent 31%);
}

html[data-theme="light"] .panel-back,
html[data-theme="light"] .panel-intro,
html[data-theme="light"] .forgot-link,
html[data-theme="light"] .resend-button,
html[data-theme="light"] .terms-check,
html[data-theme="light"] .panel-switch {
  color: #6f6973;
}

html[data-theme="light"] .field {
  border-color: rgba(28, 25, 33, 0.11);
  background: #f1eee8;
}

html[data-theme="light"] .field input {
  color: #1b181f;
}

html[data-theme="light"] .field input::placeholder {
  color: #8c858f;
}

html[data-theme="light"] .field input:-webkit-autofill,
html[data-theme="light"] .field input:-webkit-autofill:hover,
html[data-theme="light"] .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1b181f;
  caret-color: #1b181f;
  box-shadow: 0 0 0 1000px #f1eee8 inset;
}

html[data-theme="light"] .field-icon,
html[data-theme="light"] .password-toggle {
  color: #817a85;
}

html[data-theme="light"] .auth-primary {
  background: #19161e;
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 24, 40, 0.12);
}

html[data-theme="light"] .auth-primary:hover {
  background: #29232f;
}

html[data-theme="light"] .auth-divider {
  color: #9c959f;
}

html[data-theme="light"] .auth-divider::before {
  background: rgba(28, 25, 33, 0.09);
}

html[data-theme="light"] .auth-divider span {
  background: #fcfaf7;
}

html[data-theme="light"] .social-stack button {
  border-color: rgba(28, 25, 33, 0.1);
  background: #f3f0ea;
  color: #39343f;
}

html[data-theme="light"] .social-stack button:hover {
  border-color: rgba(125, 69, 237, 0.25);
  background: #fff;
}

html[data-theme="light"] .apple-mark {
  color: #17151b;
}

html[data-theme="light"] .panel-switch button {
  color: #352f3b;
}

html[data-theme="light"] .document-option,
html[data-theme="light"] .identity-upload {
  border-color: rgba(28, 25, 33, 0.12);
  background: #f2efe9;
}

html[data-theme="light"] .document-option strong,
html[data-theme="light"] .upload-empty strong {
  color: #38323e;
}

html[data-theme="light"] .document-option small,
html[data-theme="light"] .upload-empty small,
html[data-theme="light"] .identity-privacy {
  color: #77717c;
}

html[data-theme="light"] .upload-empty i {
  border-color: rgba(28, 25, 33, 0.15);
}

html[data-theme="light"] .otp-inputs input {
  border-color: rgba(28, 25, 33, 0.13);
  background: #f1eee8;
  color: #1b181f;
}

html[data-theme="light"] .verified-centre > p:last-child {
  color: #726c76;
}

html[data-theme="light"] .toast {
  border-color: rgba(28, 25, 33, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: #302b35;
  box-shadow: 0 18px 55px rgba(39, 30, 50, 0.16);
}

html[data-theme="light"] .dashboard-page {
  background:
    radial-gradient(circle at 82% 12%, rgba(125, 69, 237, 0.09), transparent 24%),
    #f2efe9;
  color: #17151b;
}

html[data-theme="light"] .dashboard-sidebar {
  border-color: rgba(28, 25, 33, 0.08);
  background: rgba(250, 248, 244, 0.96);
  box-shadow: 16px 0 50px rgba(37, 29, 48, 0.035);
}

html[data-theme="light"] .dashboard-nav button,
html[data-theme="light"] .sidebar-link {
  color: #6f6973;
}

html[data-theme="light"] .dashboard-nav button:hover,
html[data-theme="light"] .dashboard-nav button.active,
html[data-theme="light"] .sidebar-link:hover {
  background: rgba(125, 69, 237, 0.065);
  color: #28232d;
}

html[data-theme="light"] .dashboard-nav button > span,
html[data-theme="light"] .sidebar-link > span {
  color: #87808b;
}

html[data-theme="light"] .platform-status {
  border-color: rgba(28, 25, 33, 0.08);
  background: #f1eee8;
}

html[data-theme="light"] .platform-status strong {
  color: #4f4954;
}

html[data-theme="light"] .platform-status small {
  color: #847e87;
}

html[data-theme="light"] .dashboard-topbar {
  border-color: rgba(28, 25, 33, 0.08);
  background: rgba(247, 244, 238, 0.84);
}

html[data-theme="light"] .topbar-left > div span {
  color: #7c7680;
}

html[data-theme="light"] .topbar-left > div strong {
  color: #4b4550;
}

html[data-theme="light"] .icon-button,
html[data-theme="light"] .location-chip,
html[data-theme="light"] .profile-chip {
  border-color: rgba(28, 25, 33, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 7px 24px rgba(37, 29, 48, 0.045);
}

html[data-theme="light"] .location-chip > span:first-child {
  background: #eeeae3;
}

html[data-theme="light"] .location-chip small,
html[data-theme="light"] .profile-chip small {
  color: #817b85;
}

html[data-theme="light"] .location-chip strong,
html[data-theme="light"] .profile-chip strong {
  color: #39343e;
}

html[data-theme="light"] .location-chip.unconfigured {
  border-color: rgba(210, 91, 50, 0.2);
  background: rgba(255, 130, 89, 0.06);
}

html[data-theme="light"] .dashboard-welcome h1 span {
  color: #8a838e;
}

html[data-theme="light"] .dashboard-welcome > div > p:last-child {
  color: #6e6873;
}

html[data-theme="light"] .dashboard-stats article,
html[data-theme="light"] .projects-panel,
html[data-theme="light"] .onboarding-panel {
  border-color: rgba(28, 25, 33, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 60px rgba(37, 29, 48, 0.045);
}

html[data-theme="light"] .dashboard-stats small {
  color: #78727c;
}

html[data-theme="light"] .dashboard-stats strong {
  color: #242027;
}

html[data-theme="light"] .dashboard-stats p {
  color: #8c858f;
}

html[data-theme="light"] .panel-heading-row h2 {
  color: #262129;
}

html[data-theme="light"] .panel-heading-row button {
  color: #69636d;
}

html[data-theme="light"] .project-empty p {
  color: #716b75;
}

html[data-theme="light"] .project-card {
  border-color: rgba(28, 25, 33, 0.08);
  background: #f8f6f1;
}

html[data-theme="light"] .project-card:hover {
  border-color: rgba(125, 69, 237, 0.2);
  box-shadow: 0 12px 30px rgba(37, 29, 48, 0.055);
}

html[data-theme="light"] .project-card-main h3,
html[data-theme="light"] .project-card-side strong,
html[data-theme="light"] .checklist strong {
  color: #38323e;
}

html[data-theme="light"] .project-card-top small,
html[data-theme="light"] .project-card-main > p,
html[data-theme="light"] .project-card-side small,
html[data-theme="light"] .checklist small,
html[data-theme="light"] .region-policy {
  color: #7a747e;
}

html[data-theme="light"] .project-tags span,
html[data-theme="light"] .checklist li > i {
  border-color: rgba(28, 25, 33, 0.12);
  color: #716b75;
}

html[data-theme="light"] .project-card-side {
  border-color: rgba(28, 25, 33, 0.08);
}

html[data-theme="light"] .progress-track,
html[data-theme="light"] .config-progress {
  background: #dfdad2;
}

html[data-theme="light"] .checklist-action {
  border-color: rgba(28, 25, 33, 0.1);
  background: #f0ede7;
  color: #4e4853;
}

html[data-theme="light"] .dashboard-footer {
  border-color: rgba(28, 25, 33, 0.08);
  color: #89828c;
}

html[data-theme="light"] .proxy-gate {
  background: rgba(40, 34, 48, 0.34);
}

html[data-theme="light"] .proxy-dialog {
  border-color: rgba(28, 25, 33, 0.09);
  background:
    radial-gradient(circle at 100% 0, rgba(125, 69, 237, 0.1), transparent 33%),
    #fdfbf8;
  box-shadow: 0 50px 140px rgba(37, 29, 48, 0.22), 0 0 80px rgba(125, 69, 237, 0.06);
}

html[data-theme="light"] .proxy-close {
  border-color: rgba(28, 25, 33, 0.1);
  background: #f0ece6;
  color: #5d5762;
}

html[data-theme="light"] .proxy-step-count,
html[data-theme="light"] .proxy-intro,
html[data-theme="light"] .step-back {
  color: #6e6872;
}

html[data-theme="light"] .proxy-option,
html[data-theme="light"] .payment-summary,
html[data-theme="light"] .mpesa-field {
  border-color: rgba(28, 25, 33, 0.1);
  background: #f2efe9;
}

html[data-theme="light"] .country-flag {
  background: #e7e2da;
}

html[data-theme="light"] .proxy-option > span:nth-child(3) strong,
html[data-theme="light"] .proxy-price strong,
html[data-theme="light"] .payment-summary > div > span:last-child strong,
html[data-theme="light"] .payment-summary > strong,
html[data-theme="light"] .mpesa-field > span strong {
  color: #38323e;
}

html[data-theme="light"] .proxy-option > span:nth-child(3) small,
html[data-theme="light"] .proxy-price small,
html[data-theme="light"] .payment-summary > div > span:last-child small,
html[data-theme="light"] .mpesa-field > span small {
  color: #79737d;
}

html[data-theme="light"] .proxy-notice {
  border-color: rgba(86, 124, 34, 0.14);
  background: rgba(86, 124, 34, 0.045);
}

html[data-theme="light"] .proxy-notice p {
  color: #6e6872;
}

html[data-theme="light"] .proxy-notice strong {
  color: #4a444f;
}

html[data-theme="light"] .proxy-primary {
  background: #19161e;
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 24, 40, 0.12);
}

html[data-theme="light"] .mpesa-field > div {
  border-color: rgba(28, 25, 33, 0.1);
  background: #fff;
}

html[data-theme="light"] .mpesa-field > div > span {
  border-color: rgba(28, 25, 33, 0.1);
  color: #5e5863;
}

html[data-theme="light"] .mpesa-field input {
  color: #1d1921;
}

html[data-theme="light"] .payment-method {
  border-color: rgba(86, 124, 34, 0.17);
  background: rgba(86, 124, 34, 0.055);
}

html[data-theme="light"] .payment-method strong {
  color: #37313d;
}

html[data-theme="light"] .payment-method small {
  color: #746e78;
}

html[data-theme="light"] .pending-status,
html[data-theme="light"] .config-steps li,
html[data-theme="light"] .active-location-card {
  border-color: rgba(28, 25, 33, 0.1);
  color: #68626c;
}

html[data-theme="light"] .config-steps li.active {
  border-color: rgba(125, 69, 237, 0.22);
  background: rgba(125, 69, 237, 0.06);
  color: #4f4954;
}

html[data-theme="light"] .active-location-card {
  background: rgba(86, 124, 34, 0.045);
}

html[data-theme="light"] .active-location-card > span {
  background: #e9e4dc;
}

html[data-theme="light"] .active-location-card small {
  color: #766f7a;
}

html[data-theme="light"] .active-location-card strong {
  color: #39333f;
}

/* Light theme contrast refinement */

html[data-theme="light"] {
  --line: rgba(26, 22, 31, 0.19);
  --line-soft: rgba(26, 22, 31, 0.11);
  --muted: #5d5762;
  --muted-light: #39343e;
}

html[data-theme="light"] .landing-page {
  background:
    radial-gradient(circle at 78% 18%, rgba(125, 69, 237, 0.13), transparent 27%),
    linear-gradient(180deg, #f8f6f1, #eeeae3 74%);
}

html[data-theme="light"] .primary-nav a,
html[data-theme="light"] .text-link,
html[data-theme="light"] .back-home,
html[data-theme="light"] .hero-lede,
html[data-theme="light"] .section-heading > p:last-child,
html[data-theme="light"] .card-copy p,
html[data-theme="light"] .method-list p,
html[data-theme="light"] .footer-meta {
  color: #5d5762;
}

html[data-theme="light"] .hero-note p,
html[data-theme="light"] .direction-visual > span,
html[data-theme="light"] .strip-track span,
html[data-theme="light"] .footer-bottom {
  color: #69636d;
}

html[data-theme="light"] .work-card {
  border-color: rgba(26, 22, 31, 0.13);
  background: #fffefa;
  box-shadow: 0 25px 70px rgba(37, 29, 48, 0.085);
}

html[data-theme="light"] .work-card-featured {
  background: linear-gradient(145deg, rgba(125, 69, 237, 0.12), transparent 48%), #fffefa;
}

html[data-theme="light"] .node,
html[data-theme="light"] .floating-card {
  border-color: rgba(26, 22, 31, 0.15);
}

html[data-theme="light"] .auth-page {
  background:
    linear-gradient(rgba(26, 22, 31, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 22, 31, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 72% 45%, rgba(125, 69, 237, 0.12), transparent 32%),
    #f1eee7;
  background-size: 46px 46px, 46px 46px, auto, auto;
}

html[data-theme="light"] .auth-story > p:not(.eyebrow),
html[data-theme="light"] .access-points p,
html[data-theme="light"] .story-footnote p,
html[data-theme="light"] .panel-intro,
html[data-theme="light"] .forgot-link,
html[data-theme="light"] .resend-button,
html[data-theme="light"] .terms-check,
html[data-theme="light"] .panel-switch,
html[data-theme="light"] .identity-privacy {
  color: #5f5964;
}

html[data-theme="light"] .access-points strong,
html[data-theme="light"] .document-option strong,
html[data-theme="light"] .upload-empty strong {
  color: #2f2a34;
}

html[data-theme="light"] .access-points > div + div,
html[data-theme="light"] .access-points {
  border-color: rgba(26, 22, 31, 0.17);
}

html[data-theme="light"] .auth-card {
  border-color: rgba(26, 22, 31, 0.14);
  box-shadow: 0 42px 105px rgba(39, 30, 50, 0.18), 0 0 80px rgba(125, 69, 237, 0.055);
}

html[data-theme="light"] .field,
html[data-theme="light"] .document-option,
html[data-theme="light"] .identity-upload,
html[data-theme="light"] .otp-inputs input {
  border-color: rgba(26, 22, 31, 0.17);
  background: #ede9e1;
}

html[data-theme="light"] .field input::placeholder {
  color: #746e78;
}

html[data-theme="light"] .field-icon,
html[data-theme="light"] .password-toggle {
  color: #625c67;
}

html[data-theme="light"] .social-stack button {
  border-color: rgba(26, 22, 31, 0.15);
  background: #eeeae3;
  color: #2f2a34;
}

html[data-theme="light"] .document-option small,
html[data-theme="light"] .upload-empty small {
  color: #69636d;
}

html[data-theme="light"] .dashboard-page {
  background:
    radial-gradient(circle at 82% 12%, rgba(125, 69, 237, 0.11), transparent 25%),
    #ece8e1;
}

html[data-theme="light"] .dashboard-sidebar {
  border-color: rgba(26, 22, 31, 0.12);
  background: rgba(249, 247, 242, 0.98);
  box-shadow: 18px 0 55px rgba(37, 29, 48, 0.065);
}

html[data-theme="light"] .dashboard-nav button,
html[data-theme="light"] .sidebar-link,
html[data-theme="light"] .topbar-left > div span {
  color: #5d5762;
}

html[data-theme="light"] .dashboard-nav button > span,
html[data-theme="light"] .sidebar-link > span {
  color: #6d6672;
}

html[data-theme="light"] .dashboard-nav button:hover,
html[data-theme="light"] .dashboard-nav button.active,
html[data-theme="light"] .sidebar-link:hover {
  background: rgba(125, 69, 237, 0.1);
  color: #201c24;
}

html[data-theme="light"] .platform-status {
  border-color: rgba(26, 22, 31, 0.13);
  background: #ebe7df;
}

html[data-theme="light"] .platform-status strong,
html[data-theme="light"] .topbar-left > div strong {
  color: #3c3641;
}

html[data-theme="light"] .platform-status small {
  color: #69636e;
}

html[data-theme="light"] .dashboard-topbar {
  border-color: rgba(26, 22, 31, 0.12);
  background: rgba(244, 241, 235, 0.92);
  box-shadow: 0 8px 28px rgba(37, 29, 48, 0.045);
}

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .icon-button,
html[data-theme="light"] .location-chip,
html[data-theme="light"] .profile-chip {
  border-color: rgba(26, 22, 31, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 25px rgba(37, 29, 48, 0.075);
}

html[data-theme="light"] .location-chip small,
html[data-theme="light"] .profile-chip small {
  color: #68616d;
}

html[data-theme="light"] .dashboard-welcome > div > p:last-child {
  color: #5c5661;
}

html[data-theme="light"] .dashboard-stats article,
html[data-theme="light"] .projects-panel,
html[data-theme="light"] .onboarding-panel {
  border-color: rgba(26, 22, 31, 0.13);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(37, 29, 48, 0.08);
}

html[data-theme="light"] .dashboard-stats small,
html[data-theme="light"] .project-card-top small,
html[data-theme="light"] .project-card-main > p,
html[data-theme="light"] .project-card-side small,
html[data-theme="light"] .checklist small,
html[data-theme="light"] .region-policy {
  color: #625c67;
}

html[data-theme="light"] .dashboard-stats p {
  color: #6b6570;
}

html[data-theme="light"] .project-card {
  border-color: rgba(26, 22, 31, 0.13);
  background: #f4f1eb;
}

html[data-theme="light"] .project-card-main h3,
html[data-theme="light"] .project-card-side strong,
html[data-theme="light"] .checklist strong,
html[data-theme="light"] .panel-heading-row h2 {
  color: #27222c;
}

html[data-theme="light"] .project-tags span,
html[data-theme="light"] .checklist li > i {
  border-color: rgba(26, 22, 31, 0.17);
  color: #5c5661;
}

html[data-theme="light"] .checklist-action {
  border-color: rgba(26, 22, 31, 0.15);
  background: #ebe7df;
  color: #37313c;
}

html[data-theme="light"] .proxy-dialog {
  border-color: rgba(26, 22, 31, 0.14);
  box-shadow: 0 52px 145px rgba(37, 29, 48, 0.28), 0 0 80px rgba(125, 69, 237, 0.07);
}

html[data-theme="light"] .proxy-intro,
html[data-theme="light"] .step-back,
html[data-theme="light"] .proxy-notice p {
  color: #5f5964;
}

html[data-theme="light"] .proxy-option,
html[data-theme="light"] .payment-summary,
html[data-theme="light"] .mpesa-field {
  border-color: rgba(26, 22, 31, 0.16);
  background: #eeeae3;
}

html[data-theme="light"] .proxy-option > span:nth-child(3) small,
html[data-theme="light"] .proxy-price small,
html[data-theme="light"] .payment-summary > div > span:last-child small,
html[data-theme="light"] .mpesa-field > span small,
html[data-theme="light"] .payment-method small {
  color: #655f69;
}

html[data-theme="light"] .mpesa-field > div {
  border-color: rgba(26, 22, 31, 0.16);
}

html[data-theme="light"] .pending-status,
html[data-theme="light"] .config-steps li,
html[data-theme="light"] .active-location-card {
  border-color: rgba(26, 22, 31, 0.16);
  color: #554f5a;
}

/* Responsive */

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 7vw, 5.6rem);
  }

  .floating-card-right {
    right: 0;
  }

  .section-heading {
    grid-template-columns: 0.6fr 1.25fr 0.8fr;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 48px;
  }

  .auth-story h1 {
    font-size: clamp(3.6rem, 6.7vw, 5.8rem);
  }
}

@media (max-width: 900px) {
  .section-shell,
  .site-header,
  .auth-header,
  .auth-layout {
    width: min(100% - 40px, 720px);
  }

  .site-header {
    height: 82px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .primary-nav {
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: grid;
    gap: 18px;
    background: rgba(12, 12, 13, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .primary-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-actions .text-link {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    margin-right: 10px;
  }

  .hero {
    padding-top: 76px;
    grid-template-columns: 1fr;
  }

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

  .hero-copy .eyebrow,
  .hero-actions {
    justify-content: center;
  }

  .hero h1,
  .hero-lede,
  .hero-note {
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 690px;
  }

  .hero-label-side {
    left: 10%;
  }

  .floating-card-left {
    left: 7%;
  }

  .floating-card-right {
    right: 6%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading h2 {
    max-width: 650px;
  }

  .section-heading > p:last-child {
    max-width: 480px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card-featured {
    grid-row: auto;
    min-height: 800px;
  }

  .method {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .method-sticky {
    position: relative;
    top: 0;
  }

  .method-art {
    width: min(400px, 74vw);
  }

  .studio-panel {
    padding: 54px;
    grid-template-columns: 1fr;
  }

  .studio-logo-crop {
    height: 300px;
  }

  .auth-header {
    height: 82px;
  }

  .auth-layout {
    padding: 35px 0 80px;
    grid-template-columns: 1fr;
  }

  .auth-card-wrap {
    order: -1;
  }

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

  .auth-story .eyebrow {
    justify-content: center;
  }

  .auth-story h1,
  .auth-story > p:not(.eyebrow),
  .access-points {
    margin-inline: auto;
  }

  .story-footnote {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .section-shell,
  .site-header,
  .auth-header,
  .auth-layout {
    width: calc(100% - 28px);
  }

  .site-header,
  .auth-header {
    height: 74px;
  }

  .wordmark {
    width: 96px;
  }

  .wordmark-name {
    font-size: 1.35rem;
  }

  .wordmark-sub {
    margin-top: 7px;
    font-size: 0.4rem;
  }

  .nav-actions .button {
    display: none;
  }

  .nav-actions {
    margin: 0;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .hero {
    padding: 62px 0 78px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 17vw, 5rem);
  }

  .hero-lede {
    font-size: 0.96rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: min(100%, 310px);
  }

  .hero-note {
    margin-top: 50px;
    text-align: left;
  }

  .hero-visual {
    min-height: 620px;
    margin-inline: -14px;
    overflow: hidden;
  }

  .orbit-one { width: 520px; height: 520px; }
  .orbit-two { width: 420px; height: 420px; }

  .device-frame {
    width: 268px;
    height: 548px;
  }

  .verification-sheet {
    min-height: 315px;
  }

  .hero-label-side,
  .hero-label-top {
    display: none;
  }

  .floating-card {
    padding: 10px;
  }

  .floating-card-left {
    left: 3px;
    bottom: 79px;
  }

  .floating-card-right {
    right: 0;
    top: 155px;
  }

  .work {
    padding-block: 100px;
  }

  .section-heading {
    margin-bottom: 46px;
  }

  .section-heading h2,
  .method h2,
  .studio h2 {
    font-size: clamp(2.8rem, 13vw, 4.3rem);
  }

  .work-card,
  .work-card-featured {
    min-height: 610px;
    padding: 18px;
  }

  .work-card-featured {
    min-height: 700px;
  }

  .product-visual {
    min-height: 450px;
  }

  .product-window {
    width: 96%;
  }

  .window-layout {
    min-height: 290px;
  }

  .system-visual,
  .direction-visual {
    min-height: 350px;
  }

  .method {
    padding-block: 100px;
  }

  .method-list li {
    grid-template-columns: 45px 1fr;
  }

  .studio {
    padding-bottom: 80px;
  }

  .studio-panel {
    min-height: 600px;
    padding: 38px 25px 25px;
    border-radius: 24px;
    gap: 45px;
  }

  .studio-logo-crop {
    height: 240px;
  }

  .footer-wordmark {
    font-size: 25vw;
  }

  .footer-meta,
  .footer-bottom {
    flex-direction: column;
    gap: 18px;
  }

  .footer-bottom {
    margin-top: 60px;
  }

  .intro-skip {
    right: 15px;
    bottom: 15px;
  }

  .back-home {
    font-size: 0.64rem;
  }

  .auth-layout {
    padding-top: 12px;
  }

  .auth-story {
    padding-top: 45px;
  }

  .auth-story h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .access-points {
    grid-template-columns: 1fr;
  }

  .access-points > div {
    min-height: auto;
    padding: 18px 0;
    display: grid;
    grid-template-columns: 45px 1fr;
  }

  .access-points > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .access-points p {
    margin: 0;
  }

  .story-footnote {
    margin-bottom: 20px;
  }

  .auth-card-wrap {
    margin-inline: -14px;
  }

  .auth-card {
    width: 100%;
    max-width: 450px;
    min-height: 680px;
    border-radius: 24px;
  }

  .auth-screen {
    min-height: 678px;
    padding: 51px 25px 38px;
    border-radius: 23px;
  }

  .auth-panel h2 {
    font-size: 2.35rem;
  }

  .otp-inputs {
    gap: 7px;
  }

  .otp-inputs input {
    height: 61px;
  }
}

/* Joined-project workspace */
.active-projects-panel {
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0, rgba(140, 82, 255, 0.09), transparent 30%),
    #0d0d0e;
}

.active-projects-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.active-projects-heading h2 {
  margin: 4px 0 7px;
  color: #e6e2e9;
  font-size: 1.34rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.active-projects-heading > div:first-child > span {
  display: block;
  max-width: 570px;
  color: #6d6971;
  font-size: 0.54rem;
  line-height: 1.55;
}

.active-project-count {
  min-width: 74px;
  padding: 10px 14px;
  border: 1px solid rgba(140, 82, 255, 0.2);
  border-radius: 12px;
  background: rgba(140, 82, 255, 0.06);
  text-align: right;
}

.active-project-count strong,
.active-project-count span {
  display: block;
}

.active-project-count strong {
  color: #c9b7ff;
  font-size: 0.9rem;
}

.active-project-count span {
  margin-top: 2px;
  color: #77727d;
  font-size: 0.43rem;
}

.active-projects-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.active-projects-empty {
  min-height: 126px;
  padding: 18px;
  border: 1px dashed #2a282d;
  border-radius: 15px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(18, 17, 19, 0.78);
}

.active-projects-empty > span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #bca3ff;
  background: rgba(140, 82, 255, 0.1);
  font-size: 0.75rem;
}

.active-projects-empty strong,
.active-projects-empty p {
  display: block;
}

.active-projects-empty strong {
  margin-bottom: 5px;
  color: #d8d3dc;
  font-size: 0.66rem;
}

.active-projects-empty p {
  margin: 0;
  color: #6a666e;
  font-size: 0.5rem;
  line-height: 1.5;
}

.active-projects-empty button,
.active-project-card-footer button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #353239;
  border-radius: 10px;
  background: #ece9ee;
  color: #141215;
  font: inherit;
  font-size: 0.51rem;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, opacity 170ms ease;
}

.active-projects-empty button:hover,
.active-project-card-footer button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
}

.active-project-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #252329;
  border-radius: 16px;
  background: rgba(17, 17, 18, 0.92);
  transition: border-color 170ms ease, transform 170ms ease, background 170ms ease;
}

.active-project-card:hover {
  border-color: rgba(140, 82, 255, 0.3);
  background: #141315;
  transform: translateY(-1px);
}

.active-project-card.has-active-task {
  border-color: rgba(167, 211, 111, 0.35);
  box-shadow: inset 0 0 0 1px rgba(167, 211, 111, 0.06);
}

.active-project-card-top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.active-project-region {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #858089;
  font-size: 0.49rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-project-card-top > i {
  padding: 5px 7px;
  border-radius: 999px;
  color: #aaa5ae;
  background: #1c1b1e;
  font-size: 0.4rem;
  font-style: normal;
  font-weight: 720;
  white-space: nowrap;
}

.active-project-card.has-active-task .active-project-card-top > i {
  color: var(--green);
  background: rgba(167, 211, 111, 0.08);
}

.active-project-card-copy {
  min-width: 0;
  padding: 16px 0 14px;
}

.active-project-card-copy h3 {
  margin: 0 0 6px;
  color: #ddd8e0;
  font-size: 0.78rem;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.active-project-card-copy p {
  margin: 0;
  overflow: hidden;
  color: #68646c;
  font-size: 0.48rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-project-card-footer {
  padding-top: 14px;
  border-top: 1px solid #242228;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.active-project-card-footer > div {
  min-width: 0;
  display: flex;
  gap: 22px;
}

.active-project-card-footer small,
.active-project-card-footer strong {
  display: block;
}

.active-project-card-footer small {
  margin-bottom: 5px;
  color: #5e5a62;
  font-size: 0.41rem;
}

.active-project-card-footer strong {
  color: #bdb8c1;
  font-size: 0.54rem;
  white-space: nowrap;
}

.active-project-card-footer button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.project-market-card.joined {
  border-color: rgba(140, 82, 255, 0.24);
}

.project-market-main > span:first-child i.joined,
.project-status-pill.joined {
  color: #c5b0ff;
  background: rgba(140, 82, 255, 0.11);
}

html[data-theme="light"] .active-projects-panel {
  border-color: var(--light-border);
  background:
    radial-gradient(circle at 92% 0, rgba(116, 56, 230, 0.1), transparent 31%),
    #fff;
  box-shadow: 0 12px 34px rgba(44, 31, 48, 0.06);
}

html[data-theme="light"] .active-projects-heading h2,
html[data-theme="light"] .active-projects-empty strong,
html[data-theme="light"] .active-project-card-copy h3 {
  color: #241f27;
}

html[data-theme="light"] .active-projects-heading > div:first-child > span,
html[data-theme="light"] .active-projects-empty p,
html[data-theme="light"] .active-project-card-copy p,
html[data-theme="light"] .active-project-region {
  color: #68616c;
}

html[data-theme="light"] .active-project-count {
  border-color: #d9cbea;
  background: #f6f0ff;
}

html[data-theme="light"] .active-project-count strong {
  color: #6632bd;
}

html[data-theme="light"] .active-project-count span {
  color: #716879;
}

html[data-theme="light"] .active-projects-empty,
html[data-theme="light"] .active-project-card {
  border-color: #ddd7e1;
  background: #faf8fb;
}

html[data-theme="light"] .active-projects-empty {
  border-style: dashed;
}

html[data-theme="light"] .active-project-card:hover {
  border-color: #bfa9dd;
  background: #fff;
}

html[data-theme="light"] .active-project-card.has-active-task {
  border-color: #9bbf69;
}

html[data-theme="light"] .active-project-card-top > i {
  color: #625b66;
  background: #eee9f0;
}

html[data-theme="light"] .active-project-card-footer {
  border-color: #e2dce4;
}

html[data-theme="light"] .active-project-card-footer small {
  color: #746c78;
}

html[data-theme="light"] .active-project-card-footer strong {
  color: #342f37;
}

html[data-theme="light"] .active-projects-empty button,
html[data-theme="light"] .active-project-card-footer button {
  border-color: #251f28;
  background: #251f28;
  color: #fff;
}

html[data-theme="light"] .project-market-card.joined {
  border-color: #c7b0e7;
}

@media (max-width: 1040px) {
  .active-projects-panel {
    padding: 20px;
  }

  .active-projects-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .active-projects-panel {
    margin-bottom: 12px;
    padding: 17px;
    border-radius: 16px;
  }

  .active-projects-heading {
    margin-bottom: 15px;
    align-items: center;
  }

  .active-projects-heading h2 {
    font-size: 1.18rem;
  }

  .active-projects-heading > div:first-child > span {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .active-project-count {
    min-width: 64px;
    padding: 9px 11px;
  }

  .active-project-count strong {
    font-size: 0.95rem;
  }

  .active-project-count span {
    font-size: 0.6rem;
  }

  .active-projects-empty {
    min-height: 0;
    padding: 15px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .active-projects-empty button {
    width: 100%;
    grid-column: 2;
  }

  .active-projects-empty strong,
  .active-project-card-copy h3 {
    font-size: 0.85rem;
  }

  .active-projects-empty p,
  .active-project-card-copy p,
  .active-project-region {
    font-size: 0.67rem;
  }

  .active-project-card {
    padding: 15px;
  }

  .active-project-card-top > i {
    font-size: 0.56rem;
  }

  .active-project-card-footer small {
    font-size: 0.58rem;
  }

  .active-project-card-footer strong,
  .active-project-card-footer button,
  .active-projects-empty button {
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  .active-projects-heading > div:first-child > span {
    display: none;
  }

  .active-project-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .active-project-card-footer > div {
    justify-content: space-between;
  }

  .active-project-card-footer button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Project pay hierarchy and task disposition workflows */

.project-market-card {
  grid-template-columns: 42px minmax(0, 1fr) 126px 18px;
}

.project-market-rate {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(167, 211, 111, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(167, 211, 111, 0.12), transparent 48%),
    rgba(167, 211, 111, 0.055);
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.project-market-rate small,
.project-market-rate strong,
.project-market-rate i {
  display: block;
}

.project-market-rate small {
  color: #a9c989;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-market-rate strong {
  margin: 5px 0 4px;
  color: #f5f8f0;
  font-size: 1.08rem;
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1;
}

.project-market-rate strong em {
  margin-left: 3px;
  color: #a9c989;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0;
}

.project-market-rate > i {
  color: #8b9481;
  font-size: 0.44rem;
}

.active-project-card-footer .active-project-pay {
  padding: 8px 10px;
  border: 1px solid rgba(167, 211, 111, 0.2);
  border-radius: 10px;
  background: rgba(167, 211, 111, 0.06);
}

.active-project-card-footer .active-project-pay small {
  color: #9dc27a;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.active-project-card-footer .active-project-pay strong {
  color: #eef6e7;
  font-size: 0.72rem;
}

.active-project-card-footer .active-project-pay strong i {
  margin-left: 2px;
  color: #9dc27a;
  font-size: 0.46rem;
  font-style: normal;
}

.project-detail-rate {
  padding: 7px;
  align-items: center;
  background: #101012;
}

.project-detail-pay {
  padding: 11px 12px;
  border: 1px solid rgba(167, 211, 111, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(167, 211, 111, 0.11), rgba(167, 211, 111, 0.035));
}

.project-detail-rate .project-detail-pay small {
  color: #9dc27a;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-detail-rate .project-detail-pay strong {
  margin-bottom: 5px;
  color: #f0f6e9;
  font-size: 1.05rem;
  letter-spacing: -0.035em;
}

.project-detail-pay > span {
  display: block;
  color: #7e8875;
  font-size: 0.43rem;
  line-height: 1.35;
}

.studio-header-actions > button {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 0.57rem;
  font-weight: 730;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.studio-header-actions > button:hover,
.studio-header-actions > button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.studio-header-actions > button > span {
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.66rem;
}

.studio-header-actions > button > span svg {
  width: 12px;
  height: 12px;
}

.studio-header-actions > button > b {
  font-weight: inherit;
}

.studio-skip {
  border: 1px solid rgba(135, 81, 255, 0.42);
  background: rgba(135, 81, 255, 0.09);
  color: #d8c8ff;
}

.studio-skip > span {
  background: rgba(135, 81, 255, 0.2);
  color: #b89aff;
}

.studio-skip:hover,
.studio-skip:focus-visible {
  border-color: rgba(135, 81, 255, 0.72);
  background: rgba(135, 81, 255, 0.16);
}

.studio-report {
  border: 1px solid rgba(244, 177, 91, 0.38);
  background: rgba(244, 177, 91, 0.075);
  color: #f3d2a4;
}

.studio-report > span {
  background: rgba(244, 177, 91, 0.15);
  color: #f4b15b;
}

.studio-report:hover,
.studio-report:focus-visible {
  border-color: rgba(244, 177, 91, 0.68);
  background: rgba(244, 177, 91, 0.13);
}

.studio-abandon > span,
.studio-exit > span {
  background: rgba(255, 255, 255, 0.055);
  color: #c9c1cd;
}

.task-disposition-gate {
  position: fixed;
  inset: 0;
  z-index: 430;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(2, 2, 4, 0.87);
  backdrop-filter: blur(20px);
}

.task-disposition-gate[hidden] {
  display: none;
}

.task-disposition-dialog {
  width: min(100%, 500px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(135, 81, 255, 0.14), transparent 32%),
    #111116;
  color: #f5f0f8;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.78);
  text-align: center;
}

.broken-task-dialog {
  width: min(100%, 650px);
  text-align: left;
}

.task-disposition-mark {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 1px solid rgba(135, 81, 255, 0.34);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #cdb9ff;
  background: rgba(135, 81, 255, 0.12);
  box-shadow: 0 16px 42px rgba(91, 42, 199, 0.18);
  font-size: 1rem;
}

.task-disposition-mark svg {
  width: 24px;
  height: 24px;
}

.task-disposition-mark.report-mark {
  border-color: rgba(244, 177, 91, 0.35);
  color: #f4bd76;
  background: rgba(244, 177, 91, 0.09);
  box-shadow: 0 16px 42px rgba(177, 105, 23, 0.15);
}

.broken-task-dialog .task-disposition-mark {
  margin-left: 0;
}

.task-disposition-dialog h2 {
  margin: 0 0 10px;
  color: #f2edf5;
  font-size: 1.8rem;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.task-disposition-dialog > p:not(.panel-kicker):not(.broken-task-error) {
  margin: 0 0 18px;
  color: #9a929f;
  font-size: 0.62rem;
  line-height: 1.62;
}

.skip-task-dialog > p:not(.panel-kicker) {
  max-width: 420px;
  margin-inline: auto;
}

.task-disposition-summary {
  min-height: 48px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #312d37;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #18161d;
  text-align: left;
}

.task-disposition-summary span {
  color: #89818e;
  font-size: 0.52rem;
}

.task-disposition-summary strong {
  color: #e9e2ed;
  font-size: 0.65rem;
}

.task-disposition-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.task-disposition-actions button {
  min-height: 48px;
  border-radius: 11px;
  font: inherit;
  font-size: 0.59rem;
  font-weight: 760;
  cursor: pointer;
}

.task-disposition-actions button:first-child {
  border: 1px solid #35313a;
  background: #19171d;
  color: #d0c9d4;
}

.task-disposition-actions button:last-child {
  border: 1px solid #8751ff;
  background: #8751ff;
  color: #fff;
  box-shadow: 0 14px 34px rgba(104, 52, 217, 0.24);
}

.broken-reason-options {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.broken-reason-options legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: #ded6e2;
  font-size: 0.58rem;
  font-weight: 760;
}

.broken-reason-options label {
  min-height: 43px;
  padding: 9px 10px;
  border: 1px solid #332f38;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #17151b;
  color: #b9b1bd;
  font-size: 0.53rem;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.broken-reason-options label:has(input:checked) {
  border-color: rgba(244, 177, 91, 0.55);
  background: rgba(244, 177, 91, 0.09);
  color: #f0d4af;
}

.broken-reason-options input,
.broken-task-confirm input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: #8751ff;
}

.broken-task-details {
  position: relative;
  margin-bottom: 12px;
  display: block;
}

.broken-task-details > span {
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ded6e2;
  font-size: 0.58rem;
  font-weight: 760;
}

.broken-task-details > span i,
.broken-task-details > small {
  color: #847b89;
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 540;
}

.broken-task-details textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid #39343f;
  border-radius: 11px;
  resize: vertical;
  background: #17151b;
  color: #eee8f1;
  font: inherit;
  font-size: 0.61rem;
  line-height: 1.55;
}

.broken-task-details textarea:focus {
  border-color: rgba(135, 81, 255, 0.7);
  outline: 3px solid rgba(135, 81, 255, 0.1);
}

.broken-task-details > small {
  margin-top: 5px;
  display: block;
  text-align: right;
}

.broken-task-confirm {
  min-height: 42px;
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid #332f38;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a9a0ad;
  background: #151319;
  font-size: 0.52rem;
}

.broken-task-error {
  min-height: 18px;
  margin: 0 0 7px;
  color: #ff9a78;
  font-size: 0.5rem;
  line-height: 1.45;
}

html[data-theme="light"] .project-market-rate {
  border-color: rgba(78, 123, 40, 0.26);
  background: linear-gradient(135deg, rgba(126, 177, 79, 0.16), rgba(126, 177, 79, 0.06));
}

html[data-theme="light"] .project-market-rate small,
html[data-theme="light"] .project-market-rate strong em,
html[data-theme="light"] .active-project-card-footer .active-project-pay small,
html[data-theme="light"] .active-project-card-footer .active-project-pay strong i,
html[data-theme="light"] .project-detail-rate .project-detail-pay small {
  color: #416e20;
}

html[data-theme="light"] .project-market-rate strong,
html[data-theme="light"] .active-project-card-footer .active-project-pay strong,
html[data-theme="light"] .project-detail-rate .project-detail-pay strong {
  color: #24321d;
}

html[data-theme="light"] .project-market-rate > i,
html[data-theme="light"] .project-detail-pay > span {
  color: #5b6754;
}

html[data-theme="light"] .active-project-card-footer .active-project-pay,
html[data-theme="light"] .project-detail-pay {
  border-color: rgba(78, 123, 40, 0.25);
  background: rgba(126, 177, 79, 0.12);
}

html[data-theme="light"] .project-detail-rate {
  background: #eee9e2;
}

html[data-theme="light"] .studio-skip {
  border-color: rgba(105, 54, 204, 0.3);
  background: rgba(125, 69, 237, 0.09);
  color: #5930a4;
}

html[data-theme="light"] .studio-report {
  border-color: rgba(171, 94, 0, 0.3);
  background: rgba(231, 147, 45, 0.1);
  color: #81500f;
}

html[data-theme="light"] .task-disposition-gate {
  background: rgba(31, 27, 35, 0.62);
}

html[data-theme="light"] .task-disposition-dialog {
  border-color: rgba(32, 24, 38, 0.14);
  background:
    radial-gradient(circle at 50% 0, rgba(125, 69, 237, 0.1), transparent 32%),
    #fbfaf7;
  color: #2e2732;
  box-shadow: 0 50px 140px rgba(41, 30, 49, 0.3);
}

html[data-theme="light"] .task-disposition-dialog h2,
html[data-theme="light"] .task-disposition-summary strong,
html[data-theme="light"] .broken-reason-options legend,
html[data-theme="light"] .broken-task-details > span {
  color: #302836;
}

html[data-theme="light"] .task-disposition-dialog > p:not(.panel-kicker):not(.broken-task-error),
html[data-theme="light"] .task-disposition-summary span,
html[data-theme="light"] .broken-task-confirm {
  color: #665d6b;
}

html[data-theme="light"] .task-disposition-summary,
html[data-theme="light"] .broken-reason-options label,
html[data-theme="light"] .broken-task-details textarea,
html[data-theme="light"] .broken-task-confirm {
  border-color: rgba(43, 31, 49, 0.15);
  background: #f0ece5;
}

html[data-theme="light"] .broken-reason-options label {
  color: #514956;
}

html[data-theme="light"] .broken-task-details textarea {
  color: #332b38;
}

html[data-theme="light"] .task-disposition-actions button:first-child {
  border-color: rgba(43, 31, 49, 0.16);
  background: #ebe7df;
  color: #3d3542;
}

@media (max-width: 900px) {
  .studio-header-actions > button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  .studio-header-actions > button > b {
    display: none;
  }

  .studio-header-actions > button > span {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 700px) {
  .project-market-card {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
  }

  .project-market-rate {
    grid-column: 2 / 4;
    width: min(100%, 220px);
    margin-top: 3px;
    padding: 9px 11px;
    border-top: 1px solid rgba(167, 211, 111, 0.22);
  }

  .project-market-rate strong,
  .project-market-rate i {
    display: block;
    margin-right: 0;
  }

  .project-market-rate strong {
    font-size: 0.95rem;
  }

  .active-project-card-footer {
    align-items: stretch;
  }

  .active-project-card-footer > div {
    align-items: center;
  }
}

@media (max-width: 560px) {
  .studio-header-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 4px;
  }

  .studio-header-actions > button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 9px;
  }

  .studio-header-actions > button > span {
    width: 20px;
    height: 20px;
  }

  .task-disposition-gate {
    padding: 10px;
    align-items: end;
  }

  .task-disposition-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 24px 17px 17px;
    border-radius: 22px 22px 16px 16px;
  }

  .task-disposition-mark {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 15px;
  }

  .task-disposition-dialog h2 {
    font-size: 1.5rem;
  }

  .broken-reason-options {
    grid-template-columns: 1fr;
  }

  .task-disposition-actions {
    grid-template-columns: 1fr;
  }

  .task-disposition-actions button:last-child {
    grid-row: 1;
  }

  .project-detail-rate {
    grid-template-columns: 1fr;
  }

  .project-detail-rate > div + div {
    padding: 9px 12px 5px;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }
}

/* Project marketplace: direct, high-confidence joining */
.project-market-card {
  cursor: pointer;
}

.project-market-card:focus-visible {
  outline: 3px solid rgba(151, 100, 255, 0.42);
  outline-offset: 3px;
}

.project-market-quick {
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 132px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(170, 126, 255, 0.38);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #8c52ff, #6730dc);
  box-shadow: 0 12px 28px rgba(107, 52, 223, 0.22);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-market-quick:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(107, 52, 223, 0.31); }
.project-market-quick.joined { color: #151a0f; border-color: rgba(190, 232, 133, 0.7); background: #bce783; box-shadow: 0 12px 26px rgba(146, 190, 88, 0.18); }
.project-market-quick span { font-size: 1rem; }

html[data-theme="light"] .project-market-quick { color: #fff; border-color: #7441df; }
html[data-theme="light"] .project-market-quick.joined { color: #263417; border-color: #8ab54f; background: #bce783; }

@media (max-width: 1120px) {
  .project-market-quick { grid-column: 2 / -1; justify-self: stretch; }
}

@media (max-width: 720px) {
  .project-market-quick { grid-column: 1 / -1; width: 100%; margin-top: 2px; }
}

/* Final project-card cascade: keep availability and pay visually dominant. */

.project-market-card {
  min-height: 154px !important;
  padding: 17px !important;
  grid-template-columns: 44px minmax(0, 1fr) minmax(218px, 242px) 18px !important;
  align-items: center !important;
  gap: 15px !important;
  border-color: #28262b !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #121214, #0f0f11) !important;
}

.project-market-card:hover {
  border-color: rgba(140, 82, 255, 0.34) !important;
  background: linear-gradient(145deg, #17151a, #121114) !important;
}

.project-market-card.selected {
  border-color: rgba(140, 82, 255, 0.52) !important;
  background: radial-gradient(circle at 0 50%, rgba(140, 82, 255, 0.11), transparent 34%), linear-gradient(145deg, #17151a, #121114) !important;
  box-shadow: inset 3px 0 var(--purple), 0 12px 26px rgba(0, 0, 0, 0.16) !important;
}

.project-market-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px !important;
}

.project-market-main > strong {
  margin-bottom: 6px !important;
  color: #ece8ef !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
}

.project-market-client {
  color: #87828c !important;
  font-size: 0.51rem !important;
}

.project-market-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.project-market-availability,
.project-market-metrics .project-market-rate {
  width: auto;
  min-width: 0;
  min-height: 88px;
  margin: 0;
  padding: 12px;
  grid-column: auto;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  box-shadow: none;
}

.project-market-availability {
  border: 1px solid rgba(140, 82, 255, 0.24);
  background: radial-gradient(circle at 100% 0, rgba(140, 82, 255, 0.13), transparent 52%), rgba(140, 82, 255, 0.045);
}

.project-market-metrics .project-market-rate {
  border: 1px solid rgba(167, 211, 111, 0.25);
  background: radial-gradient(circle at 100% 0, rgba(167, 211, 111, 0.13), transparent 52%), rgba(167, 211, 111, 0.05);
}

.project-market-availability small,
.project-market-metrics .project-market-rate small {
  margin: 0;
  color: #8e8994;
  font-size: 0.43rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1.2;
}

.project-market-availability strong,
.project-market-metrics .project-market-rate strong {
  margin: 8px 0 6px;
  color: #f3eff6;
  font-size: 1.08rem;
  font-weight: 820;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.project-market-metrics .project-market-rate strong {
  color: #eef7e7;
}

.project-market-availability > i,
.project-market-metrics .project-market-rate > i {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #77717c;
  font-size: 0.42rem;
}

.active-project-card-footer > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.active-project-card-footer .active-project-pay,
.active-project-card-footer .active-project-availability {
  min-width: 0 !important;
  padding: 10px 11px !important;
  border-radius: 11px !important;
}

.active-project-card-footer .active-project-availability {
  border: 1px solid rgba(140, 82, 255, 0.2);
  background: rgba(140, 82, 255, 0.055);
}

.active-project-card-footer .active-project-pay strong,
.active-project-card-footer .active-project-availability strong {
  margin-top: 6px !important;
  color: #f0ecf3 !important;
  font-size: 0.78rem !important;
}

.project-detail-rate {
  gap: 8px !important;
  padding: 8px !important;
  background: #0f0f11 !important;
}

.project-detail-rate > div + div {
  padding: 12px !important;
  border-top: 0 !important;
  border-left: 0 !important;
}

.project-detail-pay,
.project-detail-availability {
  min-width: 0 !important;
  padding: 12px !important;
  border-radius: 11px !important;
}

.project-detail-availability {
  border: 1px solid rgba(140, 82, 255, 0.22);
  background: rgba(140, 82, 255, 0.055);
}

html[data-theme="light"] .project-market-card,
html[data-theme="light"] .project-market-card:hover,
html[data-theme="light"] .project-market-card.selected {
  border-color: #d9d1dc !important;
  background: radial-gradient(circle at 0 50%, rgba(116, 56, 230, 0.06), transparent 34%), #fff !important;
}

html[data-theme="light"] .project-market-card:hover,
html[data-theme="light"] .project-market-card.selected {
  border-color: rgba(116, 56, 230, 0.44) !important;
}

html[data-theme="light"] .project-market-main > strong,
html[data-theme="light"] .project-market-availability strong {
  color: #29222e !important;
}

html[data-theme="light"] .project-market-metrics .project-market-rate {
  border-color: rgba(78, 123, 40, 0.25);
  background: rgba(126, 177, 79, 0.11);
}

html[data-theme="light"] .project-market-metrics .project-market-rate strong {
  color: #2e431f;
}

html[data-theme="light"] .active-project-card-footer .active-project-availability,
html[data-theme="light"] .project-detail-availability {
  border-color: rgba(116, 56, 230, 0.22);
  background: rgba(116, 56, 230, 0.07);
}

html[data-theme="light"] .active-project-card-footer .active-project-pay strong,
html[data-theme="light"] .active-project-card-footer .active-project-availability strong {
  color: #302638 !important;
}

html[data-theme="light"] .project-detail-rate {
  background: #eee9e2 !important;
}

@media (max-width: 1180px) {
  .project-market-card {
    grid-template-columns: 42px minmax(0, 1fr) minmax(206px, 222px) 16px !important;
    gap: 12px !important;
  }
}

@media (max-width: 780px) {
  .project-market-card {
    min-height: 0 !important;
    grid-template-columns: 42px minmax(0, 1fr) 18px !important;
    align-items: start !important;
  }

  .project-market-metrics {
    width: 100%;
    grid-column: 2 / 4;
  }

  .project-market-availability,
  .project-market-metrics .project-market-rate {
    min-height: 78px;
    grid-column: auto;
  }

  .project-market-card > em {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .project-market-card {
    padding: 14px !important;
    grid-template-columns: 38px minmax(0, 1fr) 16px !important;
    gap: 11px !important;
  }

  .project-market-metrics {
    grid-column: 1 / -1;
    gap: 7px;
  }

  .project-market-availability,
  .project-market-metrics .project-market-rate {
    min-height: 74px;
    padding: 10px;
  }

  .active-project-card-footer > div {
    width: 100%;
  }

  .project-detail-rate {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 370px) {
  .project-market-metrics,
  .active-project-card-footer > div,
  .project-detail-rate {
    grid-template-columns: 1fr !important;
  }
}

/* Project marketplace opportunity hierarchy */

.project-catalogue-subtitle {
  display: block;
  margin-top: 7px;
  color: #737078;
  font-size: 0.52rem;
  line-height: 1.45;
}

.project-stat-available {
  border-color: rgba(167, 211, 111, 0.2) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(167, 211, 111, 0.09), transparent 48%),
    #0d0d0e !important;
}

.project-stat-pay {
  border-color: rgba(140, 82, 255, 0.24) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(140, 82, 255, 0.12), transparent 50%),
    #0d0d0e !important;
}

.project-stat-available strong {
  color: #dff2cc;
}

.project-stat-pay strong {
  color: #e4d7ff;
}

.project-market-card {
  min-height: 154px;
  padding: 17px;
  grid-template-columns: 44px minmax(0, 1fr) minmax(218px, 242px) 18px;
  align-items: center;
  gap: 15px;
  border-color: #28262b;
  border-radius: 16px;
  background: linear-gradient(145deg, #121214, #0f0f11);
}

.project-market-card:hover {
  border-color: rgba(140, 82, 255, 0.34);
  background: linear-gradient(145deg, #17151a, #121114);
}

.project-market-card.selected {
  border-color: rgba(140, 82, 255, 0.52);
  background:
    radial-gradient(circle at 0 50%, rgba(140, 82, 255, 0.11), transparent 34%),
    linear-gradient(145deg, #17151a, #121114);
  box-shadow: inset 3px 0 var(--purple), 0 12px 26px rgba(0, 0, 0, 0.16);
}

.project-market-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.project-market-main {
  min-width: 0;
}

.project-market-main > span:first-child {
  margin-bottom: 8px;
}

.project-market-main > span:first-child i {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.44rem;
  letter-spacing: 0.045em;
}

.project-market-main > span:first-child small {
  overflow: hidden;
  color: #77727c;
  font-size: 0.48rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-market-main > strong {
  margin-bottom: 6px;
  color: #ece8ef;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.project-market-client {
  display: block;
  overflow: hidden;
  color: #87828c !important;
  font-size: 0.51rem !important;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-market-tags {
  margin-top: 10px;
}

.project-market-tags i {
  padding: 4px 7px;
  color: #8d8892;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.43rem;
}

.project-market-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.project-market-availability,
.project-market-rate {
  min-width: 0;
  min-height: 88px;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.project-market-availability {
  border: 1px solid rgba(140, 82, 255, 0.24);
  background:
    radial-gradient(circle at 100% 0, rgba(140, 82, 255, 0.13), transparent 52%),
    rgba(140, 82, 255, 0.045);
}

.project-market-rate {
  width: auto;
  margin: 0;
  padding: 12px;
  grid-column: auto;
  border: 1px solid rgba(167, 211, 111, 0.25);
  background:
    radial-gradient(circle at 100% 0, rgba(167, 211, 111, 0.13), transparent 52%),
    rgba(167, 211, 111, 0.05);
  box-shadow: none;
}

.project-market-availability small,
.project-market-rate small {
  display: block;
  margin: 0;
  color: #8e8994;
  font-size: 0.43rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-market-availability strong,
.project-market-rate strong {
  display: block;
  margin: 8px 0 6px;
  color: #f3eff6;
  font-size: 1.08rem;
  font-weight: 820;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.project-market-availability strong em,
.project-market-rate strong em {
  margin-left: 4px;
  color: #aaa4ae;
  font-size: 0.44rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.project-market-rate strong {
  color: #eef7e7;
}

.project-market-rate strong em {
  color: #a8cb88;
}

.project-market-availability > i,
.project-market-rate > i {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #77717c;
  font-size: 0.42rem;
  font-style: normal;
  line-height: 1.25;
}

.project-market-availability > i b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(167, 211, 111, 0.08);
}

.project-market-card > em {
  align-self: center;
  color: #8f6bd5;
  font-size: 0.62rem;
}

.active-project-card-footer > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.active-project-card-footer .active-project-pay,
.active-project-card-footer .active-project-availability {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 11px;
  display: block;
}

.active-project-card-footer .active-project-availability {
  border: 1px solid rgba(140, 82, 255, 0.2);
  background: rgba(140, 82, 255, 0.055);
}

.active-project-card-footer .active-project-pay strong,
.active-project-card-footer .active-project-availability strong {
  margin-top: 6px;
  display: block;
  color: #f0ecf3;
  font-size: 0.78rem;
  letter-spacing: -0.025em;
}

.active-project-card-footer .active-project-availability small {
  color: #a992d9;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.active-project-card-footer .active-project-availability strong i {
  color: #8e8793;
  font-size: 0.46rem;
  font-style: normal;
  font-weight: 650;
}

.project-detail-rate {
  gap: 8px;
  padding: 8px;
  background: #0f0f11;
}

.project-detail-rate > div + div {
  padding-left: 0;
  border-left: 0;
}

.project-detail-pay,
.project-detail-availability {
  min-width: 0;
  padding: 12px;
  border-radius: 11px;
}

.project-detail-availability {
  border: 1px solid rgba(140, 82, 255, 0.22);
  background: rgba(140, 82, 255, 0.055);
}

.project-detail-availability small,
.project-detail-availability strong,
.project-detail-availability span {
  display: block;
}

.project-detail-availability small {
  color: #a28bcf;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-detail-availability strong {
  margin-bottom: 5px;
  color: #f1ecf5;
  font-size: 1.05rem;
  letter-spacing: -0.035em;
}

.project-detail-availability span {
  color: #7e7784;
  font-size: 0.43rem;
  line-height: 1.35;
}

html[data-theme="light"] .project-catalogue-subtitle {
  color: #675d6d;
}

html[data-theme="light"] .project-stat-available {
  border-color: rgba(78, 123, 40, 0.23) !important;
  background: linear-gradient(145deg, #fff, #f4f8ef) !important;
}

html[data-theme="light"] .project-stat-pay {
  border-color: rgba(116, 56, 230, 0.24) !important;
  background: linear-gradient(145deg, #fff, #f5f0fc) !important;
}

html[data-theme="light"] .project-stat-available strong {
  color: #345d1b;
}

html[data-theme="light"] .project-stat-pay strong {
  color: #5c2fae;
}

html[data-theme="light"] .project-market-card {
  border-color: #d9d1dc;
  background: linear-gradient(145deg, #fff, #faf8fb);
  box-shadow: 0 8px 20px rgba(45, 31, 52, 0.055);
}

html[data-theme="light"] .project-market-card:hover,
html[data-theme="light"] .project-market-card.selected {
  border-color: rgba(116, 56, 230, 0.44);
  background:
    radial-gradient(circle at 0 50%, rgba(116, 56, 230, 0.08), transparent 34%),
    #fff;
}

html[data-theme="light"] .project-market-main > strong,
html[data-theme="light"] .project-market-availability strong {
  color: #29222e;
}

html[data-theme="light"] .project-market-main > span:first-child small,
html[data-theme="light"] .project-market-client,
html[data-theme="light"] .project-market-availability > i,
html[data-theme="light"] .project-market-rate > i {
  color: #665d6b !important;
}

html[data-theme="light"] .project-market-availability {
  border-color: rgba(116, 56, 230, 0.22);
  background: rgba(116, 56, 230, 0.065);
}

html[data-theme="light"] .project-market-rate {
  border-color: rgba(78, 123, 40, 0.25);
  background: rgba(126, 177, 79, 0.11);
}

html[data-theme="light"] .project-market-rate strong {
  color: #2e431f;
}

html[data-theme="light"] .project-market-availability strong em,
html[data-theme="light"] .project-market-rate strong em {
  color: #625868;
}

html[data-theme="light"] .active-project-card-footer .active-project-availability,
html[data-theme="light"] .project-detail-availability {
  border-color: rgba(116, 56, 230, 0.22);
  background: rgba(116, 56, 230, 0.07);
}

html[data-theme="light"] .active-project-card-footer .active-project-availability small,
html[data-theme="light"] .project-detail-availability small {
  color: #6135ad;
}

html[data-theme="light"] .active-project-card-footer .active-project-availability strong,
html[data-theme="light"] .project-detail-availability strong {
  color: #302638;
}

html[data-theme="light"] .active-project-card-footer .active-project-availability strong i,
html[data-theme="light"] .project-detail-availability span {
  color: #685f6d;
}

@media (max-width: 1180px) {
  .project-market-card {
    grid-template-columns: 42px minmax(0, 1fr) minmax(206px, 222px) 16px;
    gap: 12px;
  }
}

@media (max-width: 780px) {
  .project-market-card {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: start;
  }

  .project-market-metrics {
    width: 100%;
    grid-column: 2 / 4;
  }

  .project-market-availability,
  .project-market-rate {
    min-height: 78px;
    grid-column: auto;
  }

  .project-market-card > em {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .project-catalogue-heading {
    gap: 14px;
  }

  .project-market-card {
    padding: 14px;
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    gap: 11px;
  }

  .project-market-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .project-market-main > strong {
    font-size: 0.8rem;
  }

  .project-market-tags {
    gap: 4px;
  }

  .project-market-metrics {
    grid-column: 1 / -1;
    gap: 7px;
  }

  .project-market-availability,
  .project-market-rate {
    min-height: 74px;
    padding: 10px;
  }

  .project-market-availability strong,
  .project-market-rate strong {
    margin: 7px 0 5px;
    font-size: 1rem;
  }

  .active-project-card-footer > div {
    width: 100%;
  }

  .project-detail-rate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-detail-rate > div + div {
    padding: 12px;
    border-top: 1px solid rgba(140, 82, 255, 0.22);
  }
}

@media (max-width: 370px) {
  .project-market-metrics,
  .active-project-card-footer > div,
  .project-detail-rate {
    grid-template-columns: 1fr;
  }
}

/* Professional Lucide interface iconography */
.ui-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  display: inline-block;
  overflow: visible;
  color: inherit;
  vertical-align: -0.14em;
  pointer-events: none;
}

.ui-icon-with-text {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.48em;
}

.dashboard-nav button > span .ui-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.sidebar-link > span .ui-icon {
  width: 15px;
  height: 15px;
}

.stat-icon .ui-icon,
.project-accent .ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.theme-toggle .ui-icon,
.dashboard-theme-toggle .ui-icon,
.tour-replay-button .ui-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.icon-button > .ui-icon,
.dashboard-menu > .ui-icon {
  width: 18px;
  height: 18px;
}

.location-chip > span:first-child .ui-icon {
  width: 16px;
  height: 16px;
}

.button .ui-icon,
.proxy-primary .ui-icon,
.project-start-button .ui-icon,
.checklist-action .ui-icon,
.professional-pay-button .ui-icon,
.secondary-action .ui-icon,
.studio-submit-summary button .ui-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.field-icon .ui-icon {
  width: 15px;
  height: 15px;
  stroke-width: 1.7;
}

.document-option-icon .ui-icon,
.bank-empty-icon .ui-icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.6;
}

.secure-lock .ui-icon,
.warning-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.glow-check .ui-icon,
.success-burst .ui-icon,
.bank-success-mark .ui-icon,
.proxy-success-mark .ui-icon {
  width: 38%;
  height: 38%;
  stroke-width: 2.35;
}

.floating-icon .ui-icon,
.system-core .ui-icon {
  width: 46%;
  height: 46%;
  stroke-width: 1.55;
}

.platform-tour__icon .ui-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.75;
}

.dashboard-nav button .ui-icon,
.button .ui-icon,
.project-start-button .ui-icon,
.professional-pay-button .ui-icon,
.checklist-action .ui-icon,
.sidebar-link .ui-icon {
  transition: transform 180ms ease, color 180ms ease;
}

.dashboard-nav button:hover .ui-icon,
.dashboard-nav button.active .ui-icon,
.sidebar-link:hover .ui-icon {
  transform: translateY(-1px);
}

.button:hover .ui-icon--arrowUpRight,
.project-start-button:hover .ui-icon--arrowUpRight,
.professional-pay-button:hover .ui-icon--arrowUpRight,
.checklist-action:hover .ui-icon--arrowUpRight {
  transform: translate(2px, -2px);
}

html[data-theme="light"] .ui-icon {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.72));
}

@media (max-width: 1024px) {
  .dashboard-nav button > span .ui-icon {
    width: 19px;
    height: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-icon {
    transition: none !important;
  }
}

/* Contributor payments workspace */

.payments-content {
  padding-top: 54px;
}

.payments-hero {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}

.payments-hero .eyebrow {
  margin-bottom: 16px;
  font-size: 0.61rem;
}

.payments-hero h1 {
  margin-bottom: 13px;
  font-size: clamp(3.1rem, 5vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.067em;
  font-weight: 620;
}

.payments-hero h1 span {
  color: #77747b;
}

.payments-hero > div > p:last-child {
  max-width: 650px;
  margin: 0;
  color: #77747b;
  font-size: 0.76rem;
  line-height: 1.65;
}

.payment-stats {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.payment-stats article {
  min-height: 134px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  display: flex;
  gap: 14px;
  background: #0d0d0e;
}

.payment-stats small,
.payment-stats strong,
.payment-stats p {
  display: block;
}

.payment-stats small {
  margin-bottom: 10px;
  color: #77747b;
  font-size: 0.52rem;
}

.payment-stats strong {
  color: #e5e1e8;
  font-size: 1.28rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.payment-stats p {
  margin: 8px 0 0;
  color: #57545b;
  font-size: 0.48rem;
  line-height: 1.45;
}

.payments-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
}

.payment-column,
.payment-side-column {
  display: grid;
  align-content: start;
  gap: 16px;
}

.payment-panel {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #0d0d0e;
}

.bank-method-panel {
  min-height: 420px;
  padding: 25px;
}

.method-state {
  padding: 6px 9px;
  border: 1px solid rgba(255, 130, 89, 0.2);
  border-radius: 999px;
  color: var(--success-soft) !important;
  background: rgba(255, 130, 89, 0.06);
  font-size: 0.46rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.method-state.ready {
  border-color: rgba(167, 211, 111, 0.2);
  color: var(--green) !important;
  background: rgba(167, 211, 111, 0.06);
}

.bank-empty {
  min-height: 315px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.bank-empty[hidden],
.connected-bank[hidden] {
  display: none;
}

.bank-empty-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 19px;
  border: 1px solid rgba(140, 82, 255, 0.24);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--purple-soft);
  background: rgba(140, 82, 255, 0.08);
  box-shadow: 0 0 48px rgba(140, 82, 255, 0.11);
  font-size: 1rem;
}

.bank-empty h3 {
  margin-bottom: 9px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.bank-empty > p {
  max-width: 455px;
  margin: 0 auto 20px;
  color: #747178;
  font-size: 0.64rem;
  line-height: 1.65;
}

.bank-empty .button {
  min-height: 42px;
  margin-bottom: 23px;
  font-size: 0.58rem;
}

.bank-security-note {
  max-width: 470px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #5f5c63;
  text-align: left;
}

.bank-security-note > span {
  color: var(--green);
}

.bank-security-note p {
  margin: 0;
  font-size: 0.49rem;
  line-height: 1.55;
}

.connected-bank {
  padding-top: 12px;
}

.connected-bank-card {
  min-height: 120px;
  padding: 20px;
  border: 1px solid #27262a;
  border-radius: 15px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 15px;
  background:
    radial-gradient(circle at 88% 12%, rgba(140, 82, 255, 0.12), transparent 34%),
    #121214;
}

.bank-monogram {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(140, 82, 255, 0.22);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #cbb8ff;
  background: rgba(140, 82, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
}

.connected-bank-main > small,
.connected-bank-main h3,
.connected-bank-main p {
  display: block;
}

.connected-bank-main > small {
  margin-bottom: 7px;
  color: #5f5c63;
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.connected-bank-main h3 {
  margin-bottom: 8px;
  font-size: 0.92rem;
  letter-spacing: -0.025em;
}

.connected-bank-main p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a777e;
  font-size: 0.54rem;
}

.connected-bank-main p i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4f4c52;
}

.verified-pill {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(167, 211, 111, 0.08);
  font-size: 0.48rem;
  font-weight: 700;
}

.bank-detail-grid {
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bank-detail-grid > div {
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #101012;
}

.bank-detail-grid small,
.bank-detail-grid strong,
.bank-detail-grid span {
  display: block;
}

.bank-detail-grid small {
  margin-bottom: 10px;
  color: #5d5a61;
  font-size: 0.47rem;
}

.bank-detail-grid strong {
  margin-bottom: 5px;
  color: #c6c2ca;
  font-size: 0.68rem;
}

.bank-detail-grid span {
  color: #5f5c63;
  font-size: 0.48rem;
}

.secondary-action {
  width: 100%;
  min-height: 43px;
  border: 1px solid #2b292e;
  border-radius: 10px;
  background: #171719;
  color: #c7c3ca;
  font-size: 0.56rem;
  font-weight: 650;
  cursor: pointer;
}

.payout-history-panel {
  padding: 25px;
}

.history-empty {
  min-height: 130px;
  padding: 18px;
  border: 1px dashed #29282b;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #101011;
}

.history-empty > span {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #77747b;
  background: #19181b;
}

.history-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #bbb7bf;
  font-size: 0.65rem;
}

.history-empty p {
  max-width: 490px;
  margin: 0;
  color: #646168;
  font-size: 0.52rem;
  line-height: 1.55;
}

.payout-schedule-panel {
  padding: 25px;
}

.payout-schedule-panel h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  letter-spacing: -0.045em;
}

.payout-schedule-panel > p:not(.panel-overline) {
  margin: 0;
  color: #747178;
  font-size: 0.59rem;
  line-height: 1.65;
}

.schedule-track {
  margin: 25px 0 20px;
}

.schedule-track > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.schedule-track > div > span {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  border: 1px solid rgba(140, 82, 255, 0.25);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #cbb8ff;
  background: rgba(140, 82, 255, 0.09);
  font-size: 0.68rem;
  font-weight: 750;
}

.schedule-track strong,
.schedule-track small {
  display: block;
}

.schedule-track strong {
  margin-bottom: 5px;
  color: #c6c2ca;
  font-size: 0.61rem;
}

.schedule-track small {
  color: #5c5960;
  font-size: 0.48rem;
}

.schedule-track > i {
  width: 1px;
  height: 21px;
  margin: 5px 0 5px 21px;
  display: block;
  background: linear-gradient(var(--purple), rgba(140, 82, 255, 0.1));
}

.next-window-card {
  padding: 16px;
  border: 1px solid rgba(167, 211, 111, 0.15);
  border-radius: 13px;
  background: rgba(167, 211, 111, 0.045);
}

.next-window-card small,
.next-window-card strong,
.next-window-card span {
  display: block;
}

.next-window-card small {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.next-window-card strong {
  margin-bottom: 7px;
  color: #d5d1d8;
  font-size: 0.66rem;
}

.next-window-card span {
  color: #66636a;
  font-size: 0.48rem;
  line-height: 1.5;
}

.payment-liability-note {
  padding: 18px;
  border: 1px solid rgba(255, 130, 89, 0.16);
  border-radius: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 130, 89, 0.045);
}

.payment-liability-note > span {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--success-soft);
  background: rgba(255, 130, 89, 0.1);
  font-size: 0.58rem;
  font-weight: 800;
}

.payment-liability-note strong {
  display: block;
  margin-bottom: 7px;
  color: #c6b8b4;
  font-size: 0.59rem;
}

.payment-liability-note p {
  margin: 0;
  color: #716762;
  font-size: 0.5rem;
  line-height: 1.6;
}

/* Bank connection flow */

.bank-gate {
  position: fixed;
  inset: 0;
  z-index: 220;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(2, 2, 3, 0.8);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.bank-gate.open {
  opacity: 1;
  visibility: visible;
}

.bank-dialog {
  position: relative;
  width: min(100%, 600px);
  max-height: calc(100vh - 48px);
  padding: 28px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(140, 82, 255, 0.11), transparent 35%),
    #111112;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.74), 0 0 80px rgba(140, 82, 255, 0.07);
}

.bank-dialog-top {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bank-step-count {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5e5b62;
  font-size: 0.5rem;
}

.bank-step-count span:first-child {
  color: var(--purple-soft);
}

.bank-step-count i {
  width: 35px;
  height: 1px;
  background: #2b292e;
}

.bank-close {
  width: 34px;
  height: 34px;
  border: 1px solid #2b292e;
  border-radius: 10px;
  background: #171719;
  color: #8e8a92;
  font-size: 1rem;
  cursor: pointer;
}

.bank-step[hidden] {
  display: none;
}

.bank-step h2 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 630;
}

.bank-intro {
  max-width: 500px;
  margin: 0 0 22px;
  color: #77747b;
  font-size: 0.63rem;
  line-height: 1.6;
}

.bank-search-field {
  min-height: 53px;
  padding: 0 13px;
  border: 1px solid #2c2a2f;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #171719;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bank-search-field:focus-within {
  border-color: rgba(140, 82, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.1);
}

.bank-search-field > span {
  color: #88858d;
  font-size: 1rem;
}

.bank-search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e5e1e8;
  font: inherit;
  font-size: 0.66rem;
}

.bank-search-field input::placeholder {
  color: #66636a;
}

.bank-search-field kbd {
  padding: 5px 7px;
  border: 1px solid #333136;
  border-radius: 6px;
  color: #716e75;
  background: #101011;
  font: inherit;
  font-size: 0.42rem;
  letter-spacing: 0.05em;
}

.bank-results-heading {
  margin: 18px 2px 9px;
  display: flex;
  justify-content: space-between;
  color: #6b686f;
  font-size: 0.48rem;
}

.bank-results {
  max-height: 315px;
  display: grid;
  gap: 7px;
  overflow-y: auto;
}

.bank-result {
  width: 100%;
  min-height: 72px;
  padding: 11px;
  border: 1px solid #262529;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 19px;
  align-items: center;
  gap: 12px;
  background: #151517;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.bank-result:hover,
.bank-result:focus-visible {
  border-color: rgba(140, 82, 255, 0.5);
  background: #19181b;
  outline: 0;
  transform: translateY(-1px);
}

.bank-result .bank-monogram {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 0.58rem;
}

.bank-result > span:nth-child(2) strong,
.bank-result > span:nth-child(2) small,
.bank-result > span:nth-child(3) strong,
.bank-result > span:nth-child(3) small {
  display: block;
}

.bank-result > span:nth-child(2) strong {
  margin-bottom: 6px;
  color: #c9c5cc;
  font-size: 0.61rem;
}

.bank-result > span:nth-child(2) small,
.bank-result > span:nth-child(3) small {
  color: #5d5a61;
  font-size: 0.45rem;
}

.bank-result > span:nth-child(3) {
  text-align: right;
}

.bank-result > span:nth-child(3) strong {
  margin-top: 5px;
  color: #8d8991;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
}

.bank-result > i {
  color: var(--purple-soft);
  font-size: 0.55rem;
  font-style: normal;
}

.bank-directory-note {
  margin: 14px 0 0;
  color: #5f5c63;
  font-size: 0.49rem;
  line-height: 1.55;
  text-align: center;
}

.bank-no-results {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #706d74;
  text-align: center;
}

.bank-no-results > span {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.bank-no-results strong {
  margin-bottom: 6px;
  color: #aaa6ad;
  font-size: 0.64rem;
}

.bank-no-results p {
  max-width: 330px;
  margin: 0;
  font-size: 0.52rem;
  line-height: 1.55;
}

.selected-bank-summary {
  min-height: 72px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #2b292e;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #171719;
}

.selected-bank-summary strong,
.selected-bank-summary small {
  display: block;
}

.selected-bank-summary strong {
  margin-bottom: 6px;
  color: #cbc7ce;
  font-size: 0.64rem;
}

.selected-bank-summary small {
  color: #68656c;
  font-size: 0.48rem;
}

.selected-bank-summary > i {
  color: var(--green);
  font-style: normal;
}

.account-number-field {
  padding: 16px;
  border: 1px solid #2b292e;
  border-radius: 13px;
  display: block;
  background: #171719;
}

.account-number-field > span strong,
.account-number-field > span small {
  display: block;
}

.account-number-field > span strong {
  margin-bottom: 5px;
  color: #bdb9c1;
  font-size: 0.59rem;
}

.account-number-field > span small {
  color: #625f66;
  font-size: 0.47rem;
}

.account-number-field input {
  width: 100%;
  height: 48px;
  margin-top: 13px;
  padding: 0 13px;
  border: 1px solid #302e33;
  border-radius: 10px;
  outline: 0;
  background: #101011;
  color: #e5e1e8;
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.035em;
}

.account-number-field input:focus {
  border-color: rgba(140, 82, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.1);
}

.account-number-field em {
  display: block;
  min-height: 14px;
  margin-top: 7px;
  color: var(--success-soft);
  font-size: 0.48rem;
  font-style: normal;
}

.bank-confirmation {
  margin: 13px 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #716e75;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.5rem;
  line-height: 1.55;
  cursor: pointer;
}

.bank-confirmation input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--purple);
}

.bank-privacy {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #5f5c63;
}

.bank-privacy > span {
  color: var(--green);
}

.bank-privacy p {
  margin: 0;
  font-size: 0.48rem;
  line-height: 1.55;
}

.bank-primary {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f4f1f6;
  color: #111012;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.bank-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.bank-success-step {
  min-height: 510px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.bank-success-step[hidden] {
  display: none;
}

.bank-success-mark {
  width: 78px;
  height: 78px;
  margin-bottom: 25px;
  border: 1px solid rgba(167, 211, 111, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(167, 211, 111, 0.06);
  box-shadow: 0 0 65px rgba(167, 211, 111, 0.1);
}

.bank-success-mark span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0b0c09;
  background: var(--green);
  font-size: 1rem;
  font-weight: 800;
}

.bank-success-step .bank-intro {
  max-width: 410px;
  text-align: center;
}

.bank-success-step .bank-intro strong {
  color: #d4d0d7;
}

.bank-success-card {
  width: min(100%, 420px);
  margin: 4px auto 17px;
  padding: 18px;
  border: 1px solid rgba(167, 211, 111, 0.16);
  border-radius: 14px;
  background: rgba(167, 211, 111, 0.05);
}

.bank-success-card small,
.bank-success-card strong,
.bank-success-card span {
  display: block;
}

.bank-success-card small {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.46rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bank-success-card strong {
  margin-bottom: 7px;
  color: #d4d0d7;
  font-size: 0.73rem;
}

.bank-success-card span {
  color: #69666d;
  font-size: 0.49rem;
}

/* Payments in light mode */

html[data-theme="light"] .payments-hero h1 span {
  color: #716a76;
}

html[data-theme="light"] .payments-hero > div > p:last-child,
html[data-theme="light"] .bank-empty > p,
html[data-theme="light"] .payout-schedule-panel > p:not(.panel-overline),
html[data-theme="light"] .bank-intro,
html[data-theme="light"] .bank-directory-note {
  color: #5d5762;
}

html[data-theme="light"] .payment-stats article,
html[data-theme="light"] .payment-panel {
  border-color: rgba(26, 22, 31, 0.13);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(37, 29, 48, 0.08);
}

html[data-theme="light"] .payment-stats small,
html[data-theme="light"] .payment-stats p,
html[data-theme="light"] .history-empty p,
html[data-theme="light"] .next-window-card span,
html[data-theme="light"] .schedule-track small,
html[data-theme="light"] .bank-security-note,
html[data-theme="light"] .bank-privacy {
  color: #625c67;
}

html[data-theme="light"] .payment-stats strong,
html[data-theme="light"] .bank-empty h3,
html[data-theme="light"] .payout-schedule-panel h2,
html[data-theme="light"] .history-empty strong,
html[data-theme="light"] .schedule-track strong,
html[data-theme="light"] .next-window-card strong {
  color: #27222c;
}

html[data-theme="light"] .connected-bank-card,
html[data-theme="light"] .bank-detail-grid > div,
html[data-theme="light"] .history-empty {
  border-color: rgba(26, 22, 31, 0.14);
  background: #f1ede6;
}

html[data-theme="light"] .connected-bank-main > small,
html[data-theme="light"] .connected-bank-main p,
html[data-theme="light"] .bank-detail-grid small,
html[data-theme="light"] .bank-detail-grid span {
  color: #625c67;
}

html[data-theme="light"] .connected-bank-main h3,
html[data-theme="light"] .bank-detail-grid strong {
  color: #29242e;
}

html[data-theme="light"] .secondary-action {
  border-color: rgba(26, 22, 31, 0.15);
  background: #ebe7df;
  color: #37313c;
}

html[data-theme="light"] .history-empty > span {
  color: #5b5560;
  background: #e4dfd7;
}

html[data-theme="light"] .payment-liability-note {
  border-color: rgba(180, 80, 44, 0.22);
  background: rgba(255, 130, 89, 0.085);
}

html[data-theme="light"] .payment-liability-note strong {
  color: #633a2d;
}

html[data-theme="light"] .payment-liability-note p {
  color: #6a5149;
}

html[data-theme="light"] .bank-gate {
  background: rgba(31, 27, 35, 0.56);
}

html[data-theme="light"] .bank-dialog {
  border-color: rgba(26, 22, 31, 0.14);
  background:
    radial-gradient(circle at 100% 0, rgba(125, 69, 237, 0.11), transparent 35%),
    #fbfaf7;
  box-shadow: 0 52px 145px rgba(37, 29, 48, 0.3), 0 0 80px rgba(125, 69, 237, 0.07);
}

html[data-theme="light"] .bank-close,
html[data-theme="light"] .bank-search-field,
html[data-theme="light"] .selected-bank-summary,
html[data-theme="light"] .account-number-field,
html[data-theme="light"] .bank-confirmation {
  border-color: rgba(26, 22, 31, 0.16);
  background: #eeeae3;
}

html[data-theme="light"] .bank-search-field input,
html[data-theme="light"] .account-number-field input {
  color: #27222c;
}

html[data-theme="light"] .bank-search-field input::placeholder {
  color: #706a75;
}

html[data-theme="light"] .bank-search-field kbd,
html[data-theme="light"] .account-number-field input {
  border-color: rgba(26, 22, 31, 0.17);
  background: #f8f6f1;
}

html[data-theme="light"] .bank-result {
  border-color: rgba(26, 22, 31, 0.13);
  background: #f1ede6;
}

html[data-theme="light"] .bank-result:hover,
html[data-theme="light"] .bank-result:focus-visible {
  border-color: rgba(125, 69, 237, 0.45);
  background: #eae4dc;
}

html[data-theme="light"] .bank-result > span:nth-child(2) strong,
html[data-theme="light"] .selected-bank-summary strong,
html[data-theme="light"] .account-number-field > span strong,
html[data-theme="light"] .bank-no-results strong {
  color: #302a35;
}

html[data-theme="light"] .bank-result > span:nth-child(2) small,
html[data-theme="light"] .bank-result > span:nth-child(3) small,
html[data-theme="light"] .bank-result > span:nth-child(3) strong,
html[data-theme="light"] .selected-bank-summary small,
html[data-theme="light"] .account-number-field > span small,
html[data-theme="light"] .bank-confirmation,
html[data-theme="light"] .bank-no-results {
  color: #625c67;
}

html[data-theme="light"] .bank-primary {
  background: #211d24;
  color: #fff;
}

html[data-theme="light"] .bank-success-step .bank-intro strong,
html[data-theme="light"] .bank-success-card strong {
  color: #332d38;
}

@media (max-width: 1100px) {
  .payment-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payments-grid {
    grid-template-columns: 1fr;
  }

  .payment-side-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .payments-content {
    padding-top: 40px;
  }

  .payments-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .payments-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .payments-hero .button {
    align-self: flex-start;
  }

  .payment-stats article {
    min-height: 150px;
    padding: 16px;
    flex-direction: column;
  }

  .payment-side-column {
    grid-template-columns: 1fr;
  }

  .bank-method-panel,
  .payout-history-panel,
  .payout-schedule-panel {
    padding: 18px;
  }

  .connected-bank-card {
    grid-template-columns: 44px 1fr;
  }

  .verified-pill {
    grid-column: 2;
    width: max-content;
  }

  .bank-detail-grid {
    grid-template-columns: 1fr;
  }

  .bank-gate {
    padding: 8px;
  }

  .bank-dialog {
    max-height: calc(100vh - 16px);
    padding: 21px 17px;
    border-radius: 20px;
  }

  .bank-result {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
  }

  .bank-result > span:nth-child(3) {
    grid-column: 2;
    text-align: left;
  }

  .bank-result > i {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 430px) {
  .payment-stats {
    grid-template-columns: 1fr 1fr;
  }

  .payment-stats strong {
    font-size: 1.05rem;
  }

  .bank-empty {
    min-height: 350px;
  }

  .history-empty {
    align-items: flex-start;
  }

  .bank-search-field kbd {
    display: none;
  }

  .selected-bank-summary {
    grid-template-columns: 40px 1fr auto;
  }
}

/* Dedicated regional access marketplace */

.proxy-marketplace-content {
  display: grid;
  gap: 18px;
}

.proxy-marketplace-hero {
  position: relative;
  min-height: 330px;
  padding: clamp(30px, 4vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 18%, rgba(140, 82, 255, 0.23), transparent 35%),
    radial-gradient(circle at 12% 90%, rgba(167, 211, 111, 0.07), transparent 28%),
    linear-gradient(145deg, #101012, #09090a 70%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), 0 28px 80px rgba(0, 0, 0, 0.2);
  animation: proxy-panel-in 650ms cubic-bezier(.2,.8,.2,1) both;
}

.proxy-marketplace-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000 52%, #000);
}

.proxy-marketplace-hero > div {
  position: relative;
  z-index: 1;
}

.proxy-marketplace-hero h1 {
  max-width: 690px;
  margin: 13px 0 16px;
  color: #f6f3f8;
  font-size: clamp(2.45rem, 5.4vw, 5.4rem);
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.proxy-marketplace-hero h1 span {
  color: #a97cff;
}

.proxy-marketplace-hero > div:first-child > p:last-of-type {
  max-width: 650px;
  margin: 0;
  color: #87828c;
  font-size: 0.76rem;
  line-height: 1.72;
}

.proxy-hero-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.proxy-hero-actions > a {
  color: #817b86;
  font-size: 0.62rem;
  font-weight: 650;
  text-decoration: none;
}

.proxy-hero-actions > a:hover {
  color: #b692ff;
}

.proxy-hero-visual {
  min-height: 245px;
  position: relative;
}

.proxy-hero-visual::before,
.proxy-hero-visual::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(177, 140, 255, 0.11);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.proxy-hero-visual::before {
  width: 220px;
  height: 220px;
}

.proxy-hero-visual::after {
  width: 142px;
  height: 142px;
  border-style: dashed;
  animation: proxy-orbit-spin 22s linear infinite;
}

.network-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(177, 140, 255, 0.23);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: radial-gradient(circle at 35% 28%, #a879ff, #7036d9 65%, #4b238f);
  color: #fff;
  box-shadow: 0 0 65px rgba(140, 82, 255, 0.34), inset 0 1px rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%);
}

.network-core span {
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.network-core small {
  font-size: 0.38rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.network-orbit {
  position: absolute;
  z-index: 3;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 19, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
  animation: proxy-flag-float 4.4s ease-in-out infinite;
}

.network-orbit span {
  font-size: 2rem;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.25));
}

.network-orbit i {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #111113;
  border-radius: 50%;
  background: #a7d36f;
  box-shadow: 0 0 12px rgba(167, 211, 111, 0.7);
}

.orbit-us { top: 3%; left: 16%; }
.orbit-uk { right: 3%; top: 20%; animation-delay: -1.1s; }
.orbit-es { left: 19%; bottom: -2%; animation-delay: -2.2s; }
.orbit-pl { right: 15%; bottom: 1%; animation-delay: -3.1s; }

.proxy-market-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.proxy-market-stats article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: linear-gradient(145deg, rgba(18, 18, 20, 0.96), rgba(11, 11, 13, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  animation: proxy-card-in 560ms cubic-bezier(.2,.8,.2,1) both;
}

.proxy-market-stats article:nth-child(2) { animation-delay: 60ms; }
.proxy-market-stats article:nth-child(3) { animation-delay: 120ms; }
.proxy-market-stats article:nth-child(4) { animation-delay: 180ms; }

.proxy-market-stats small,
.proxy-market-stats strong,
.proxy-market-stats p {
  display: block;
}

.proxy-market-stats small {
  color: #6f6975;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proxy-market-stats strong {
  margin-top: 6px;
  color: #ece8ef;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.proxy-market-stats p {
  margin: 4px 0 0;
  color: #66616b;
  font-size: 0.48rem;
}

.active-proxy-banner {
  padding: 15px 18px;
  border: 1px solid rgba(167, 211, 111, 0.14);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  background: linear-gradient(90deg, rgba(167, 211, 111, 0.065), rgba(140, 82, 255, 0.055));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.active-proxy-identity,
.active-proxy-health {
  display: flex;
  align-items: center;
  gap: 11px;
}

.active-proxy-identity > span {
  width: 46px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.45rem;
}

.active-proxy-identity small,
.active-proxy-identity strong,
.active-proxy-health small,
.active-proxy-health strong {
  display: block;
}

.active-proxy-identity small,
.active-proxy-health small {
  color: #6e6872;
  font-size: 0.48rem;
}

.active-proxy-identity strong,
.active-proxy-health strong {
  margin-top: 4px;
  color: #d9d4dd;
  font-size: 0.62rem;
}

.active-proxy-health > i,
.network-live > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7d36f;
  box-shadow: 0 0 14px rgba(167, 211, 111, 0.7);
  animation: proxy-live-pulse 1.8s ease-in-out infinite;
}

.active-proxy-banner > a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(167, 211, 111, 0.1);
  color: #bde47f;
  font-size: 0.55rem;
  font-weight: 700;
  text-decoration: none;
}

.proxy-market-section,
.proxy-access-info {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(17, 17, 19, 0.96), rgba(10, 10, 12, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045), 0 24px 70px rgba(0, 0, 0, 0.15);
}

.proxy-section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.proxy-section-heading h2,
.proxy-access-info h2 {
  margin: 7px 0 6px;
  color: #f0edf2;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  letter-spacing: -0.05em;
}

.proxy-section-heading > div > span,
.proxy-access-info > div > span {
  color: #79737e;
  font-size: 0.62rem;
}

.network-live {
  padding: 8px 11px;
  border: 1px solid rgba(167, 211, 111, 0.13);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a7d36f;
  font-size: 0.5rem;
  font-weight: 700;
}

.proxy-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.proxy-profile-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(140, 82, 255, 0.11), transparent 31%),
    linear-gradient(155deg, rgba(23, 23, 26, 0.98), rgba(12, 12, 14, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  animation: proxy-card-in 620ms cubic-bezier(.2,.8,.2,1) both;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.proxy-profile-card:nth-child(2) { animation-delay: 70ms; }
.proxy-profile-card:nth-child(3) { animation-delay: 140ms; }

.proxy-profile-card:hover {
  border-color: rgba(177, 140, 255, 0.22);
  transform: translateY(-5px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.065), 0 26px 58px rgba(0, 0, 0, 0.26), 0 0 46px rgba(140, 82, 255, 0.07);
}

.proxy-profile-card.active {
  border-color: rgba(167, 211, 111, 0.24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.065), 0 0 52px rgba(167, 211, 111, 0.07);
}

.proxy-profile-card.owned:not(.active) {
  border-color: rgba(177, 140, 255, 0.19);
}

.proxy-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.official-flag {
  width: 58px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.045);
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.2));
}

.proxy-live-status {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(167, 211, 111, 0.085);
  color: #b5dc7f;
  font-size: 0.47rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proxy-live-status::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.proxy-profile-card > p {
  margin: 20px 0 5px;
  color: #8b64dc;
  font-size: 0.5rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.proxy-profile-card > h3 {
  margin: 0;
  color: #ebe7ed;
  font-size: 1rem;
  letter-spacing: -0.035em;
}

.proxy-capacity {
  margin: 19px 0 17px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  background: rgba(255, 255, 255, 0.025);
}

.proxy-capacity > div {
  display: flex;
  align-items: end;
  gap: 8px;
}

.proxy-capacity small {
  color: #6e6873;
  font-size: 0.48rem;
}

.proxy-capacity strong {
  color: #e8e4eb;
  font-size: 1.05rem;
  line-height: 0.8;
}

.proxy-capacity > span {
  grid-column: 1 / 3;
  height: 5px;
  border-radius: 999px;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.proxy-capacity > span i {
  height: 100%;
  border-radius: inherit;
  display: block;
  background: linear-gradient(90deg, #6932d4, #ad84ff);
  transform-origin: left;
  animation: proxy-bar-grow 850ms cubic-bezier(.2,.8,.2,1) both;
}

.proxy-profile-card:nth-child(2) .proxy-capacity > span i { background: linear-gradient(90deg, #5e8d33, #a7d36f); }
.proxy-profile-card:nth-child(3) .proxy-capacity > span i { background: linear-gradient(90deg, #cc5734, #ff9873); }

.proxy-capacity em {
  color: #756e7a;
  font-size: 0.45rem;
  font-style: normal;
  text-align: right;
}

.proxy-profile-card > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.proxy-profile-card > ul li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8b858f;
  font-size: 0.52rem;
}

.proxy-profile-card > ul li::before {
  content: "◇";
  margin-right: 6px;
  color: #8c52ff;
}

.proxy-profile-card > ul li span {
  flex: 1;
}

.proxy-profile-card > ul li b {
  color: #c5bfc9;
  font-size: 0.5rem;
}

.proxy-profile-meta {
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6c6670;
  font-size: 0.48rem;
}

.proxy-profile-meta > span:first-child {
  color: #a7d36f;
}

.proxy-profile-meta > span:first-child i {
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

.proxy-profile-action,
.professional-pay-button {
  width: 100%;
  min-height: 47px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #9f6dff, #7032de);
  color: #fff;
  box-shadow: 0 15px 32px rgba(140, 82, 255, 0.22), inset 0 1px rgba(255, 255, 255, 0.23);
  font-size: 0.57rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.proxy-profile-card.active .proxy-profile-action {
  background: linear-gradient(135deg, #86b74e, #658f35);
  box-shadow: 0 15px 32px rgba(167, 211, 111, 0.13), inset 0 1px rgba(255, 255, 255, 0.2);
}

.proxy-profile-card.owned:not(.active) .proxy-profile-action {
  background: linear-gradient(135deg, #2b2633, #1d1a23);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.proxy-profile-action:hover,
.professional-pay-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 38px rgba(140, 82, 255, 0.29), inset 0 1px rgba(255, 255, 255, 0.25);
}

.proxy-profile-action strong,
.professional-pay-button strong {
  font-size: 0.56rem;
}

.proxy-profile-action i,
.professional-pay-button i {
  margin-left: 5px;
  font-style: normal;
}

.proxy-access-info {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 36px;
}

.proxy-access-info ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.proxy-access-info li {
  min-height: 144px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.proxy-access-info li > i {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(177, 140, 255, 0.17);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(140, 82, 255, 0.07);
  color: #b18cff;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 750;
}

.proxy-access-info li strong,
.proxy-access-info li small {
  display: block;
}

.proxy-access-info li strong {
  color: #cfc9d3;
  font-size: 0.57rem;
}

.proxy-access-info li small {
  margin-top: 6px;
  color: #6e6872;
  font-size: 0.48rem;
  line-height: 1.5;
}

.proxy-checkout {
  position: fixed;
  z-index: 120;
  inset: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(2, 2, 3, 0.78);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.proxy-checkout.open {
  opacity: 1;
  visibility: visible;
}

.proxy-checkout-dialog {
  width: min(100%, 610px);
  max-height: calc(100vh - 44px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 25px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 87% 5%, rgba(140, 82, 255, 0.17), transparent 28%),
    linear-gradient(150deg, #151418, #0b0b0d 66%);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.56), inset 0 1px rgba(255, 255, 255, 0.07);
  transform: translateY(18px) scale(0.975);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

.proxy-checkout.open .proxy-checkout-dialog {
  transform: translateY(0) scale(1);
}

.proxy-checkout-header {
  min-height: 72px;
  padding: 0 21px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.proxy-checkout-header > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.secure-lock {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(167, 211, 111, 0.17);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(167, 211, 111, 0.055);
  color: #a7d36f;
  font-size: 0.75rem;
}

.proxy-checkout-header strong,
.proxy-checkout-header small {
  display: block;
}

.proxy-checkout-header strong {
  color: #ddd8e1;
  font-size: 0.62rem;
}

.proxy-checkout-header small {
  margin-top: 4px;
  color: #68636d;
  font-size: 0.47rem;
}

.proxy-checkout-header > button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #8a838e;
  font-size: 1rem;
}

.proxy-checkout-step {
  padding: 28px;
  animation: proxy-step-in 350ms cubic-bezier(.2,.8,.2,1) both;
}

.proxy-checkout-step.centre {
  min-height: 470px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.checkout-title h2,
.proxy-checkout-step.centre > h2 {
  margin: 7px 0 8px;
  color: #f0ecf3;
  font-size: 1.45rem;
  letter-spacing: -0.045em;
}

.checkout-title > span,
.proxy-checkout-step.centre > p:not(.eyebrow) {
  color: #7a747f;
  font-size: 0.59rem;
  line-height: 1.6;
}

.checkout-location-summary {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid rgba(177, 140, 255, 0.11);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  background: rgba(140, 82, 255, 0.045);
}

.checkout-location-summary .official-flag {
  width: 52px;
  height: 43px;
  font-size: 1.7rem;
}

.checkout-location-summary small,
.checkout-location-summary strong,
.checkout-location-summary em {
  display: block;
}

.checkout-location-summary small {
  color: #6b6570;
  font-size: 0.47rem;
}

.checkout-location-summary strong {
  margin-top: 5px;
  color: #ddd7e2;
  font-size: 0.64rem;
}

.checkout-location-summary em {
  margin-top: 4px;
  color: #77717c;
  font-size: 0.48rem;
  font-style: normal;
}

.checkout-location-summary > div:last-child {
  text-align: right;
}

.checkout-location-summary > div:last-child strong {
  color: #b995ff;
  font-size: 0.85rem;
}

.professional-mpesa-field {
  display: grid;
  gap: 7px;
}

.professional-mpesa-field > span {
  color: #a59fa9;
  font-size: 0.53rem;
  font-weight: 700;
}

.professional-mpesa-field > div {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.professional-mpesa-field:focus-within > div {
  border-color: rgba(167, 211, 111, 0.4);
  box-shadow: 0 0 0 3px rgba(167, 211, 111, 0.065);
}

.professional-mpesa-field.has-error > div {
  border-color: rgba(238, 91, 117, 0.5);
}

.professional-mpesa-field > div i {
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #a7d36f;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 750;
}

.professional-mpesa-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ece7ef;
  font-size: 0.72rem;
}

.professional-mpesa-field > small {
  color: #69636e;
  font-size: 0.47rem;
}

.professional-mpesa-field.has-error > small {
  color: #ff8399;
}

.professional-payment-method {
  margin: 14px 0;
  padding: 13px 14px;
  border: 1px solid rgba(167, 211, 111, 0.12);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 11px;
  background: rgba(167, 211, 111, 0.035);
}

.professional-payment-method strong,
.professional-payment-method small {
  display: block;
}

.professional-payment-method strong {
  color: #d7d2db;
  font-size: 0.58rem;
}

.professional-payment-method small {
  margin-top: 4px;
  color: #69646d;
  font-size: 0.46rem;
}

.professional-payment-method > i {
  color: #a7d36f;
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 750;
}

.checkout-trust {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: #69636e;
  font-size: 0.47rem;
  line-height: 1.55;
}

.checkout-trust span {
  margin-right: 6px;
  color: #a7d36f;
}

.stk-phone-animation {
  width: 150px;
  height: 150px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  position: relative;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 104px;
  border: 3px solid #39343e;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: #121214;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: #39343e;
}

.phone-shell > i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #9ecb60, #679139);
  color: #10150a;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
  animation: proxy-phone-breathe 1.7s ease-in-out infinite;
}

.phone-shell > em {
  position: absolute;
  bottom: 7px;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: #39343e;
}

.phone-wave {
  position: absolute;
  inset: 25px;
  border: 1px solid rgba(167, 211, 111, 0.25);
  border-radius: 50%;
  animation: proxy-phone-wave 1.8s ease-out infinite;
}

.phone-wave.wave-two {
  animation-delay: 0.8s;
}

.pending-dots {
  margin: 18px 0;
  display: flex;
  gap: 6px;
}

.pending-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a7d36f;
  animation: proxy-dot-wave 1.1s ease-in-out infinite;
}

.pending-dots i:nth-child(2) { animation-delay: 0.15s; }
.pending-dots i:nth-child(3) { animation-delay: 0.3s; }

.checkout-text-button {
  padding: 8px;
  border: 0;
  background: transparent;
  color: #77717d;
  font-size: 0.52rem;
  font-weight: 650;
}

.checkout-text-button:hover {
  color: #b897ff;
}

.config-location-flag {
  width: 74px;
  height: 62px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 2.7rem;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  animation: proxy-flag-float 3s ease-in-out infinite;
}

.professional-config-progress {
  width: min(100%, 440px);
  margin: 21px 0;
}

.professional-config-progress > div {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  color: #78727d;
  font-size: 0.5rem;
}

.professional-config-progress > div strong {
  color: #b593ff;
}

.professional-config-progress > em {
  height: 7px;
  border-radius: 999px;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.professional-config-progress > em i {
  width: 0;
  height: 100%;
  border-radius: inherit;
  display: block;
  background: linear-gradient(90deg, #6b31d5, #a97bff, #a7d36f);
  box-shadow: 0 0 18px rgba(140, 82, 255, 0.28);
  transition: width 120ms linear;
}

.professional-config-steps {
  width: min(100%, 440px);
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  text-align: left;
}

.professional-config-steps li {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #66616b;
  font-size: 0.52rem;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.professional-config-steps li i {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.46rem;
  font-style: normal;
  font-weight: 750;
}

.professional-config-steps li.active {
  border-color: rgba(140, 82, 255, 0.18);
  background: rgba(140, 82, 255, 0.05);
  color: #b99aff;
}

.professional-config-steps li.complete {
  border-color: rgba(167, 211, 111, 0.13);
  background: rgba(167, 211, 111, 0.035);
  color: #a7d36f;
}

.professional-config-steps li.complete i {
  background: rgba(167, 211, 111, 0.1);
}

.proxy-success-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 23px;
  border: 1px solid rgba(167, 211, 111, 0.24);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(167, 211, 111, 0.13), rgba(167, 211, 111, 0.025));
  box-shadow: 0 0 60px rgba(167, 211, 111, 0.12);
}

.proxy-success-mark i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #b8df82, #709d40);
  color: #11170b;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 850;
  animation: proxy-success-pop 580ms cubic-bezier(.2,1.4,.4,1) both;
}

.success-location-profile {
  width: min(100%, 440px);
  margin: 20px 0 16px;
  padding: 14px;
  border: 1px solid rgba(167, 211, 111, 0.13);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(167, 211, 111, 0.035);
  text-align: left;
}

.success-location-profile .official-flag {
  width: 50px;
  height: 42px;
  font-size: 1.65rem;
}

.success-location-profile small,
.success-location-profile strong,
.success-location-profile em {
  display: block;
}

.success-location-profile small { color: #69646d; font-size: 0.46rem; }
.success-location-profile strong { margin-top: 4px; color: #dcd7e0; font-size: 0.59rem; }
.success-location-profile em { margin-top: 4px; color: #77717b; font-size: 0.47rem; font-style: normal; }
.success-location-profile > i { color: #a7d36f; font-size: 0.47rem; font-style: normal; font-weight: 750; }

.proxy-checkout-step.success .professional-pay-button {
  width: min(100%, 440px);
}

html[data-theme="light"] .proxy-marketplace-hero,
html[data-theme="light"] .proxy-market-section,
html[data-theme="light"] .proxy-access-info,
html[data-theme="light"] .proxy-market-stats article,
html[data-theme="light"] .proxy-profile-card {
  border-color: rgba(51, 38, 59, 0.11);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: inset 0 1px #fff, 0 22px 58px rgba(59, 40, 70, 0.07);
}

html[data-theme="light"] .proxy-marketplace-hero {
  background:
    radial-gradient(circle at 77% 18%, rgba(140, 82, 255, 0.16), transparent 35%),
    radial-gradient(circle at 12% 90%, rgba(167, 211, 111, 0.1), transparent 28%),
    #fff;
}

html[data-theme="light"] .proxy-marketplace-hero h1,
html[data-theme="light"] .proxy-section-heading h2,
html[data-theme="light"] .proxy-access-info h2,
html[data-theme="light"] .proxy-market-stats strong,
html[data-theme="light"] .proxy-profile-card > h3,
html[data-theme="light"] .proxy-capacity strong {
  color: #28212d;
}

html[data-theme="light"] .proxy-marketplace-hero > div:first-child > p:last-of-type,
html[data-theme="light"] .proxy-section-heading > div > span,
html[data-theme="light"] .proxy-access-info > div > span,
html[data-theme="light"] .proxy-market-stats p,
html[data-theme="light"] .proxy-profile-card > ul li,
html[data-theme="light"] .proxy-profile-meta,
html[data-theme="light"] .proxy-access-info li small {
  color: #716a76;
}

html[data-theme="light"] .proxy-market-stats small,
html[data-theme="light"] .proxy-capacity small,
html[data-theme="light"] .proxy-capacity em {
  color: #77707d;
}

html[data-theme="light"] .network-orbit,
html[data-theme="light"] .official-flag,
html[data-theme="light"] .proxy-capacity,
html[data-theme="light"] .proxy-access-info li {
  border-color: rgba(51, 38, 59, 0.1);
  background: rgba(73, 51, 85, 0.035);
}

html[data-theme="light"] .network-orbit i {
  border-color: #fff;
}

html[data-theme="light"] .proxy-profile-card > ul li,
html[data-theme="light"] .proxy-profile-meta,
html[data-theme="light"] .proxy-capacity,
html[data-theme="light"] .active-proxy-banner {
  border-color: rgba(51, 38, 59, 0.09);
}

html[data-theme="light"] .proxy-profile-card > ul li b,
html[data-theme="light"] .proxy-access-info li strong,
html[data-theme="light"] .active-proxy-identity strong,
html[data-theme="light"] .active-proxy-health strong {
  color: #554d5a;
}

html[data-theme="light"] .active-proxy-banner {
  background: linear-gradient(90deg, rgba(167, 211, 111, 0.09), rgba(140, 82, 255, 0.05));
}

html[data-theme="light"] .proxy-checkout {
  background: rgba(39, 31, 44, 0.5);
}

html[data-theme="light"] .proxy-checkout-dialog {
  border-color: rgba(51, 38, 59, 0.13);
  background:
    radial-gradient(circle at 87% 5%, rgba(140, 82, 255, 0.12), transparent 28%),
    #fff;
  box-shadow: 0 38px 100px rgba(45, 31, 52, 0.28), inset 0 1px #fff;
}

html[data-theme="light"] .proxy-checkout-header,
html[data-theme="light"] .professional-mpesa-field > div,
html[data-theme="light"] .professional-config-steps li {
  border-color: rgba(51, 38, 59, 0.1);
}

html[data-theme="light"] .proxy-checkout-header strong,
html[data-theme="light"] .checkout-title h2,
html[data-theme="light"] .proxy-checkout-step.centre > h2,
html[data-theme="light"] .checkout-location-summary strong,
html[data-theme="light"] .professional-payment-method strong,
html[data-theme="light"] .success-location-profile strong {
  color: #322a37;
}

html[data-theme="light"] .proxy-checkout-header small,
html[data-theme="light"] .checkout-title > span,
html[data-theme="light"] .proxy-checkout-step.centre > p:not(.eyebrow),
html[data-theme="light"] .checkout-location-summary em,
html[data-theme="light"] .professional-payment-method small,
html[data-theme="light"] .checkout-trust {
  color: #746d79;
}

html[data-theme="light"] .checkout-location-summary,
html[data-theme="light"] .professional-payment-method,
html[data-theme="light"] .professional-mpesa-field > div,
html[data-theme="light"] .checkout-trust,
html[data-theme="light"] .success-location-profile {
  background: rgba(82, 58, 96, 0.035);
}

html[data-theme="light"] .professional-mpesa-field input {
  color: #332b38;
}

html[data-theme="light"] .phone-shell {
  border-color: #d7d0dc;
  background: #f8f6f9;
}

html[data-theme="light"] .phone-shell::before,
html[data-theme="light"] .phone-shell > em {
  background: #d7d0dc;
}

@keyframes proxy-panel-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes proxy-card-in {
  from { opacity: 0; transform: translateY(17px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes proxy-orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes proxy-flag-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes proxy-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.74); }
}

@keyframes proxy-bar-grow {
  from { transform: scaleX(0.06); }
  to { transform: scaleX(1); }
}

@keyframes proxy-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes proxy-phone-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(167, 211, 111, 0); }
  50% { transform: scale(1.08); box-shadow: 0 0 24px rgba(167, 211, 111, 0.2); }
}

@keyframes proxy-phone-wave {
  from { opacity: 0.7; transform: scale(0.55); }
  to { opacity: 0; transform: scale(1.6); }
}

@keyframes proxy-dot-wave {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes proxy-success-pop {
  from { opacity: 0; transform: scale(0.55) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 1180px) {
  .proxy-marketplace-hero {
    grid-template-columns: minmax(0, 1.1fr) 310px;
  }

  .proxy-market-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .proxy-profile-card:last-child {
    grid-column: auto;
  }

  .proxy-access-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .proxy-marketplace-hero {
    grid-template-columns: 1fr;
  }

  .proxy-hero-visual {
    width: min(100%, 410px);
    margin: 0 auto;
  }

  .active-proxy-banner {
    grid-template-columns: 1fr auto;
  }

  .active-proxy-banner > a {
    grid-column: 1 / 3;
    justify-content: center;
  }

  .proxy-access-info ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .proxy-marketplace-content {
    gap: 12px;
  }

  .proxy-marketplace-hero,
  .proxy-market-section,
  .proxy-access-info {
    border-radius: 20px;
  }

  .proxy-market-stats,
  .proxy-profile-grid {
    grid-template-columns: 1fr;
  }

  .proxy-profile-card:last-child {
    grid-column: auto;
  }

  .proxy-section-heading {
    align-items: flex-start;
    display: grid;
  }

  .active-proxy-banner {
    grid-template-columns: 1fr;
  }

  .active-proxy-banner > a {
    grid-column: auto;
  }

  .proxy-access-info ol {
    grid-template-columns: 1fr;
  }

  .proxy-access-info li {
    min-height: auto;
    grid-template-columns: 32px 1fr;
  }

  .proxy-checkout {
    padding: 10px;
    place-items: end center;
  }

  .proxy-checkout-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 22px 22px 14px 14px;
  }

  .proxy-checkout-step {
    padding: 22px 18px;
  }
}

/* Consistent, image-backed national flags with an emoji fallback. */

[data-national-flag],
.country-flag,
.official-flag,
.network-orbit > span,
.node-country > i,
#locationFlag,
#activeProxyFlag,
#paymentFlag,
#configFlag,
#configLocationFlag,
#successFlag,
#proxySuccessFlag {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.national-flag-fallback {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.national-flag-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
  object-fit: cover;
}

.node-country > i {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  display: inline-grid;
  flex: 0 0 auto;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.location-stat-flags {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.location-stat-flags [data-national-flag] {
  width: 18px;
  height: 12px;
  margin-left: 4px;
  border-radius: 2px;
  display: inline-grid;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.location-stat-flags [data-national-flag]:first-child {
  margin-left: 0;
}

.inline-national-flag {
  width: 20px;
  height: 14px;
  margin-right: 7px;
  border-radius: 3px;
  display: inline-grid;
  flex: 0 0 auto;
  vertical-align: -2px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.project-market-client,
.project-card-location,
#projectRegionHeading {
  display: flex !important;
  align-items: center;
}

.location-chip #locationFlag {
  width: 30px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  flex: 0 0 auto;
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.2);
}

.proxy-option .country-flag {
  width: 43px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.2);
}

.active-location-card > #successFlag,
.payment-summary #paymentFlag {
  border-radius: 8px;
}

html[data-theme="light"] .national-flag-image {
  box-shadow: inset 0 0 0 1px rgba(34, 26, 39, 0.08);
}

@media (max-width: 480px) {
  .proxy-marketplace-hero {
    padding: 27px 20px;
  }

  .proxy-hero-actions {
    align-items: stretch;
    display: grid;
  }

  .proxy-hero-actions > a {
    text-align: center;
  }

  .proxy-hero-visual {
    transform: scale(0.86);
  }

  .checkout-location-summary {
    grid-template-columns: 52px 1fr;
  }

  .checkout-location-summary > div:last-child {
    grid-column: 2;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proxy-marketplace-hero,
  .proxy-market-stats article,
  .proxy-profile-card,
  .network-orbit,
  .proxy-hero-visual::after,
  .active-proxy-health > i,
  .network-live > i,
  .proxy-capacity > span i,
  .phone-shell > i,
  .phone-wave,
  .pending-dots i,
  .config-location-flag,
  .proxy-success-mark i {
    animation: none !important;
  }
}

/* Task abandonment controls */

.active-task-actions,
.studio-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.active-task-actions .banner-abandon {
  border: 1px solid rgba(255, 130, 89, 0.2);
  background: rgba(255, 130, 89, 0.05);
  color: var(--success-soft);
}

.studio-header-actions {
  justify-self: end;
}

.studio-exit {
  justify-self: auto;
}

.studio-abandon {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 130, 89, 0.23);
  border-radius: 10px;
  background: rgba(255, 130, 89, 0.055);
  color: var(--success-soft);
  font: inherit;
  font-size: 0.5rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.studio-abandon:hover,
.studio-abandon:focus-visible,
.active-task-actions .banner-abandon:hover,
.active-task-actions .banner-abandon:focus-visible {
  border-color: rgba(255, 130, 89, 0.48);
  background: rgba(255, 130, 89, 0.11);
  outline: 0;
}

.abandon-task-gate {
  position: fixed;
  inset: 0;
  z-index: 420;
  padding: 16px;
  display: grid;
  place-items: center;
  background: rgba(2, 2, 3, 0.84);
  backdrop-filter: blur(18px);
}

.abandon-task-gate[hidden] {
  display: none;
}

.abandon-task-dialog {
  width: min(100%, 470px);
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 130, 89, 0.1), transparent 35%),
    #111112;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.76);
  text-align: center;
}

.abandon-warning {
  width: 62px;
  height: 62px;
  margin: 0 auto 21px;
  border: 1px solid rgba(255, 130, 89, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--success-soft);
  background: rgba(255, 130, 89, 0.08);
  box-shadow: 0 0 48px rgba(255, 130, 89, 0.09);
  font-size: 1rem;
  font-weight: 800;
}

.abandon-task-dialog h2 {
  margin-bottom: 10px;
  color: #e7e3ea;
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.abandon-task-dialog > p:not(.panel-kicker) {
  max-width: 390px;
  margin: 0 auto 21px;
  color: #77747b;
  font-size: 0.59rem;
  line-height: 1.65;
}

.abandon-task-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.abandon-task-actions button {
  min-height: 47px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.56rem;
  font-weight: 720;
  cursor: pointer;
}

.abandon-task-actions button:first-child {
  border: 1px solid #2b292e;
  background: #171719;
  color: #c7c3ca;
}

.abandon-task-actions button:last-child {
  border: 1px solid rgba(255, 130, 89, 0.25);
  background: var(--success-soft);
  color: #1b0e09;
}

html[data-theme="light"] .studio-abandon,
html[data-theme="light"] .active-task-actions .banner-abandon {
  border-color: rgba(164, 70, 39, 0.28);
  background: rgba(255, 130, 89, 0.1);
  color: #8b3d25;
}

html[data-theme="light"] .abandon-task-gate {
  background: rgba(31, 27, 35, 0.58);
}

html[data-theme="light"] .abandon-task-dialog {
  border-color: rgba(26, 22, 31, 0.14);
  background:
    radial-gradient(circle at 50% 0, rgba(196, 83, 48, 0.1), transparent 35%),
    #fbfaf7;
  box-shadow: 0 52px 145px rgba(37, 29, 48, 0.3);
}

html[data-theme="light"] .abandon-task-dialog h2 {
  color: #302a35;
}

html[data-theme="light"] .abandon-task-dialog > p:not(.panel-kicker) {
  color: #625c67;
}

html[data-theme="light"] .abandon-task-actions button:first-child {
  border-color: rgba(26, 22, 31, 0.15);
  background: #ebe7df;
  color: #37313c;
}

@media (max-width: 1040px) {
  .studio-header-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 700px) {
  .active-task-actions {
    grid-column: 2 / -1;
    width: 100%;
  }

  .active-task-actions button {
    flex: 1;
  }

  .studio-header-actions {
    gap: 5px;
  }

  .studio-abandon,
  .studio-exit {
    padding: 0 8px;
    font-size: 0.44rem;
  }
}

@media (max-width: 430px) {
  .abandon-task-dialog {
    padding: 28px 18px 18px;
  }

  .abandon-task-actions {
    grid-template-columns: 1fr;
  }
}

/* Regional projects and SxS task studio */

.wallet-chip {
  min-height: 46px;
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #101011;
  color: inherit;
  text-decoration: none;
}

.wallet-chip > span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: rgba(167, 211, 111, 0.09);
  font-size: 0.62rem;
  font-weight: 800;
}

.wallet-chip small,
.wallet-chip strong {
  display: block;
  white-space: nowrap;
}

.wallet-chip small {
  margin-bottom: 2px;
  color: #5e5b62;
  font-size: 0.46rem;
}

.wallet-chip strong {
  color: #d1cdd4;
  font-size: 0.59rem;
}

.projects-content {
  padding-top: 54px;
}

.projects-hero {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}

.projects-hero .eyebrow {
  margin-bottom: 16px;
  font-size: 0.61rem;
}

.projects-hero h1 {
  max-width: 820px;
  margin-bottom: 13px;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.067em;
  font-weight: 620;
}

.projects-hero h1 span {
  color: #77747b;
}

.projects-hero > div > p:last-child {
  max-width: 670px;
  margin: 0;
  color: #77747b;
  font-size: 0.76rem;
  line-height: 1.65;
}

.projects-hero .button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.active-task-banner {
  min-height: 72px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(167, 211, 111, 0.18);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  align-items: center;
  gap: 14px;
  background:
    linear-gradient(90deg, rgba(167, 211, 111, 0.055), transparent 50%),
    #0d0d0e;
}

.active-task-banner[hidden] {
  display: none;
}

.active-task-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(167, 211, 111, 0.08), 0 0 15px rgba(167, 211, 111, 0.42);
  animation: active-task-pulse 1.8s ease-in-out infinite;
}

@keyframes active-task-pulse {
  50% { opacity: 0.45; transform: scale(0.82); }
}

.active-task-banner strong,
.active-task-banner p,
.active-task-banner small {
  display: block;
}

.active-task-banner > div:nth-child(2) strong {
  margin-bottom: 5px;
  color: #cac6cd;
  font-size: 0.63rem;
}

.active-task-banner p {
  margin: 0;
  color: #656269;
  font-size: 0.49rem;
}

.active-task-banner > div:nth-child(3) {
  min-width: 65px;
  text-align: right;
}

.active-task-banner > div:nth-child(3) small {
  margin-bottom: 4px;
  color: #5e5b62;
  font-size: 0.44rem;
}

.active-task-banner > div:nth-child(3) strong {
  color: var(--green);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.active-task-banner button {
  min-height: 39px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #ece9ee;
  color: #121113;
  font: inherit;
  font-size: 0.54rem;
  font-weight: 700;
  cursor: pointer;
}

.project-stats {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-stats article {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  display: flex;
  gap: 14px;
  background: #0d0d0e;
}

.project-stats small,
.project-stats strong,
.project-stats p {
  display: block;
}

.project-stats small {
  margin-bottom: 10px;
  color: #77747b;
  font-size: 0.52rem;
}

.project-stats strong {
  color: #e5e1e8;
  font-size: 1.36rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.project-stats p {
  margin: 8px 0 0;
  color: #57545b;
  font-size: 0.48rem;
  line-height: 1.45;
}

.project-marketplace {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 16px;
}

.project-catalogue-panel,
.project-detail-panel,
.evaluation-guide,
.project-activity-panel {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #0d0d0e;
}

.project-catalogue-panel {
  min-height: 570px;
  padding: 25px;
}

.project-catalogue-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.project-catalogue-heading h2 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.04em;
  font-weight: 620;
}

.project-search {
  width: 190px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #29282c;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141416;
  color: #706d74;
}

.project-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dedae1;
  font: inherit;
  font-size: 0.54rem;
}

.project-search input::placeholder {
  color: #5e5b62;
}

.project-catalogue {
  display: grid;
  gap: 9px;
}

.project-market-card {
  width: 100%;
  min-height: 139px;
  padding: 16px;
  border: 1px solid #232226;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 90px 18px;
  align-items: center;
  gap: 14px;
  background: #111112;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.project-market-card:hover,
.project-market-card.selected {
  border-color: rgba(140, 82, 255, 0.38);
  background: #151416;
  transform: translateY(-1px);
}

.project-market-card.selected {
  box-shadow: inset 2px 0 var(--purple);
}

.project-market-icon,
.project-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
}

.project-market-icon.purple,
.project-detail-icon.purple { color: #b18cff; background: rgba(140, 82, 255, 0.11); }
.project-market-icon.green,
.project-detail-icon.green { color: var(--green); background: rgba(167, 211, 111, 0.09); }
.project-market-icon.orange,
.project-detail-icon.orange { color: var(--success-soft); background: rgba(255, 130, 89, 0.09); }
.project-market-icon.blue,
.project-detail-icon.blue { color: #75b8ff; background: rgba(117, 184, 255, 0.09); }

.project-market-main > span:first-child {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.project-market-main > span:first-child i {
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--green);
  background: rgba(167, 211, 111, 0.08);
  font-size: 0.42rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.project-market-main > span:first-child small,
.project-market-main > small {
  color: #5d5a61;
  font-size: 0.48rem;
}

.project-market-main > strong {
  display: block;
  margin-bottom: 5px;
  color: #d0ccd3;
  font-size: 0.72rem;
  line-height: 1.25;
}

.project-market-tags {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-market-tags i {
  padding: 4px 7px;
  border: 1px solid #29282b;
  border-radius: 999px;
  color: #77747b;
  font-size: 0.42rem;
  font-style: normal;
}

.project-market-rate {
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
  text-align: right;
}

.project-market-rate small,
.project-market-rate strong,
.project-market-rate i {
  display: block;
}

.project-market-rate small,
.project-market-rate i {
  color: #5d5a61;
  font-size: 0.44rem;
  font-style: normal;
}

.project-market-rate strong {
  margin: 7px 0 4px;
  color: #ddd9e0;
  font-size: 0.77rem;
}

.project-market-card > em {
  color: var(--purple-soft);
  font-size: 0.57rem;
  font-style: normal;
}

.project-detail-panel {
  align-self: start;
  min-height: 570px;
  padding: 25px;
  position: sticky;
  top: 96px;
}

.project-detail-empty,
.projects-locked-state {
  min-height: 500px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.project-detail-empty > span,
.projects-locked-state > span {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(140, 82, 255, 0.22);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--purple-soft);
  background: rgba(140, 82, 255, 0.07);
  font-size: 0.86rem;
}

.project-detail-empty h3,
.projects-locked-state h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  letter-spacing: -0.035em;
}

.project-detail-empty p,
.projects-locked-state p {
  max-width: 300px;
  margin: 0;
  color: #68656c;
  font-size: 0.59rem;
  line-height: 1.6;
}

.projects-locked-state {
  min-height: 470px;
}

.projects-locked-state button {
  min-height: 40px;
  margin-top: 18px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #ece9ee;
  color: #121113;
  font: inherit;
  font-size: 0.55rem;
  font-weight: 700;
  cursor: pointer;
}

.project-detail-content[hidden],
#projectDetailContent[hidden] {
  display: none;
}

.project-detail-top {
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-status-pill {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(167, 211, 111, 0.08);
  font-size: 0.45rem;
  font-weight: 700;
}

.project-detail-panel h2 {
  margin-bottom: 11px;
  font-size: 1.65rem;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.project-detail-copy {
  margin: 0 0 20px;
  color: #747178;
  font-size: 0.59rem;
  line-height: 1.65;
}

.project-detail-rate {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #262529;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #111113;
}

.project-detail-rate > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
}

.project-detail-rate small,
.project-detail-rate strong {
  display: block;
}

.project-detail-rate small {
  margin-bottom: 7px;
  color: #5f5c63;
  font-size: 0.45rem;
}

.project-detail-rate strong {
  color: #d1cdd4;
  font-size: 0.67rem;
}

.project-skill-list {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-skill-list span {
  padding: 6px 8px;
  border: 1px solid #29282b;
  border-radius: 999px;
  color: #77747b;
  font-size: 0.45rem;
}

.project-detail-expectation {
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid rgba(140, 82, 255, 0.15);
  border-radius: 11px;
  display: flex;
  gap: 9px;
  color: var(--purple-soft);
  background: rgba(140, 82, 255, 0.045);
}

.project-detail-expectation p {
  margin: 0;
  color: #6c6870;
  font-size: 0.49rem;
  line-height: 1.55;
}

.project-detail-expectation strong {
  color: #aaa6ae;
}

.project-start-button {
  width: 100%;
  min-height: 47px;
  border: 0;
  border-radius: 11px;
  background: #ece9ee;
  color: #121113;
  font: inherit;
  font-size: 0.59rem;
  font-weight: 750;
  cursor: pointer;
}

.evaluation-guide {
  margin-bottom: 16px;
  padding: 28px;
}

.evaluation-guide-heading {
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: 0.45fr 1fr 0.85fr;
  align-items: end;
  gap: 28px;
}

.evaluation-guide-heading h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.evaluation-guide-heading > p:last-child {
  margin: 0;
  color: #6d6a71;
  font-size: 0.56rem;
  line-height: 1.6;
}

.metric-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.metric-guide-grid article {
  min-height: 165px;
  padding: 17px;
  border: 1px solid #242327;
  border-radius: 13px;
  background: #111112;
}

.metric-guide-grid article > span {
  margin-bottom: 25px;
  display: block;
  color: var(--purple-soft);
  font-size: 0.48rem;
  font-weight: 700;
}

.metric-guide-grid h3 {
  margin-bottom: 8px;
  font-size: 0.69rem;
  letter-spacing: -0.02em;
}

.metric-guide-grid p {
  margin: 0;
  color: #66636a;
  font-size: 0.5rem;
  line-height: 1.58;
}

.project-activity-panel {
  padding: 25px;
}

.project-activity-panel .panel-heading-row a {
  color: #78757c;
  font-size: 0.56rem;
  text-decoration: none;
}

.project-activity-list {
  display: grid;
  gap: 7px;
}

.project-activity-empty {
  min-height: 100px;
  padding: 17px;
  border: 1px dashed #29282b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #101011;
}

.project-activity-empty > span,
.project-credit-row > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: rgba(167, 211, 111, 0.08);
}

.project-activity-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #bbb7bf;
  font-size: 0.64rem;
}

.project-activity-empty p {
  margin: 0;
  color: #646168;
  font-size: 0.51rem;
}

.project-credit-row {
  min-height: 73px;
  padding: 12px;
  border: 1px solid #242327;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #111112;
}

.project-credit-row > div strong,
.project-credit-row > div small {
  display: block;
}

.project-credit-row > div strong {
  margin-bottom: 5px;
  color: #bbb7bf;
  font-size: 0.59rem;
}

.project-credit-row > div small {
  color: #5d5a61;
  font-size: 0.46rem;
}

.project-credit-row > div:last-child {
  text-align: right;
}

.project-credit-row > div:last-child strong {
  color: var(--green);
}

/* Focused task studio */

.sxs-studio {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow-y: auto;
  background:
    radial-gradient(circle at 72% 6%, rgba(140, 82, 255, 0.08), transparent 24%),
    #080809;
  color: #f3f1f5;
}

.sxs-studio[hidden] {
  display: none;
}

.sxs-studio-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 80px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 18px;
  background: rgba(8, 8, 9, 0.92);
  backdrop-filter: blur(24px);
}

.sxs-studio-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.sxs-studio-brand .wordmark-name {
  color: #f5f2f7;
  font-size: 1.08rem;
}

.sxs-studio-brand > i {
  width: 1px;
  height: 27px;
  background: var(--line);
}

.sxs-studio-brand small,
.sxs-studio-brand strong {
  display: block;
}

.sxs-studio-brand small {
  margin-bottom: 3px;
  color: #5e5b62;
  font-size: 0.43rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.sxs-studio-brand strong {
  color: #aaa7ae;
  font-size: 0.55rem;
  font-weight: 600;
}

.sxs-timer-cluster {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sxs-time-card,
.sxs-earned-card {
  min-width: 94px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid #242327;
  border-radius: 11px;
  background: #101011;
  text-align: center;
}

.sxs-time-card small,
.sxs-time-card strong,
.sxs-earned-card small,
.sxs-earned-card strong,
.sxs-earned-card span {
  display: block;
}

.sxs-time-card small,
.sxs-earned-card small {
  margin-bottom: 5px;
  color: #5e5b62;
  font-size: 0.41rem;
}

.sxs-time-card strong {
  color: #d8d4db;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.sxs-time-card strong.time-low {
  color: var(--success-soft);
}

.sxs-earned-card {
  min-width: 115px;
  border-color: rgba(167, 211, 111, 0.14);
  background: rgba(167, 211, 111, 0.045);
}

.sxs-earned-card strong {
  color: var(--green);
  font-size: 0.72rem;
}

.sxs-earned-card span {
  margin-top: 3px;
  color: #5e5b62;
  font-size: 0.39rem;
}

.studio-exit {
  justify-self: end;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #29282c;
  border-radius: 10px;
  background: #121214;
  color: #8f8b93;
  font: inherit;
  font-size: 0.5rem;
  cursor: pointer;
}

.studio-exit span {
  margin-left: 8px;
  color: #b9b5bd;
  font-size: 0.8rem;
}

.studio-time-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #151416;
}

.studio-time-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--green));
  transition: width 500ms linear;
}

.sxs-studio-main {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 16px;
}

.sxs-task-column {
  display: grid;
  gap: 14px;
}

.sxs-prompt-card,
.sxs-response-card,
.sxs-evaluation-panel {
  border: 1px solid #222125;
  border-radius: 17px;
  background: #0d0d0e;
}

.sxs-prompt-card {
  padding: 24px;
}

.sxs-section-label,
.response-card-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sxs-section-label > span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--purple-soft);
  background: rgba(140, 82, 255, 0.08);
  font-size: 0.44rem;
  font-weight: 700;
}

.sxs-section-label > div {
  margin-right: auto;
}

.sxs-section-label small,
.sxs-section-label strong {
  display: block;
}

.sxs-section-label small {
  margin-bottom: 4px;
  color: #5e5b62;
  font-size: 0.43rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sxs-section-label strong {
  color: #aaa7ae;
  font-size: 0.55rem;
}

.sxs-section-label > i {
  padding: 6px 8px;
  border-radius: 999px;
  color: #8e8b92;
  background: #171719;
  font-size: 0.43rem;
  font-style: normal;
}

.sxs-prompt-card h1 {
  max-width: 960px;
  margin-bottom: 20px;
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 580;
}

.task-requirements {
  padding: 14px;
  border: 1px solid rgba(140, 82, 255, 0.14);
  border-radius: 11px;
  background: rgba(140, 82, 255, 0.035);
}

.task-requirements strong {
  display: block;
  margin-bottom: 6px;
  color: var(--purple-soft);
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.task-requirements p {
  margin: 0;
  color: #716e75;
  font-size: 0.56rem;
  line-height: 1.6;
}

.sxs-responses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sxs-response-card {
  min-height: 510px;
  overflow: hidden;
}

.response-card-heading {
  min-height: 62px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #222125;
  background: #101011;
}

.response-card-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.response-card-heading > div > span {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 800;
}

.response-a .response-card-heading > div > span {
  color: #cbb8ff;
  background: rgba(140, 82, 255, 0.12);
}

.response-b .response-card-heading > div > span {
  color: #9bd0ff;
  background: rgba(117, 184, 255, 0.1);
}

.response-card-heading strong {
  color: #bdb9c1;
  font-size: 0.59rem;
}

.response-card-heading small {
  color: #5e5b62;
  font-size: 0.44rem;
}

.response-copy {
  padding: 24px;
  color: #aaa7ae;
  font-size: 0.72rem;
  line-height: 1.78;
}

.response-copy p {
  margin: 0 0 16px;
}

.response-copy p:last-child {
  margin-bottom: 0;
}

.response-copy strong {
  color: #e2dee5;
  font-weight: 650;
}

.sxs-evaluation-panel {
  position: sticky;
  top: 102px;
  padding: 22px;
}

.evaluation-panel-heading {
  margin-bottom: 20px;
}

.evaluation-panel-heading h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
  letter-spacing: -0.045em;
}

.evaluation-panel-heading > p:last-child {
  margin: 0;
  color: #656269;
  font-size: 0.51rem;
}

.sxs-metric {
  margin: 0 0 10px;
  padding: 13px;
  border: 1px solid #252428;
  border-radius: 12px;
  background: #111112;
}

.sxs-metric.has-error,
.sxs-justification.has-error {
  border-color: rgba(255, 130, 89, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 130, 89, 0.06);
}

.sxs-metric legend {
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sxs-metric legend > span,
.sxs-justification > span > i {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--purple-soft);
  background: rgba(140, 82, 255, 0.08);
  font-size: 0.41rem;
  font-style: normal;
  font-weight: 700;
}

.sxs-metric legend strong,
.sxs-metric legend small {
  display: block;
}

.sxs-metric legend strong {
  margin-bottom: 4px;
  color: #b9b5bd;
  font-size: 0.57rem;
}

.sxs-metric legend small {
  color: #5e5b62;
  font-size: 0.43rem;
}

.sxs-choice-row {
  display: grid;
  grid-template-columns: 1fr 0.65fr 1fr;
  gap: 5px;
}

.sxs-choice-row label {
  min-height: 35px;
  position: relative;
  cursor: pointer;
}

.sxs-choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sxs-choice-row span {
  height: 100%;
  border: 1px solid #2a292d;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #77747b;
  background: #171719;
  font-size: 0.46rem;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.sxs-choice-row input:checked + span {
  border-color: rgba(140, 82, 255, 0.52);
  color: #d3c5f5;
  background: rgba(140, 82, 255, 0.13);
}

.sxs-choice-row input:focus-visible + span {
  outline: 2px solid var(--purple-soft);
  outline-offset: 2px;
}

.sxs-justification {
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid #252428;
  border-radius: 12px;
  display: block;
  background: #111112;
}

.sxs-justification > span {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sxs-justification > span > span {
  margin-right: auto;
}

.sxs-justification strong,
.sxs-justification small {
  display: block;
}

.sxs-justification strong {
  margin-bottom: 4px;
  color: #b9b5bd;
  font-size: 0.57rem;
}

.sxs-justification small {
  color: #5e5b62;
  font-size: 0.43rem;
}

.sxs-justification em {
  color: #5e5b62;
  font-size: 0.42rem;
  font-style: normal;
}

.sxs-justification textarea {
  width: 100%;
  min-height: 126px;
  padding: 12px;
  border: 1px solid #2b2a2e;
  border-radius: 9px;
  outline: 0;
  resize: vertical;
  background: #171719;
  color: #d4d0d7;
  font: inherit;
  font-size: 0.56rem;
  line-height: 1.6;
}

.sxs-justification textarea:focus {
  border-color: rgba(140, 82, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.08);
}

.sxs-justification textarea::placeholder {
  color: #58555c;
}

.evaluation-error {
  min-height: 15px;
  margin: 0 0 7px;
  color: var(--success-soft);
  font-size: 0.46rem;
  line-height: 1.4;
}

.studio-submit-summary {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.studio-submit-summary > span {
  min-width: 72px;
}

.studio-submit-summary small,
.studio-submit-summary strong {
  display: block;
}

.studio-submit-summary small {
  margin-bottom: 4px;
  color: #5e5b62;
  font-size: 0.41rem;
}

.studio-submit-summary strong {
  color: var(--green);
  font-size: 0.67rem;
}

.studio-submit-summary button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #ece9ee;
  color: #121113;
  font: inherit;
  font-size: 0.56rem;
  font-weight: 750;
  cursor: pointer;
}

.studio-submit-note {
  margin: 10px 0 0;
  color: #57545b;
  font-size: 0.43rem;
  line-height: 1.55;
  text-align: center;
}

.task-success-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: 16px;
  display: grid;
  place-items: center;
  background: rgba(2, 2, 3, 0.82);
  backdrop-filter: blur(18px);
}

.task-success-gate[hidden] {
  display: none;
}

.task-success-dialog {
  width: min(100%, 520px);
  padding: 36px 30px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(167, 211, 111, 0.1), transparent 34%),
    #111112;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.76);
  text-align: center;
}

.task-credit-burst {
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  border: 1px solid rgba(167, 211, 111, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(167, 211, 111, 0.06);
  box-shadow: 0 0 65px rgba(167, 211, 111, 0.11);
}

.task-credit-burst span {
  width: 53px;
  height: 53px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0b0c09;
  background: var(--green);
  font-size: 0.7rem;
  font-weight: 850;
}

.task-success-dialog h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.task-success-dialog > p:not(.panel-kicker) {
  max-width: 410px;
  margin: 0 auto 18px;
  color: #747178;
  font-size: 0.59rem;
  line-height: 1.6;
}

.task-credit-amount {
  margin-bottom: 10px;
  padding: 20px;
  border: 1px solid rgba(167, 211, 111, 0.16);
  border-radius: 14px;
  background: rgba(167, 211, 111, 0.045);
}

.task-credit-amount small,
.task-credit-amount strong,
.task-credit-amount span {
  display: block;
}

.task-credit-amount small {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.44rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.task-credit-amount strong {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.task-credit-amount span {
  color: #66636a;
  font-size: 0.49rem;
}

.task-success-details {
  margin-bottom: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.task-success-details > div {
  padding: 13px;
  border: 1px solid #262529;
  border-radius: 11px;
  background: #151517;
  text-align: left;
}

.task-success-details small,
.task-success-details strong {
  display: block;
}

.task-success-details small {
  margin-bottom: 6px;
  color: #5e5b62;
  font-size: 0.43rem;
}

.task-success-details strong {
  color: #bbb7bf;
  font-size: 0.6rem;
}

.task-success-dialog > button {
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 11px;
  background: #ece9ee;
  color: #121113;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 750;
  cursor: pointer;
}

/* Projects and studio in light mode */

html[data-theme="light"] .wallet-chip {
  border-color: rgba(26, 22, 31, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 25px rgba(37, 29, 48, 0.075);
}

html[data-theme="light"] .wallet-chip small {
  color: #68616d;
}

html[data-theme="light"] .wallet-chip strong {
  color: #2c2731;
}

html[data-theme="light"] .projects-hero h1 span {
  color: #716a76;
}

html[data-theme="light"] .projects-hero > div > p:last-child,
html[data-theme="light"] .project-detail-copy,
html[data-theme="light"] .project-detail-empty p,
html[data-theme="light"] .projects-locked-state p,
html[data-theme="light"] .evaluation-guide-heading > p:last-child,
html[data-theme="light"] .metric-guide-grid p {
  color: #5d5762;
}

html[data-theme="light"] .active-task-banner,
html[data-theme="light"] .project-stats article,
html[data-theme="light"] .project-catalogue-panel,
html[data-theme="light"] .project-detail-panel,
html[data-theme="light"] .evaluation-guide,
html[data-theme="light"] .project-activity-panel {
  border-color: rgba(26, 22, 31, 0.13);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(37, 29, 48, 0.08);
}

html[data-theme="light"] .project-stats small,
html[data-theme="light"] .project-stats p,
html[data-theme="light"] .active-task-banner p,
html[data-theme="light"] .active-task-banner > div:nth-child(3) small {
  color: #625c67;
}

html[data-theme="light"] .project-stats strong,
html[data-theme="light"] .active-task-banner > div:nth-child(2) strong,
html[data-theme="light"] .project-catalogue-heading h2,
html[data-theme="light"] .project-detail-panel h2,
html[data-theme="light"] .evaluation-guide-heading h2,
html[data-theme="light"] .metric-guide-grid h3 {
  color: #27222c;
}

html[data-theme="light"] .active-task-banner button,
html[data-theme="light"] .projects-locked-state button,
html[data-theme="light"] .project-start-button {
  background: #211d24;
  color: #fff;
}

html[data-theme="light"] .project-search,
html[data-theme="light"] .project-market-card,
html[data-theme="light"] .project-detail-rate,
html[data-theme="light"] .metric-guide-grid article,
html[data-theme="light"] .project-activity-empty,
html[data-theme="light"] .project-credit-row {
  border-color: rgba(26, 22, 31, 0.13);
  background: #f1ede6;
}

html[data-theme="light"] .project-market-card:hover,
html[data-theme="light"] .project-market-card.selected {
  border-color: rgba(125, 69, 237, 0.45);
  background: #ebe5dc;
}

html[data-theme="light"] .project-search input,
html[data-theme="light"] .project-market-main > strong,
html[data-theme="light"] .project-market-rate strong,
html[data-theme="light"] .project-detail-rate strong,
html[data-theme="light"] .project-detail-expectation strong,
html[data-theme="light"] .project-activity-empty strong,
html[data-theme="light"] .project-credit-row > div strong {
  color: #302a35;
}

html[data-theme="light"] .project-market-main > span:first-child small,
html[data-theme="light"] .project-market-main > small,
html[data-theme="light"] .project-market-rate small,
html[data-theme="light"] .project-market-rate i,
html[data-theme="light"] .project-detail-rate small,
html[data-theme="light"] .project-detail-expectation p,
html[data-theme="light"] .project-activity-empty p,
html[data-theme="light"] .project-credit-row > div small {
  color: #625c67;
}

html[data-theme="light"] .project-market-tags i,
html[data-theme="light"] .project-skill-list span {
  border-color: rgba(26, 22, 31, 0.17);
  color: #5c5661;
}

html[data-theme="light"] .sxs-studio {
  background:
    radial-gradient(circle at 72% 6%, rgba(125, 69, 237, 0.1), transparent 24%),
    #ece8e1;
  color: #27222c;
}

html[data-theme="light"] .sxs-studio-header {
  border-color: rgba(26, 22, 31, 0.12);
  background: rgba(244, 241, 235, 0.94);
  box-shadow: 0 8px 28px rgba(37, 29, 48, 0.05);
}

html[data-theme="light"] .sxs-studio-brand .wordmark-name,
html[data-theme="light"] .sxs-studio-brand strong,
html[data-theme="light"] .sxs-time-card strong {
  color: #2d2832;
}

html[data-theme="light"] .sxs-time-card,
html[data-theme="light"] .sxs-earned-card,
html[data-theme="light"] .studio-exit,
html[data-theme="light"] .sxs-prompt-card,
html[data-theme="light"] .sxs-response-card,
html[data-theme="light"] .sxs-evaluation-panel {
  border-color: rgba(26, 22, 31, 0.13);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(37, 29, 48, 0.065);
}

html[data-theme="light"] .response-card-heading,
html[data-theme="light"] .sxs-metric,
html[data-theme="light"] .sxs-justification,
html[data-theme="light"] .sxs-choice-row span,
html[data-theme="light"] .sxs-justification textarea {
  border-color: rgba(26, 22, 31, 0.14);
  background: #f1ede6;
}

html[data-theme="light"] .sxs-prompt-card h1,
html[data-theme="light"] .response-card-heading strong,
html[data-theme="light"] .response-copy,
html[data-theme="light"] .response-copy strong,
html[data-theme="light"] .evaluation-panel-heading h2,
html[data-theme="light"] .sxs-metric legend strong,
html[data-theme="light"] .sxs-justification strong,
html[data-theme="light"] .sxs-justification textarea {
  color: #302a35;
}

html[data-theme="light"] .task-requirements p,
html[data-theme="light"] .response-card-heading small,
html[data-theme="light"] .evaluation-panel-heading > p:last-child,
html[data-theme="light"] .sxs-metric legend small,
html[data-theme="light"] .sxs-justification small,
html[data-theme="light"] .sxs-justification em,
html[data-theme="light"] .studio-submit-note {
  color: #625c67;
}

html[data-theme="light"] .sxs-choice-row input:checked + span {
  border-color: rgba(125, 69, 237, 0.48);
  color: #4f2e91;
  background: rgba(125, 69, 237, 0.13);
}

html[data-theme="light"] .studio-submit-summary button {
  background: #211d24;
  color: #fff;
}

html[data-theme="light"] .task-success-gate {
  background: rgba(31, 27, 35, 0.56);
}

html[data-theme="light"] .task-success-dialog {
  border-color: rgba(26, 22, 31, 0.14);
  background:
    radial-gradient(circle at 50% 0, rgba(109, 153, 49, 0.1), transparent 34%),
    #fbfaf7;
  box-shadow: 0 52px 145px rgba(37, 29, 48, 0.3);
}

html[data-theme="light"] .task-success-dialog h2,
html[data-theme="light"] .task-success-details strong {
  color: #302a35;
}

html[data-theme="light"] .task-success-dialog > p:not(.panel-kicker),
html[data-theme="light"] .task-credit-amount span,
html[data-theme="light"] .task-success-details small {
  color: #625c67;
}

html[data-theme="light"] .task-success-details > div {
  border-color: rgba(26, 22, 31, 0.14);
  background: #f1ede6;
}

html[data-theme="light"] .task-success-dialog > button {
  background: #211d24;
  color: #fff;
}

@media (max-width: 1180px) {
  .project-marketplace {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

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

  .sxs-studio-main {
    grid-template-columns: minmax(0, 1fr) 355px;
  }
}

@media (max-width: 1040px) {
  .project-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-marketplace {
    grid-template-columns: 1fr;
  }

  .project-detail-panel {
    min-height: auto;
    position: static;
  }

  .project-detail-empty {
    min-height: 260px;
  }

  .evaluation-guide-heading {
    grid-template-columns: 0.45fr 1fr;
  }

  .evaluation-guide-heading > p:last-child {
    grid-column: 2;
  }

  .sxs-studio-header {
    grid-template-columns: 1fr auto;
  }

  .sxs-timer-cluster {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .studio-exit {
    grid-column: 2;
    grid-row: 1;
  }

  .sxs-studio-main {
    grid-template-columns: 1fr;
  }

  .sxs-evaluation-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .wallet-chip {
    padding: 5px 7px;
  }

  .wallet-chip > span:last-child small {
    display: none;
  }

  .projects-content {
    padding-top: 40px;
  }

  .projects-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .projects-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .projects-hero .button {
    align-self: flex-start;
  }

  .active-task-banner {
    grid-template-columns: 12px 1fr auto;
  }

  .active-task-banner > div:nth-child(3) {
    display: none;
  }

  .active-task-banner button {
    grid-column: 2 / -1;
  }

  .project-stats article {
    min-height: 145px;
    padding: 16px;
    flex-direction: column;
  }

  .project-catalogue-panel,
  .project-detail-panel,
  .evaluation-guide,
  .project-activity-panel {
    padding: 18px;
  }

  .project-catalogue-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .project-search {
    width: 100%;
  }

  .project-market-card {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
  }

  .project-market-rate {
    grid-column: 2;
    padding: 11px 0 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
    text-align: left;
  }

  .project-market-rate strong,
  .project-market-rate i {
    display: inline;
    margin-right: 4px;
  }

  .project-market-card > em {
    grid-column: 3;
    grid-row: 1;
  }

  .evaluation-guide-heading {
    grid-template-columns: 1fr;
  }

  .evaluation-guide-heading > p:last-child {
    grid-column: 1;
  }

  .metric-guide-grid {
    grid-template-columns: 1fr;
  }

  .metric-guide-grid article {
    min-height: auto;
  }

  .metric-guide-grid article > span {
    margin-bottom: 14px;
  }

  .project-credit-row {
    grid-template-columns: 38px 1fr;
  }

  .project-credit-row > div:last-child {
    grid-column: 2;
    text-align: left;
  }

  .sxs-studio-header {
    padding: 10px 14px;
  }

  .sxs-studio-brand > i,
  .sxs-studio-brand > div,
  .studio-exit > span:first-child {
    display: none;
  }

  .sxs-timer-cluster {
    width: 100%;
  }

  .sxs-time-card,
  .sxs-earned-card {
    min-width: 0;
    flex: 1;
  }

  .sxs-studio-main {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .sxs-prompt-card,
  .sxs-evaluation-panel {
    padding: 17px;
  }

  .sxs-responses {
    grid-template-columns: 1fr;
  }

  .sxs-response-card {
    min-height: auto;
  }

  .response-copy {
    padding: 18px;
  }
}

@media (max-width: 430px) {
  .wallet-chip > span:last-child {
    display: none;
  }

  .project-stats {
    grid-template-columns: 1fr 1fr;
  }

  .project-stats strong {
    font-size: 1.08rem;
  }

  .sxs-studio-header {
    gap: 8px;
  }

  .sxs-time-card,
  .sxs-earned-card {
    padding: 7px 5px;
  }

  .sxs-earned-card span {
    display: none;
  }

  .sxs-choice-row {
    grid-template-columns: 1fr 0.7fr 1fr;
  }

  .sxs-choice-row span {
    font-size: 0.42rem;
  }

  .task-success-dialog {
    padding: 30px 18px 20px;
  }
}

.proxy-node-inventory {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.proxy-node-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.proxy-node-heading h3 {
  margin: 5px 0 4px;
  color: #e9e5ec;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
}

.proxy-node-heading > div > span {
  color: #6f6974;
  font-size: 0.5rem;
}

.proxy-node-heading > strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(167, 211, 111, 0.075);
  color: #b8df82;
  font-size: 0.49rem;
}

.proxy-node-heading > strong i {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  display: inline-block;
  background: #a7d36f;
  box-shadow: 0 0 10px rgba(167, 211, 111, 0.65);
}

.proxy-node-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.proxy-node-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
}

.proxy-node-table th,
.proxy-node-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #8d8791;
  font-size: 0.51rem;
  text-align: left;
}

.proxy-node-table th {
  color: #625d66;
  font-size: 0.45rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.proxy-node-table tbody tr {
  transition: background 160ms ease;
}

.proxy-node-table tbody tr:hover {
  background: rgba(140, 82, 255, 0.035);
}

.proxy-node-table code {
  color: #b895ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.49rem;
}

.node-country {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #bdb7c1;
  font-weight: 650;
}

.node-country i {
  font-size: 1rem;
  font-style: normal;
}

.proxy-node-table td > em {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(167, 211, 111, 0.075);
  color: #b8df82;
  font-size: 0.45rem;
  font-style: normal;
  font-weight: 750;
}

.proxy-node-table td > em::before {
  content: "✓";
  margin-right: 5px;
}

html[data-theme="light"] .proxy-node-inventory {
  border-color: rgba(51, 38, 59, 0.1);
  background: rgba(73, 51, 85, 0.025);
}

html[data-theme="light"] .proxy-node-heading h3 {
  color: #332b38;
}

html[data-theme="light"] .proxy-node-heading > div > span,
html[data-theme="light"] .proxy-node-table td {
  color: #6f6874;
}

html[data-theme="light"] .proxy-node-table th,
html[data-theme="light"] .proxy-node-table td {
  border-color: rgba(51, 38, 59, 0.08);
}

html[data-theme="light"] .node-country {
  color: #514953;
}

@media (max-width: 1420px) {
  .proxy-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .proxy-profile-grid {
    grid-template-columns: 1fr;
  }

  .proxy-node-heading {
    align-items: flex-start;
    display: grid;
  }
}

/* Floating contributor navigation — tablets and phones */
@media (max-width: 1024px) {
  .dashboard-sidebar,
  .dashboard-sidebar.open {
    position: fixed;
    z-index: 120;
    inset: auto auto max(12px, env(safe-area-inset-bottom)) 50%;
    width: min(720px, calc(100% - 32px));
    height: auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: block;
    overflow: visible;
    background:
      linear-gradient(135deg, rgba(31, 27, 39, 0.94), rgba(12, 11, 15, 0.96)),
      rgba(10, 9, 12, 0.94);
    box-shadow:
      0 22px 62px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(140, 82, 255, 0.06),
      0 8px 32px rgba(140, 82, 255, 0.12);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    transform: translateX(-50%) !important;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  }

  .dashboard-wordmark,
  .dashboard-sidebar .sidebar-bottom {
    display: none;
  }

  .dashboard-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .dashboard-nav button {
    position: relative;
    min-width: 0;
    min-height: 64px;
    padding: 8px 4px 9px;
    border-radius: 17px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 22px auto;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: #8f8995;
    font-size: 0.56rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .dashboard-nav button:hover {
    background: rgba(255, 255, 255, 0.055);
    color: #f1edf5;
  }

  .dashboard-nav button.active {
    background: linear-gradient(145deg, rgba(140, 82, 255, 0.24), rgba(140, 82, 255, 0.1));
    color: #fff;
    box-shadow:
      inset 0 0 0 1px rgba(180, 145, 255, 0.19),
      0 8px 24px rgba(71, 35, 138, 0.2);
  }

  .dashboard-nav button.active::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #b995ff;
    box-shadow: 0 0 12px rgba(185, 149, 255, 0.72);
    transform: translateX(-50%);
  }

  .dashboard-nav button > span {
    color: #817b86;
    font-size: 1.02rem;
    line-height: 1;
    transition: color 170ms ease, transform 170ms ease;
  }

  .dashboard-nav button:hover > span,
  .dashboard-nav button.active > span {
    color: #c9adff;
    transform: translateY(-1px);
  }

  .dashboard-nav button i {
    display: none;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-content {
    padding-bottom: calc(126px + env(safe-area-inset-bottom));
  }

  .dashboard-menu {
    display: none !important;
  }

  html[data-theme="light"] .dashboard-sidebar,
  html[data-theme="light"] .dashboard-sidebar.open {
    border-color: rgba(71, 53, 84, 0.13);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 240, 249, 0.96)),
      rgba(250, 248, 252, 0.95);
    box-shadow:
      0 22px 56px rgba(50, 34, 63, 0.17),
      0 0 0 1px rgba(140, 82, 255, 0.04),
      0 8px 28px rgba(140, 82, 255, 0.1);
  }

  html[data-theme="light"] .dashboard-nav button {
    color: #706877;
  }

  html[data-theme="light"] .dashboard-nav button:hover {
    background: rgba(125, 69, 237, 0.08);
    color: #332b38;
  }

  html[data-theme="light"] .dashboard-nav button.active {
    background: linear-gradient(145deg, rgba(125, 69, 237, 0.16), rgba(125, 69, 237, 0.08));
    color: #302637;
    box-shadow:
      inset 0 0 0 1px rgba(125, 69, 237, 0.16),
      0 8px 20px rgba(96, 55, 177, 0.1);
  }

  html[data-theme="light"] .dashboard-nav button > span {
    color: #776e7c;
  }

  html[data-theme="light"] .dashboard-nav button:hover > span,
  html[data-theme="light"] .dashboard-nav button.active > span {
    color: #7d45ed;
  }
}

@media (max-width: 520px) {
  .dashboard-sidebar,
  .dashboard-sidebar.open {
    bottom: max(9px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    padding: 6px;
    border-radius: 21px;
  }

  .dashboard-nav {
    gap: 2px;
  }

  .dashboard-nav button {
    min-height: 59px;
    padding: 7px 2px 8px;
    border-radius: 15px;
    grid-template-rows: 20px auto;
    gap: 2px;
    font-size: clamp(0.43rem, 2.25vw, 0.52rem);
  }

  .dashboard-nav button > span {
    font-size: 0.94rem;
  }

  .dashboard-content {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 1024px) {
  .dashboard-sidebar,
  .dashboard-nav button,
  .dashboard-nav button > span {
    transition: none;
  }
}

/* Mobile app shell — compact tablets and phones */
@media (max-width: 900px) {
  html {
    min-height: 100%;
    scroll-padding-top: calc(72px + env(safe-area-inset-top));
    scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  body.dashboard-page {
    --app-gutter: clamp(14px, 3vw, 24px);
    min-height: 100dvh;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    background:
      radial-gradient(circle at 50% -10%, rgba(140, 82, 255, 0.1), transparent 30%),
      #080809;
    -webkit-tap-highlight-color: transparent;
  }

  .dashboard-shell,
  .dashboard-main {
    min-height: 100dvh;
  }

  .dashboard-page button,
  .dashboard-page a,
  .dashboard-page input,
  .dashboard-page label {
    touch-action: manipulation;
  }

  .dashboard-topbar {
    z-index: 100;
    min-height: calc(64px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) var(--app-gutter) 0;
    border-bottom-color: rgba(255, 255, 255, 0.075);
    background: rgba(8, 8, 10, 0.86);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
  }

  .topbar-left {
    min-width: 0;
    flex: 1;
    gap: 10px;
    overflow: hidden;
  }

  .topbar-left::before {
    content: "O";
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid rgba(196, 170, 255, 0.26);
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #a878ff, #6f33d8);
    color: #fff;
    box-shadow: 0 8px 22px rgba(140, 82, 255, 0.25), inset 0 1px rgba(255, 255, 255, 0.3);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .topbar-left > div {
    min-width: 0;
    display: block;
  }

  .topbar-left > div span {
    max-width: clamp(86px, 25vw, 190px);
    margin: 0;
    overflow: hidden;
    display: block;
    color: #d8d3dc;
    font-size: 0.68rem;
    font-weight: 720;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-left > div strong,
  .icon-button,
  .location-chip > span:nth-child(2),
  .location-chip > i,
  .profile-chip > span:last-child,
  .wallet-chip > span:last-child {
    display: none;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .dashboard-theme-toggle,
  .wallet-chip,
  .location-chip,
  .profile-chip {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 4px;
    border-radius: 12px;
    justify-content: center;
  }

  .dashboard-theme-toggle {
    border-radius: 12px;
    font-size: 0.76rem;
  }

  .wallet-chip > span:first-child,
  .profile-chip > span:first-child {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .location-chip #locationFlag,
  .location-chip > span:first-child {
    width: 28px;
    height: 20px;
    border-radius: 6px;
  }

  .dashboard-content,
  .payments-content,
  .projects-content,
  .proxy-marketplace-content {
    width: 100%;
    margin-inline: auto;
    padding: 18px var(--app-gutter) calc(122px + env(safe-area-inset-bottom));
  }

  .dashboard-welcome,
  .projects-hero,
  .payments-hero {
    position: relative;
    margin-bottom: 14px;
    padding: clamp(21px, 4.5vw, 32px);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 25px;
    display: grid;
    align-items: stretch;
    gap: 20px;
    overflow: hidden;
    background:
      radial-gradient(circle at 92% 4%, rgba(140, 82, 255, 0.19), transparent 34%),
      linear-gradient(145deg, rgba(20, 19, 23, 0.98), rgba(12, 12, 14, 0.98));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.045), 0 18px 48px rgba(0, 0, 0, 0.17);
  }

  .dashboard-welcome::after,
  .projects-hero::after,
  .payments-hero::after {
    content: "";
    position: absolute;
    top: -55px;
    right: -48px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(177, 140, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
  }

  .dashboard-welcome .eyebrow,
  .projects-hero .eyebrow,
  .payments-hero .eyebrow,
  .proxy-marketplace-hero .eyebrow {
    margin-bottom: 12px;
    font-size: 0.6rem;
  }

  .dashboard-welcome h1,
  .projects-hero h1,
  .payments-hero h1,
  .proxy-marketplace-hero h1 {
    margin-bottom: 11px;
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
  }

  .dashboard-welcome > div > p:last-child,
  .projects-hero > div > p:last-child,
  .payments-hero > div > p:last-child,
  .proxy-marketplace-hero > div:first-child > p:last-of-type {
    font-size: 0.72rem;
    line-height: 1.58;
  }

  .dashboard-welcome > .button,
  .projects-hero > .button,
  .payments-hero > .button {
    width: 100%;
    min-height: 49px;
    align-self: stretch;
    justify-content: center;
    border-radius: 14px;
  }

  .dashboard-stats,
  .project-stats,
  .payment-stats,
  .proxy-market-stats {
    margin: 0 calc(-1 * var(--app-gutter)) 14px;
    padding: 2px var(--app-gutter) 7px;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(180px, 68vw, 260px);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--app-gutter);
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-stats::-webkit-scrollbar,
  .project-stats::-webkit-scrollbar,
  .payment-stats::-webkit-scrollbar,
  .proxy-market-stats::-webkit-scrollbar,
  .proxy-profile-grid::-webkit-scrollbar,
  .metric-guide-grid::-webkit-scrollbar,
  .proxy-access-info ol::-webkit-scrollbar {
    display: none;
  }

  .dashboard-stats article,
  .project-stats article,
  .payment-stats article,
  .proxy-market-stats article {
    min-height: 126px;
    padding: 16px;
    border-radius: 19px;
    flex-direction: column;
    gap: 10px;
    scroll-snap-align: start;
  }

  .dashboard-stats small,
  .project-stats small,
  .payment-stats small,
  .proxy-market-stats small {
    margin-bottom: 5px;
    font-size: 0.59rem;
  }

  .dashboard-stats strong,
  .project-stats strong,
  .payment-stats strong,
  .proxy-market-stats strong {
    font-size: 1.28rem;
  }

  .dashboard-stats p,
  .project-stats p,
  .payment-stats p,
  .proxy-market-stats p {
    margin-top: 5px;
    font-size: 0.55rem;
    line-height: 1.42;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .dashboard-grid,
  .project-marketplace,
  .payments-grid,
  .payment-side-column {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .projects-panel,
  .project-catalogue-panel,
  .project-detail-panel,
  .evaluation-guide,
  .project-activity-panel,
  .payment-panel,
  .proxy-market-section,
  .proxy-access-info,
  .proxy-node-inventory {
    border-radius: 22px;
  }

  .projects-panel,
  .project-catalogue-panel,
  .project-detail-panel,
  .evaluation-guide,
  .project-activity-panel,
  .bank-method-panel,
  .payout-history-panel,
  .payout-schedule-panel,
  .proxy-market-section,
  .proxy-access-info {
    padding: 19px;
  }

  .projects-panel,
  .project-catalogue-panel,
  .project-detail-panel,
  .bank-method-panel {
    min-height: auto;
  }

  .panel-heading-row,
  .project-catalogue-heading,
  .proxy-section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .panel-overline,
  .dashboard-page .eyebrow {
    font-size: 0.58rem;
  }

  .dashboard-footer {
    display: none;
  }

  .project-card,
  .project-market-card {
    border-radius: 17px;
  }

  .project-market-card {
    min-height: 148px;
    padding: 15px;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 12px;
  }

  .project-market-rate {
    grid-column: 2;
    padding: 11px 0 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
    text-align: left;
  }

  .project-market-rate strong,
  .project-market-rate i {
    display: inline;
    margin-right: 5px;
  }

  .project-market-card > em {
    grid-column: 3;
    grid-row: 1;
  }

  .project-market-main > strong {
    font-size: 0.78rem;
  }

  .project-market-main > span:first-child small,
  .project-market-main > small,
  .project-market-rate small,
  .project-market-rate i,
  .project-market-tags i {
    font-size: 0.52rem;
  }

  .project-search {
    width: 100%;
    min-height: 46px;
    border-radius: 13px;
  }

  .project-detail-panel {
    position: static;
    top: auto;
  }

  .project-detail-empty,
  .projects-locked-state {
    min-height: 230px;
  }

  .evaluation-guide-heading {
    margin-bottom: 18px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .evaluation-guide-heading > p:last-child {
    grid-column: 1;
    font-size: 0.62rem;
  }

  .metric-guide-grid {
    margin-inline: -19px;
    padding-inline: 19px;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(230px, 76vw, 300px);
    gap: 9px;
    overflow-x: auto;
    scroll-padding-inline: 19px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .metric-guide-grid article {
    min-height: 150px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .active-task-banner {
    padding: 15px;
    border-radius: 18px;
    grid-template-columns: 10px 1fr;
    gap: 11px;
  }

  .active-task-banner > div:nth-child(3) {
    display: none;
  }

  .active-task-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .bank-empty {
    min-height: 300px;
  }

  .bank-empty > p,
  .payout-schedule-panel > p:not(.panel-overline),
  .history-empty p,
  .bank-security-note p {
    font-size: 0.61rem;
  }

  .connected-bank-card {
    padding: 16px;
    border-radius: 17px;
    grid-template-columns: 44px 1fr;
  }

  .verified-pill {
    grid-column: 2;
    width: max-content;
  }

  .proxy-marketplace-content {
    gap: 12px;
  }

  .proxy-marketplace-hero {
    min-height: auto;
    padding: clamp(22px, 5vw, 34px);
    border-radius: 25px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .proxy-hero-visual {
    display: none;
  }

  .proxy-hero-actions {
    margin-top: 20px;
    display: grid;
    align-items: stretch;
    gap: 12px;
  }

  .proxy-hero-actions .button {
    min-height: 49px;
    justify-content: center;
    border-radius: 14px;
  }

  .proxy-hero-actions > a {
    min-height: 40px;
    display: grid;
    place-items: center;
  }

  .active-proxy-banner {
    padding: 16px;
    border-radius: 20px;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .active-proxy-banner > a {
    grid-column: auto;
    min-height: 46px;
    justify-content: center;
    border-radius: 13px;
  }

  .proxy-section-heading {
    display: grid;
  }

  .proxy-profile-grid {
    margin: 0 -19px;
    padding: 2px 19px 8px;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(280px, 78vw, 360px);
    gap: 11px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 19px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .proxy-profile-card,
  .proxy-profile-card:last-child {
    grid-column: auto;
    padding: 19px;
    border-radius: 20px;
    scroll-snap-align: start;
  }

  .proxy-profile-card:hover {
    transform: none;
  }

  .proxy-profile-card > p {
    font-size: 0.56rem;
  }

  .proxy-profile-card > h3 {
    font-size: 1.08rem;
  }

  .proxy-profile-card > ul li,
  .proxy-profile-card > ul li b,
  .proxy-profile-meta {
    font-size: 0.58rem;
  }

  .proxy-profile-action,
  .professional-pay-button,
  .project-start-button,
  .bank-empty .button {
    min-height: 49px;
    border-radius: 14px;
  }

  .proxy-node-inventory {
    padding: 16px;
  }

  .proxy-node-table-wrap {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .proxy-node-table {
    min-width: 640px;
  }

  .proxy-node-table th,
  .proxy-node-table td {
    font-size: 0.56rem;
  }

  .proxy-access-info {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .proxy-access-info ol {
    margin-inline: -19px;
    padding: 0 19px 6px;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(220px, 70vw, 280px);
    gap: 9px;
    overflow-x: auto;
    scroll-padding-inline: 19px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .proxy-access-info li {
    min-height: 128px;
    grid-template-columns: 32px 1fr;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .proxy-access-info li strong {
    font-size: 0.65rem;
  }

  .proxy-access-info li small {
    font-size: 0.57rem;
  }

  .proxy-gate,
  .bank-gate,
  .proxy-checkout {
    padding: 0;
    place-items: end center;
  }

  .proxy-dialog,
  .bank-dialog,
  .proxy-checkout-dialog {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top));
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -24px 90px rgba(0, 0, 0, 0.56), 0 0 70px rgba(140, 82, 255, 0.08);
  }

  .proxy-dialog,
  .bank-dialog {
    padding: 24px var(--app-gutter) calc(22px + env(safe-area-inset-bottom));
  }

  .proxy-checkout-step {
    padding: 22px var(--app-gutter) calc(24px + env(safe-area-inset-bottom));
  }

  .proxy-checkout-header {
    min-height: 66px;
    padding-inline: var(--app-gutter);
  }

  .bank-search-field,
  .professional-mpesa-field > div,
  .mpesa-field > div {
    min-height: 49px;
    border-radius: 14px;
  }

  body:has(.proxy-gate.open) .dashboard-sidebar,
  body:has(.bank-gate.open) .dashboard-sidebar,
  body:has(.proxy-checkout.open) .dashboard-sidebar {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 24px) !important;
  }

  .sxs-studio {
    min-height: 100dvh;
  }

  .sxs-studio-header {
    padding-top: calc(10px + env(safe-area-inset-top));
    min-height: calc(76px + env(safe-area-inset-top));
  }

  .sxs-studio-main {
    width: 100%;
    padding: 10px var(--app-gutter) calc(24px + env(safe-area-inset-bottom));
  }

  html[data-theme="light"] body.dashboard-page {
    background:
      radial-gradient(circle at 50% -10%, rgba(125, 69, 237, 0.11), transparent 32%),
      #f4f1eb;
  }

  html[data-theme="light"] .dashboard-topbar {
    border-color: rgba(49, 39, 57, 0.09);
    background: rgba(248, 246, 241, 0.88);
    box-shadow: 0 10px 28px rgba(48, 35, 58, 0.07);
  }

  html[data-theme="light"] .topbar-left > div span {
    color: #342f38;
  }

  html[data-theme="light"] .dashboard-welcome,
  html[data-theme="light"] .projects-hero,
  html[data-theme="light"] .payments-hero {
    border-color: rgba(48, 37, 57, 0.1);
    background:
      radial-gradient(circle at 92% 4%, rgba(125, 69, 237, 0.14), transparent 35%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 240, 247, 0.98));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.9), 0 18px 44px rgba(48, 35, 58, 0.08);
  }
}

@media (max-width: 430px) {
  body.dashboard-page {
    --app-gutter: 12px;
  }

  .dashboard-topbar {
    min-height: calc(60px + env(safe-area-inset-top));
  }

  .topbar-left {
    gap: 8px;
  }

  .topbar-left::before {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .topbar-left > div span {
    max-width: 82px;
    font-size: 0.62rem;
  }

  .topbar-actions {
    gap: 4px;
  }

  .dashboard-theme-toggle,
  .wallet-chip,
  .location-chip,
  .profile-chip {
    width: 35px;
    min-width: 35px;
    height: 35px;
    min-height: 35px;
  }

  .dashboard-content,
  .payments-content,
  .projects-content,
  .proxy-marketplace-content {
    padding-top: 12px;
  }

  .dashboard-welcome,
  .projects-hero,
  .payments-hero,
  .proxy-marketplace-hero {
    padding: 20px;
    border-radius: 22px;
  }

  .dashboard-welcome h1,
  .projects-hero h1,
  .payments-hero h1,
  .proxy-marketplace-hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
  }

  .dashboard-welcome > div > p:last-child,
  .projects-hero > div > p:last-child,
  .payments-hero > div > p:last-child,
  .proxy-marketplace-hero > div:first-child > p:last-of-type {
    font-size: 0.67rem;
  }

  .projects-panel,
  .project-catalogue-panel,
  .project-detail-panel,
  .evaluation-guide,
  .project-activity-panel,
  .bank-method-panel,
  .payout-history-panel,
  .payout-schedule-panel,
  .proxy-market-section,
  .proxy-access-info {
    padding: 16px;
    border-radius: 20px;
  }

  .proxy-profile-grid,
  .metric-guide-grid,
  .proxy-access-info ol {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .project-card {
    padding: 14px;
  }

  .history-empty {
    align-items: flex-start;
  }

  .dashboard-nav button {
    font-size: 0.5rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .dashboard-page button:active,
  .dashboard-page a:active,
  .project-market-card:active,
  .proxy-profile-card:active {
    transform: scale(0.985);
  }

  .proxy-profile-card:hover,
  .project-market-card:hover,
  .theme-toggle:hover {
    transform: none;
  }
}

/* Mobile product refinement — deliberate phone and tablet layouts */
.dashboard-nav button > b {
  min-width: 0;
  overflow: hidden;
  font: inherit;
  font-weight: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .dashboard-sidebar,
  .dashboard-sidebar.open {
    width: min(620px, calc(100% - 24px));
  }

  .dashboard-nav button > b {
    font-size: 0;
  }

  .dashboard-nav button > b::after {
    content: attr(data-short);
    font-size: 0.58rem;
    line-height: 1;
  }
}

@media (max-width: 900px) {
  body.dashboard-page {
    --app-gutter: clamp(16px, 3.8vw, 28px);
  }

  .dashboard-topbar {
    min-height: calc(66px + env(safe-area-inset-top));
  }

  .topbar-left > div {
    flex: 1;
    overflow: hidden;
  }

  .topbar-left > div span {
    max-width: none;
    font-size: 0.72rem;
  }

  .wallet-chip {
    display: none;
  }

  .dashboard-content,
  .payments-content,
  .projects-content,
  .proxy-marketplace-content {
    max-width: 820px;
    padding-top: 20px;
  }

  .dashboard-welcome,
  .projects-hero,
  .payments-hero,
  .proxy-marketplace-hero {
    min-height: auto;
    padding: clamp(24px, 4.8vw, 38px);
  }

  .dashboard-welcome h1,
  .projects-hero h1,
  .payments-hero h1,
  .proxy-marketplace-hero h1 {
    max-width: 680px;
    font-size: clamp(2.15rem, 6vw, 3.3rem);
  }

  .dashboard-welcome > div > p:last-child,
  .projects-hero > div > p:last-child,
  .payments-hero > div > p:last-child,
  .proxy-marketplace-hero > div:first-child > p:last-of-type {
    max-width: 610px;
    font-size: 0.76rem;
  }

  .dashboard-welcome > .button,
  .projects-hero > .button,
  .payments-hero > .button {
    max-width: 280px;
  }

  .dashboard-stats,
  .project-stats,
  .payment-stats,
  .proxy-market-stats {
    margin: 0 0 14px;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .dashboard-stats article,
  .project-stats article,
  .payment-stats article,
  .proxy-market-stats article {
    width: auto;
    min-width: 0;
    min-height: 136px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto;
    align-content: start;
    align-items: start;
    gap: 12px;
    scroll-snap-align: none;
  }

  .dashboard-stats article > div,
  .project-stats article > div,
  .payment-stats article > div,
  .proxy-market-stats article > div {
    min-width: 0;
  }

  .dashboard-stats small,
  .project-stats small,
  .payment-stats small,
  .proxy-market-stats small,
  .dashboard-stats p,
  .project-stats p,
  .payment-stats p,
  .proxy-market-stats p {
    overflow-wrap: anywhere;
  }

  .dashboard-stats strong,
  .project-stats strong,
  .payment-stats strong,
  .proxy-market-stats strong {
    font-size: clamp(1.18rem, 3.5vw, 1.42rem);
  }

  .project-catalogue-heading,
  .panel-heading-row {
    display: flex;
  }

  .project-market-card {
    overflow: hidden;
  }

  .project-market-main,
  .project-market-rate,
  .project-detail-panel,
  .connected-bank-main,
  .proxy-profile-card,
  .proxy-profile-card li,
  .active-proxy-identity > div,
  .active-proxy-health > span {
    min-width: 0;
  }

  .project-market-main > strong,
  .project-market-main > small,
  .project-detail-copy,
  .connected-bank-main h3,
  .connected-bank-main p,
  .proxy-profile-card h3,
  .proxy-profile-card li span,
  .proxy-profile-meta span,
  .active-proxy-banner strong,
  .active-proxy-banner small {
    overflow-wrap: anywhere;
  }

  .metric-guide-grid {
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .metric-guide-grid article {
    min-width: 0;
    min-height: 160px;
    scroll-snap-align: none;
  }

  .proxy-profile-grid {
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .proxy-profile-card,
  .proxy-profile-card:last-child {
    width: auto;
    min-width: 0;
    scroll-snap-align: none;
  }

  .proxy-profile-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .proxy-access-info ol {
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .proxy-access-info li {
    min-width: 0;
    scroll-snap-align: none;
  }

  .proxy-node-table-wrap {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .bank-dialog,
  .proxy-dialog,
  .proxy-checkout-dialog {
    overscroll-behavior: contain;
  }

  .dashboard-nav button {
    min-height: 60px;
  }

  .dashboard-nav button > b::after {
    font-size: 0.6rem;
  }
}

@media (max-width: 639px) {
  body.dashboard-page {
    --app-gutter: 14px;
  }

  .dashboard-topbar {
    min-height: calc(62px + env(safe-area-inset-top));
    padding-inline: var(--app-gutter);
  }

  .topbar-left::before {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .topbar-left > div span {
    max-width: min(43vw, 160px);
    font-size: 0.66rem;
  }

  .wallet-chip,
  .location-chip {
    display: none;
  }

  .dashboard-theme-toggle,
  .profile-chip {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .dashboard-content,
  .payments-content,
  .projects-content,
  .proxy-marketplace-content {
    max-width: 540px;
    padding-top: 14px;
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }

  .dashboard-welcome,
  .projects-hero,
  .payments-hero,
  .proxy-marketplace-hero {
    padding: 22px 20px;
    border-radius: 22px;
    gap: 17px;
  }

  .dashboard-welcome::after,
  .projects-hero::after,
  .payments-hero::after {
    width: 118px;
    height: 118px;
  }

  .dashboard-welcome h1,
  .projects-hero h1,
  .payments-hero h1,
  .proxy-marketplace-hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.65rem);
    line-height: 1;
  }

  .dashboard-welcome > div > p:last-child,
  .projects-hero > div > p:last-child,
  .payments-hero > div > p:last-child,
  .proxy-marketplace-hero > div:first-child > p:last-of-type {
    font-size: 0.7rem;
    line-height: 1.55;
  }

  .dashboard-welcome > .button,
  .projects-hero > .button,
  .payments-hero > .button {
    max-width: none;
  }

  .dashboard-stats,
  .project-stats,
  .payment-stats,
  .proxy-market-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .dashboard-stats article,
  .project-stats article,
  .payment-stats article,
  .proxy-market-stats article {
    min-height: 126px;
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .dashboard-stats small,
  .project-stats small,
  .payment-stats small,
  .proxy-market-stats small {
    min-height: 1.25em;
    margin-bottom: 4px;
    font-size: 0.56rem;
    line-height: 1.25;
  }

  .dashboard-stats strong,
  .project-stats strong,
  .payment-stats strong,
  .proxy-market-stats strong {
    font-size: 1.14rem;
  }

  .dashboard-stats p,
  .project-stats p,
  .payment-stats p,
  .proxy-market-stats p {
    font-size: 0.51rem;
    line-height: 1.35;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
  }

  .projects-panel,
  .project-catalogue-panel,
  .project-detail-panel,
  .evaluation-guide,
  .project-activity-panel,
  .bank-method-panel,
  .payout-history-panel,
  .payout-schedule-panel,
  .proxy-market-section,
  .proxy-access-info {
    padding: 17px;
    border-radius: 20px;
  }

  .project-catalogue-heading,
  .panel-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .project-market-card {
    min-height: 0;
    padding: 14px;
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    gap: 10px;
  }

  .project-market-rate {
    min-width: 0;
  }

  .project-market-tags {
    max-width: 100%;
  }

  .project-detail-rate {
    grid-template-columns: 1fr 1fr;
  }

  .metric-guide-grid,
  .proxy-profile-grid,
  .proxy-access-info ol {
    grid-template-columns: 1fr;
  }

  .metric-guide-grid article {
    min-height: auto;
  }

  .proxy-profile-card,
  .proxy-profile-card:last-child {
    padding: 18px;
  }

  .proxy-profile-card > ul li {
    align-items: flex-start;
  }

  .proxy-profile-card > ul li b {
    flex: 0 0 auto;
  }

  .proxy-node-inventory {
    padding: 16px;
    overflow: hidden;
  }

  .proxy-node-heading {
    align-items: flex-start;
    display: grid;
  }

  .proxy-node-table-wrap {
    overflow: visible;
  }

  .proxy-node-table {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .proxy-node-table thead {
    display: none;
  }

  .proxy-node-table tbody {
    display: grid;
    gap: 9px;
  }

  .proxy-node-table tr {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 15px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 14px;
    background: rgba(255, 255, 255, 0.022);
  }

  .proxy-node-table td {
    min-width: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 5px;
    font-size: 0.59rem;
    overflow-wrap: anywhere;
  }

  .proxy-node-table td::before {
    color: #5f5964;
    font-size: 0.46rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .proxy-node-table td:nth-child(1)::before { content: "Node"; }
  .proxy-node-table td:nth-child(2)::before { content: "Location"; }
  .proxy-node-table td:nth-child(3)::before { content: "City"; }
  .proxy-node-table td:nth-child(4)::before { content: "Projects"; }
  .proxy-node-table td:nth-child(5)::before { content: "Status"; }

  html[data-theme="light"] .proxy-node-table tr {
    border-color: rgba(52, 40, 61, 0.09);
    background: rgba(77, 52, 90, 0.025);
  }

  html[data-theme="light"] .proxy-node-table td::before {
    color: #756b7b;
  }

  .active-proxy-banner,
  .active-task-banner {
    overflow: hidden;
  }

  .connected-bank-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .history-empty {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .proxy-option,
  .bank-result,
  .selected-bank-summary,
  .checkout-location-summary {
    min-width: 0;
  }

  .proxy-dialog,
  .bank-dialog,
  .proxy-checkout-dialog {
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
  }

  .dashboard-sidebar,
  .dashboard-sidebar.open {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    padding: 5px;
    border-radius: 20px;
  }

  .dashboard-nav {
    gap: 1px;
  }

  .dashboard-nav button {
    min-height: 57px;
    padding: 6px 1px 8px;
    border-radius: 15px;
    grid-template-rows: 20px auto;
  }

  .dashboard-nav button > span {
    font-size: 0.94rem;
  }

  .dashboard-nav button > b::after {
    font-size: clamp(0.48rem, 2.3vw, 0.58rem);
  }
}

@media (max-width: 370px) {
  .topbar-left > div span {
    max-width: 112px;
  }

  .dashboard-stats article,
  .project-stats article,
  .payment-stats article,
  .proxy-market-stats article {
    min-height: 118px;
    padding: 12px;
  }

  .dashboard-stats p,
  .project-stats p,
  .payment-stats p,
  .proxy-market-stats p {
    display: none;
  }

  .dashboard-nav button > b::after {
    font-size: 0.48rem;
  }
}

@media (max-width: 639px) {
  .dashboard-page input,
  .dashboard-page select,
  .dashboard-page textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .checkout-location-summary {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .checkout-location-summary > div:last-child {
    grid-column: 2;
    padding-top: 10px;
    border-top: 1px solid rgba(177, 140, 255, 0.1);
    text-align: left;
  }

  .selected-bank-summary {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .selected-bank-summary > *:last-child {
    grid-column: 2;
    justify-self: start;
  }

  .payment-summary {
    align-items: flex-start;
    gap: 10px;
  }

  .payment-summary > div {
    min-width: 0;
  }

  .payment-summary > div > span:last-child {
    min-width: 0;
  }

  .sxs-studio-header {
    padding: calc(9px + env(safe-area-inset-top)) 12px 9px;
    grid-template-columns: minmax(54px, 0.55fr) minmax(0, 1.45fr);
    gap: 8px;
  }

  .sxs-studio-brand {
    min-width: 0;
  }

  .sxs-studio-brand .wordmark-name {
    font-size: 0.92rem;
  }

  .studio-header-actions {
    min-width: 0;
    gap: 5px;
  }

  .studio-abandon,
  .studio-exit {
    min-width: 0;
    min-height: 36px;
    padding-inline: 8px;
    font-size: 0.45rem;
    white-space: nowrap;
  }

  .studio-exit span {
    margin-left: 4px;
  }

  .sxs-timer-cluster {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .sxs-time-card,
  .sxs-earned-card {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 7px 4px;
    border-radius: 10px;
  }

  .sxs-time-card small,
  .sxs-earned-card small {
    overflow: hidden;
    font-size: 0.39rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sxs-time-card strong,
  .sxs-earned-card strong {
    font-size: 0.68rem;
  }

  .sxs-studio-main {
    gap: 12px;
  }

  .sxs-prompt-card,
  .sxs-evaluation-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .sxs-section-label {
    margin-bottom: 16px;
  }

  .sxs-section-label > i {
    display: none;
  }

  .sxs-prompt-card h1 {
    font-size: clamp(1.3rem, 6.5vw, 1.75rem);
  }

  .task-requirements p,
  .response-copy {
    font-size: 0.68rem;
  }

  .response-copy {
    padding: 17px;
    line-height: 1.68;
  }

  .sxs-response-card {
    border-radius: 16px;
  }
}

/* High-visibility light theme */
html[data-theme="light"] {
  --ink: #f2efe9;
  --ink-soft: #e9e4dc;
  --panel: #ffffff;
  --panel-high: #f7f4ef;
  --line: rgba(43, 34, 49, 0.22);
  --line-soft: rgba(43, 34, 49, 0.14);
  --paper: #201b24;
  --muted: #59515e;
  --muted-light: #403944;
  --purple: #7438e6;
  --purple-soft: #642dce;
  --green: #476e16;
  --light-page: #f2efe9;
  --light-surface: #ffffff;
  --light-raised: #faf8f4;
  --light-subtle: #f0ece5;
  --light-border: #d7d0da;
  --light-border-strong: #c7bdcb;
  --light-text: #211b25;
  --light-text-soft: #534b58;
  --light-text-muted: #69606e;
  color-scheme: light;
  color: var(--light-text);
  background: var(--light-page);
}

html[data-theme="light"] body {
  color: var(--light-text);
  background: var(--light-page);
}

html[data-theme="light"] :focus-visible {
  outline: 3px solid rgba(116, 56, 230, 0.28);
  outline-offset: 2px;
}

/* Public landing experience */
html[data-theme="light"] .landing-page {
  background:
    radial-gradient(circle at 78% 14%, rgba(116, 56, 230, 0.15), transparent 27%),
    radial-gradient(circle at 12% 58%, rgba(98, 151, 40, 0.07), transparent 23%),
    linear-gradient(180deg, #faf8f4, #efebe4 76%);
}

html[data-theme="light"] .site-header,
html[data-theme="light"] .auth-header {
  border-color: var(--light-border);
}

html[data-theme="light"] .wordmark,
html[data-theme="light"] .hero h1,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .card-copy h3,
html[data-theme="light"] .method h3,
html[data-theme="light"] .direction-visual strong,
html[data-theme="light"] .footer-wordmark {
  color: var(--light-text);
}

html[data-theme="light"] .primary-nav a,
html[data-theme="light"] .text-link,
html[data-theme="light"] .back-home,
html[data-theme="light"] .hero-lede,
html[data-theme="light"] .section-heading > p:last-child,
html[data-theme="light"] .card-copy p,
html[data-theme="light"] .method-list p,
html[data-theme="light"] .hero-note p,
html[data-theme="light"] .footer-meta,
html[data-theme="light"] .footer-bottom {
  color: var(--light-text-soft);
}

html[data-theme="light"] .primary-nav a:hover,
html[data-theme="light"] .text-link:hover,
html[data-theme="light"] .back-home:hover {
  color: #5722bf;
}

html[data-theme="light"] .floating-card,
html[data-theme="light"] .work-card,
html[data-theme="light"] .method,
html[data-theme="light"] .direction-visual,
html[data-theme="light"] .capability-strip {
  border-color: var(--light-border);
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(44, 31, 51, 0.1);
}

html[data-theme="light"] .work-card-featured {
  border-color: rgba(116, 56, 230, 0.28);
  background: linear-gradient(145deg, rgba(116, 56, 230, 0.13), transparent 50%), #fff;
}

html[data-theme="light"] .site-footer {
  border-color: var(--light-border);
  background: rgba(245, 242, 236, 0.86);
}

/* Authentication */
html[data-theme="light"] .auth-page {
  background:
    linear-gradient(rgba(45, 35, 51, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 35, 51, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 72% 42%, rgba(116, 56, 230, 0.15), transparent 32%),
    #f1eee8;
  background-size: 46px 46px, 46px 46px, auto, auto;
}

html[data-theme="light"] .auth-story h1,
html[data-theme="light"] .auth-screen h1,
html[data-theme="light"] .auth-screen h2,
html[data-theme="light"] .auth-screen h3,
html[data-theme="light"] .auth-screen strong,
html[data-theme="light"] .access-points strong {
  color: var(--light-text);
}

html[data-theme="light"] .auth-story > p:not(.eyebrow),
html[data-theme="light"] .access-points p,
html[data-theme="light"] .story-footnote p,
html[data-theme="light"] .panel-intro,
html[data-theme="light"] .forgot-link,
html[data-theme="light"] .resend-button,
html[data-theme="light"] .terms-check,
html[data-theme="light"] .panel-switch,
html[data-theme="light"] .identity-privacy {
  color: var(--light-text-soft);
}

html[data-theme="light"] .auth-card {
  border-color: var(--light-border-strong);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 35px 90px rgba(42, 29, 49, 0.2), 0 0 70px rgba(116, 56, 230, 0.06);
}

html[data-theme="light"] .field,
html[data-theme="light"] .document-option,
html[data-theme="light"] .identity-upload,
html[data-theme="light"] .otp-inputs input,
html[data-theme="light"] .social-stack button {
  border-color: var(--light-border-strong);
  background: var(--light-subtle);
  color: var(--light-text);
}

html[data-theme="light"] .field:focus-within,
html[data-theme="light"] .otp-inputs input:focus,
html[data-theme="light"] .identity-upload:focus-within {
  border-color: rgba(116, 56, 230, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(116, 56, 230, 0.09);
}

html[data-theme="light"] .field input,
html[data-theme="light"] .otp-inputs input {
  color: var(--light-text);
}

html[data-theme="light"] .field input::placeholder {
  color: #756c79;
}

html[data-theme="light"] .auth-primary {
  background: linear-gradient(135deg, #26202a, #17131a);
  color: #fff;
  box-shadow: 0 14px 30px rgba(35, 25, 40, 0.2);
}

/* Contributor application shell */
html[data-theme="light"] .dashboard-page {
  color: var(--light-text);
  background:
    radial-gradient(circle at 82% 8%, rgba(116, 56, 230, 0.12), transparent 24%),
    linear-gradient(180deg, #f6f3ee, #ede9e2 76%);
}

html[data-theme="light"] .dashboard-sidebar {
  border-color: var(--light-border);
  background: rgba(251, 249, 245, 0.98);
  box-shadow: 14px 0 45px rgba(41, 29, 47, 0.09);
}

html[data-theme="light"] .dashboard-topbar {
  border-color: var(--light-border);
  background: rgba(248, 246, 241, 0.94);
  box-shadow: 0 9px 28px rgba(45, 32, 51, 0.08);
}

html[data-theme="light"] .dashboard-nav button,
html[data-theme="light"] .sidebar-link,
html[data-theme="light"] .topbar-left > div span {
  color: #514956;
}

html[data-theme="light"] .dashboard-nav button > span,
html[data-theme="light"] .sidebar-link > span {
  color: #625968;
}

html[data-theme="light"] .dashboard-nav button:hover,
html[data-theme="light"] .dashboard-nav button.active,
html[data-theme="light"] .sidebar-link:hover {
  background: rgba(116, 56, 230, 0.13);
  color: #2b2131;
}

html[data-theme="light"] .dashboard-nav button.active {
  box-shadow: inset 3px 0 #7438e6;
}

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .icon-button,
html[data-theme="light"] .location-chip,
html[data-theme="light"] .profile-chip,
html[data-theme="light"] .wallet-chip {
  border-color: var(--light-border-strong);
  background: #fff;
  color: #39313e;
  box-shadow: 0 7px 20px rgba(45, 32, 51, 0.1);
}

html[data-theme="light"] .location-chip strong,
html[data-theme="light"] .profile-chip strong,
html[data-theme="light"] .wallet-chip strong,
html[data-theme="light"] .topbar-left > div strong {
  color: #2f2834;
}

html[data-theme="light"] .profile-chip > span:first-child {
  background: #7438e6;
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25);
}

html[data-theme="light"] .location-chip small,
html[data-theme="light"] .profile-chip small,
html[data-theme="light"] .wallet-chip small {
  color: #625967;
}

html[data-theme="light"] .dashboard-welcome h1,
html[data-theme="light"] .projects-hero h1,
html[data-theme="light"] .payments-hero h1,
html[data-theme="light"] .proxy-marketplace-hero h1,
html[data-theme="light"] .dashboard-content h2,
html[data-theme="light"] .dashboard-content h3 {
  color: var(--light-text);
}

html[data-theme="light"] .dashboard-welcome h1 span,
html[data-theme="light"] .projects-hero h1 span,
html[data-theme="light"] .payments-hero h1 span {
  color: #5c5361;
}

html[data-theme="light"] .dashboard-content p:not(.eyebrow):not(.panel-overline),
html[data-theme="light"] .dashboard-content small {
  color: var(--light-text-soft);
}

html[data-theme="light"] .panel-overline,
html[data-theme="light"] .dashboard-page .eyebrow {
  color: #6530c9;
}

html[data-theme="light"] .dashboard-stats article,
html[data-theme="light"] .projects-panel,
html[data-theme="light"] .onboarding-panel,
html[data-theme="light"] .payment-stats article,
html[data-theme="light"] .payment-panel,
html[data-theme="light"] .active-task-banner,
html[data-theme="light"] .project-stats article,
html[data-theme="light"] .project-catalogue-panel,
html[data-theme="light"] .project-detail-panel,
html[data-theme="light"] .evaluation-guide,
html[data-theme="light"] .project-activity-panel,
html[data-theme="light"] .proxy-marketplace-hero,
html[data-theme="light"] .proxy-market-section,
html[data-theme="light"] .proxy-access-info,
html[data-theme="light"] .proxy-market-stats article,
html[data-theme="light"] .proxy-profile-card,
html[data-theme="light"] .proxy-node-inventory {
  border-color: var(--light-border);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 38px rgba(45, 31, 52, 0.095);
}

html[data-theme="light"] .dashboard-welcome,
html[data-theme="light"] .projects-hero,
html[data-theme="light"] .payments-hero {
  border-color: var(--light-border);
  background:
    radial-gradient(circle at 92% 3%, rgba(116, 56, 230, 0.16), transparent 35%),
    linear-gradient(145deg, #fff, #f6f2f8);
  box-shadow: 0 16px 42px rgba(45, 31, 52, 0.11);
}

html[data-theme="light"] .proxy-marketplace-hero {
  background:
    radial-gradient(circle at 77% 16%, rgba(116, 56, 230, 0.19), transparent 35%),
    radial-gradient(circle at 12% 90%, rgba(91, 134, 37, 0.1), transparent 28%),
    #fff;
}

html[data-theme="light"] .dashboard-stats strong,
html[data-theme="light"] .project-stats strong,
html[data-theme="light"] .payment-stats strong,
html[data-theme="light"] .proxy-market-stats strong,
html[data-theme="light"] .project-card-main h3,
html[data-theme="light"] .project-market-main > strong,
html[data-theme="light"] .project-market-rate strong,
html[data-theme="light"] .project-detail-rate strong,
html[data-theme="light"] .proxy-profile-card > h3,
html[data-theme="light"] .proxy-capacity strong,
html[data-theme="light"] .connected-bank-main h3,
html[data-theme="light"] .bank-detail-grid strong {
  color: #28212d;
}

html[data-theme="light"] .dashboard-stats small,
html[data-theme="light"] .dashboard-stats p,
html[data-theme="light"] .project-stats small,
html[data-theme="light"] .project-stats p,
html[data-theme="light"] .payment-stats small,
html[data-theme="light"] .payment-stats p,
html[data-theme="light"] .proxy-market-stats small,
html[data-theme="light"] .proxy-market-stats p {
  color: #5d5462;
}

html[data-theme="light"] .project-card,
html[data-theme="light"] .project-market-card,
html[data-theme="light"] .project-search,
html[data-theme="light"] .project-detail-rate,
html[data-theme="light"] .metric-guide-grid article,
html[data-theme="light"] .project-activity-empty,
html[data-theme="light"] .project-credit-row,
html[data-theme="light"] .connected-bank-card,
html[data-theme="light"] .bank-detail-grid > div,
html[data-theme="light"] .history-empty,
html[data-theme="light"] .proxy-capacity,
html[data-theme="light"] .proxy-access-info li,
html[data-theme="light"] .proxy-node-table tr {
  border-color: var(--light-border);
  background: var(--light-subtle);
}

html[data-theme="light"] .project-card:hover,
html[data-theme="light"] .project-market-card:hover,
html[data-theme="light"] .project-market-card.selected,
html[data-theme="light"] .proxy-profile-card:hover {
  border-color: rgba(116, 56, 230, 0.48);
  background-color: #f3eef8;
}

html[data-theme="light"] .project-tags span,
html[data-theme="light"] .project-market-tags i,
html[data-theme="light"] .project-skill-list span {
  border-color: var(--light-border-strong);
  background: rgba(255, 255, 255, 0.72);
  color: #514856;
}

html[data-theme="light"] .button-light,
html[data-theme="light"] .project-start-button,
html[data-theme="light"] .bank-primary,
html[data-theme="light"] .studio-submit-summary button,
html[data-theme="light"] .task-success-dialog > button {
  border-color: #221c26;
  background: linear-gradient(135deg, #2a222e, #17131a);
  color: #fff;
  box-shadow: 0 12px 26px rgba(36, 25, 42, 0.19);
}

html[data-theme="light"] .secondary-action,
html[data-theme="light"] .checklist-action {
  border-color: var(--light-border-strong);
  background: #ebe6ee;
  color: #302735;
}

html[data-theme="light"] .payment-liability-note {
  border-color: rgba(166, 70, 36, 0.34);
  background: #fff0e9;
}

html[data-theme="light"] .payment-liability-note strong {
  color: #71351f;
}

html[data-theme="light"] .payment-liability-note p {
  color: #694b40;
}

html[data-theme="light"] .active-proxy-banner {
  border-color: rgba(73, 111, 24, 0.26);
  background: linear-gradient(90deg, rgba(100, 151, 43, 0.13), rgba(116, 56, 230, 0.09));
}

html[data-theme="light"] .active-proxy-health strong,
html[data-theme="light"] .network-live,
html[data-theme="light"] .proxy-live-status {
  color: #3f6514;
}

html[data-theme="light"] .bank-search-field,
html[data-theme="light"] .selected-bank-summary,
html[data-theme="light"] .account-number-field,
html[data-theme="light"] .bank-confirmation,
html[data-theme="light"] .bank-result,
html[data-theme="light"] .proxy-option,
html[data-theme="light"] .payment-summary,
html[data-theme="light"] .mpesa-field,
html[data-theme="light"] .checkout-location-summary,
html[data-theme="light"] .professional-payment-method,
html[data-theme="light"] .professional-mpesa-field > div,
html[data-theme="light"] .checkout-trust,
html[data-theme="light"] .success-location-profile {
  border-color: var(--light-border-strong);
  background: var(--light-subtle);
}

html[data-theme="light"] .bank-search-field input,
html[data-theme="light"] .account-number-field input,
html[data-theme="light"] .professional-mpesa-field input,
html[data-theme="light"] .mpesa-field input,
html[data-theme="light"] .project-search input,
html[data-theme="light"] .sxs-justification textarea {
  color: var(--light-text);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #756c79;
  opacity: 1;
}

html[data-theme="light"] .bank-dialog,
html[data-theme="light"] .proxy-dialog,
html[data-theme="light"] .proxy-checkout-dialog,
html[data-theme="light"] .task-success-dialog,
html[data-theme="light"] .abandon-task-dialog {
  border-color: var(--light-border-strong);
  background:
    radial-gradient(circle at 92% 0, rgba(116, 56, 230, 0.13), transparent 31%),
    #fff;
  box-shadow: 0 38px 110px rgba(43, 29, 50, 0.3);
}

html[data-theme="light"] .bank-gate,
html[data-theme="light"] .proxy-gate,
html[data-theme="light"] .proxy-checkout,
html[data-theme="light"] .task-success-gate,
html[data-theme="light"] .abandon-task-gate {
  background: rgba(34, 27, 39, 0.6);
}

/* Evaluation studio */
html[data-theme="light"] .sxs-studio {
  color: var(--light-text);
  background:
    radial-gradient(circle at 72% 5%, rgba(116, 56, 230, 0.12), transparent 24%),
    #eeeae3;
}

html[data-theme="light"] .sxs-studio-header {
  border-color: var(--light-border);
  background: rgba(248, 246, 241, 0.95);
  box-shadow: 0 8px 28px rgba(44, 31, 51, 0.09);
}

html[data-theme="light"] .sxs-time-card,
html[data-theme="light"] .sxs-earned-card,
html[data-theme="light"] .studio-exit,
html[data-theme="light"] .sxs-prompt-card,
html[data-theme="light"] .sxs-response-card,
html[data-theme="light"] .sxs-evaluation-panel {
  border-color: var(--light-border);
  background: #fff;
  box-shadow: 0 12px 34px rgba(45, 31, 52, 0.09);
}

html[data-theme="light"] .response-card-heading,
html[data-theme="light"] .sxs-metric,
html[data-theme="light"] .sxs-justification,
html[data-theme="light"] .sxs-choice-row span,
html[data-theme="light"] .sxs-justification textarea,
html[data-theme="light"] .task-requirements {
  border-color: var(--light-border);
  background: var(--light-subtle);
}

html[data-theme="light"] .response-copy,
html[data-theme="light"] .response-copy strong,
html[data-theme="light"] .sxs-prompt-card h1,
html[data-theme="light"] .evaluation-panel-heading h2,
html[data-theme="light"] .sxs-metric legend strong,
html[data-theme="light"] .sxs-justification strong {
  color: #302735;
}

html[data-theme="light"] .task-requirements p,
html[data-theme="light"] .response-card-heading small,
html[data-theme="light"] .evaluation-panel-heading > p:last-child,
html[data-theme="light"] .sxs-metric legend small,
html[data-theme="light"] .sxs-justification small,
html[data-theme="light"] .studio-submit-note {
  color: #5b5260;
}

@media (max-width: 1024px) {
  html[data-theme="light"] .dashboard-sidebar,
  html[data-theme="light"] .dashboard-sidebar.open {
    border-color: var(--light-border-strong);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 52px rgba(45, 31, 52, 0.2), 0 5px 24px rgba(116, 56, 230, 0.09);
  }

  html[data-theme="light"] .dashboard-nav button.active {
    background: linear-gradient(145deg, rgba(116, 56, 230, 0.2), rgba(116, 56, 230, 0.1));
    color: #2e2038;
    box-shadow: inset 0 0 0 1px rgba(116, 56, 230, 0.24), 0 6px 16px rgba(116, 56, 230, 0.1);
  }

  html[data-theme="light"] .dashboard-nav button.active::after {
    background: #7438e6;
    box-shadow: 0 0 10px rgba(116, 56, 230, 0.38);
  }
}

/* Interface proportion and state audit */
[hidden] {
  display: none !important;
}

.dashboard-content {
  padding-top: 48px;
}

.projects-content,
.payments-content {
  padding-top: 46px;
}

.dashboard-welcome,
.projects-hero,
.payments-hero {
  margin-bottom: 28px;
}

.projects-panel {
  min-height: 390px;
}

.project-list.locked {
  min-height: 290px;
}

.project-empty,
.projects-locked-state,
.project-detail-empty,
.bank-empty {
  padding: 28px 22px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 0, rgba(140, 82, 255, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.018);
}

.project-empty > span,
.project-detail-empty > span,
.projects-locked-state > span {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  font-size: 0.76rem;
}

.project-empty h3,
.project-detail-empty h3,
.projects-locked-state h3 {
  margin-bottom: 7px;
  font-size: 0.98rem;
}

.project-empty p,
.project-detail-empty p,
.projects-locked-state p {
  max-width: 340px;
  font-size: 0.58rem;
  line-height: 1.58;
}

.project-catalogue-panel {
  min-height: 0;
}

.project-detail-panel {
  min-height: 0;
  padding: 23px;
}

.project-detail-empty {
  min-height: 280px;
}

.projects-locked-state {
  min-height: 280px;
}

.project-detail-top {
  margin-bottom: 20px;
}

.project-detail-panel h2 {
  font-size: 1.48rem;
}

.project-detail-copy {
  margin-bottom: 16px;
}

.project-detail-expectation {
  margin-bottom: 16px;
}

.project-catalogue-heading,
.panel-heading-row {
  margin-bottom: 17px;
}

.evaluation-guide {
  padding: 24px;
}

.metric-guide-grid article {
  min-height: 145px;
}

.metric-guide-grid article > span {
  margin-bottom: 18px;
}

.bank-method-panel {
  min-height: 340px;
}

.bank-empty {
  min-height: 240px;
}

.bank-empty-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  border-radius: 15px;
}

.bank-empty h3 {
  font-size: 1.18rem;
}

.bank-empty .button {
  margin-bottom: 18px;
}

.bank-success-step {
  min-height: 390px;
}

.centre-step {
  min-height: 390px;
}

.proxy-checkout-step.centre {
  min-height: 390px;
}

.verified-panel,
.verified-centre {
  min-height: 400px;
}

.project-activity-empty {
  min-height: 105px;
}

.history-empty {
  min-height: 112px;
}

html[data-theme="light"] .project-empty,
html[data-theme="light"] .projects-locked-state,
html[data-theme="light"] .project-detail-empty,
html[data-theme="light"] .bank-empty {
  border-color: #cfc6d3;
  background:
    radial-gradient(circle at 50% 0, rgba(116, 56, 230, 0.1), transparent 42%),
    #f7f4f8;
}

@media (max-width: 900px) {
  .dashboard-content,
  .projects-content,
  .payments-content,
  .proxy-marketplace-content {
    padding-top: 16px;
  }

  .dashboard-welcome,
  .projects-hero,
  .payments-hero {
    margin-bottom: 14px;
  }

  .projects-panel,
  .project-catalogue-panel,
  .project-detail-panel,
  .bank-method-panel {
    min-height: 0;
  }

  .project-list.locked {
    min-height: 230px;
  }

  .project-empty,
  .projects-locked-state,
  .project-detail-empty,
  .bank-empty {
    min-height: 210px;
    padding: 24px 18px;
  }

  .bank-success-step,
  .centre-step,
  .proxy-checkout-step.centre,
  .verified-panel,
  .verified-centre {
    min-height: 340px;
  }

  .evaluation-guide {
    padding: 19px;
  }

  .metric-guide-grid article {
    min-height: 138px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .work-card,
  .work-card-featured {
    min-height: auto;
  }

  .product-visual {
    min-height: 380px;
  }

  .system-visual,
  .direction-visual {
    min-height: 280px;
  }

  .studio-panel {
    min-height: auto;
  }

  .auth-card,
  .auth-screen {
    min-height: auto;
  }

  .auth-screen {
    padding-top: 38px;
    padding-bottom: 32px;
  }

  .project-empty,
  .projects-locked-state,
  .project-detail-empty,
  .bank-empty {
    min-height: 190px;
    padding: 22px 16px;
  }

  .project-list.locked {
    min-height: 210px;
  }

  .bank-success-step,
  .centre-step,
  .proxy-checkout-step.centre,
  .verified-panel,
  .verified-centre {
    min-height: 310px;
  }
}

/* Compact contributor workspace heroes */
.dashboard-content,
.projects-content,
.payments-content {
  padding-top: 32px;
}

.dashboard-welcome,
.projects-hero,
.payments-hero {
  position: relative;
  min-height: 0;
  margin-bottom: 18px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 91% 0, rgba(140, 82, 255, 0.14), transparent 34%),
    linear-gradient(145deg, #111013, #0c0c0e);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 14px 38px rgba(0, 0, 0, 0.14);
}

.dashboard-welcome::after,
.projects-hero::after,
.payments-hero::after {
  width: 118px;
  height: 118px;
  top: -54px;
  right: -38px;
}

.dashboard-welcome .eyebrow,
.projects-hero .eyebrow,
.payments-hero .eyebrow {
  margin-bottom: 10px;
  font-size: 0.57rem;
}

.dashboard-welcome h1,
.projects-hero h1,
.payments-hero h1 {
  max-width: 760px;
  margin-bottom: 9px;
  font-size: clamp(2.35rem, 3.7vw, 3.55rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.dashboard-welcome > div > p:last-child,
.projects-hero > div > p:last-child,
.payments-hero > div > p:last-child {
  max-width: 640px;
  font-size: 0.7rem;
  line-height: 1.55;
}

.dashboard-welcome > .button,
.projects-hero > .button,
.payments-hero > .button {
  width: auto;
  min-width: 190px;
  max-width: 220px;
  min-height: 46px;
  padding-inline: 20px;
  align-self: end;
  border-radius: 12px;
  font-size: 0.7rem;
  line-height: 1.25;
}

html[data-theme="light"] .dashboard-welcome,
html[data-theme="light"] .projects-hero,
html[data-theme="light"] .payments-hero {
  border-color: #d9d2df;
  background:
    radial-gradient(circle at 91% 0, rgba(116, 56, 230, 0.13), transparent 34%),
    linear-gradient(145deg, #ffffff, #f6f2f8);
  box-shadow: 0 12px 30px rgba(45, 31, 52, 0.075);
}

@media (max-width: 900px) {
  .dashboard-content,
  .projects-content,
  .payments-content,
  .proxy-marketplace-content {
    padding-top: 16px;
  }

  .dashboard-welcome,
  .projects-hero,
  .payments-hero {
    padding: 21px 22px;
    border-radius: 18px;
    grid-template-columns: minmax(0, 1fr) 176px;
    gap: 18px;
  }

  .dashboard-welcome h1,
  .projects-hero h1,
  .payments-hero h1 {
    max-width: 610px;
    margin-bottom: 8px;
    font-size: clamp(2rem, 4.8vw, 2.35rem);
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .dashboard-welcome > div > p:last-child,
  .projects-hero > div > p:last-child,
  .payments-hero > div > p:last-child {
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .dashboard-welcome > .button,
  .projects-hero > .button,
  .payments-hero > .button {
    width: 176px;
    min-width: 176px;
    max-width: 176px;
    min-height: 44px;
    padding-inline: 15px;
    font-size: 0.66rem;
  }
}

@media (max-width: 680px) {
  .dashboard-welcome,
  .projects-hero,
  .payments-hero {
    padding: 19px;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .dashboard-welcome .eyebrow,
  .projects-hero .eyebrow,
  .payments-hero .eyebrow {
    margin-bottom: 9px;
    font-size: 0.55rem;
  }

  .dashboard-welcome h1,
  .projects-hero h1,
  .payments-hero h1 {
    font-size: clamp(1.85rem, 7.8vw, 2.25rem);
  }

  .dashboard-welcome > .button,
  .projects-hero > .button,
  .payments-hero > .button {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .dashboard-welcome,
  .projects-hero,
  .payments-hero {
    padding: 17px;
    border-radius: 17px;
  }

  .dashboard-welcome h1,
  .projects-hero h1,
  .payments-hero h1 {
    font-size: clamp(1.75rem, 8.4vw, 2rem);
  }
}

/* Compact SxS evaluation controls */
.sxs-evaluation-panel {
  padding: 18px;
}

.evaluation-panel-heading {
  margin-bottom: 14px;
}

.sxs-metric {
  margin-bottom: 8px;
  padding: 10px;
}

.sxs-metric > legend.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.sxs-metric-layout {
  display: grid;
  gap: 9px;
}

.sxs-metric-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.sxs-metric-heading > span {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--purple-soft);
  background: rgba(140, 82, 255, 0.08);
  font-size: 0.41rem;
  font-weight: 700;
}

.sxs-metric-heading strong,
.sxs-metric-heading small {
  display: block;
}

.sxs-metric-heading strong {
  margin-bottom: 3px;
  color: #b9b5bd;
  font-size: 0.57rem;
}

.sxs-metric-heading small {
  color: #5e5b62;
  font-size: 0.43rem;
}

.sxs-choice-row label {
  min-height: 38px;
}

.sxs-justification {
  margin-bottom: 8px;
  padding: 11px;
}

.sxs-justification > span {
  margin-bottom: 9px;
}

.sxs-justification textarea {
  min-height: 102px;
  height: 102px;
  padding: 10px;
}

.evaluation-error {
  margin-bottom: 4px;
}

.studio-submit-summary {
  min-height: 46px;
}

.studio-submit-summary button {
  min-height: 44px;
}

html[data-theme="light"] .sxs-metric-heading strong {
  color: #302735;
}

html[data-theme="light"] .sxs-metric-heading small {
  color: #5b5260;
}

@media (min-width: 520px) and (max-width: 1024px) {
  .sxs-evaluation-panel {
    padding: 16px;
  }

  .sxs-metric {
    padding: 10px 12px;
  }

  .sxs-metric-layout {
    grid-template-columns: minmax(175px, 0.8fr) minmax(250px, 1.2fr);
    align-items: center;
    gap: 14px;
  }

  .sxs-choice-row label {
    min-height: 42px;
  }

  .sxs-justification textarea {
    min-height: 110px;
    height: 110px;
  }
}

@media (max-width: 519px) {
  .sxs-evaluation-panel {
    padding: 14px;
  }

  .evaluation-panel-heading {
    margin-bottom: 12px;
  }

  .evaluation-panel-heading h2 {
    font-size: 1.2rem;
  }

  .sxs-metric {
    padding: 9px;
    border-radius: 10px;
  }

  .sxs-metric-layout {
    gap: 8px;
  }

  .sxs-metric-heading > span {
    width: 23px;
    height: 23px;
  }

  .sxs-choice-row {
    gap: 4px;
  }

  .sxs-choice-row label {
    min-height: 40px;
  }

  .sxs-choice-row span {
    font-size: 0.48rem;
  }

  .sxs-justification {
    padding: 10px;
  }

  .sxs-justification textarea {
    min-height: 96px;
    height: 96px;
  }
}

/* Light-mode active-location contrast */
html[data-theme="light"] .active-proxy-banner {
  border-color: #aec593;
  background:
    linear-gradient(90deg, rgba(101, 151, 45, 0.16), rgba(116, 56, 230, 0.1)),
    #fbfaf8;
  box-shadow: 0 10px 28px rgba(45, 31, 52, 0.08), inset 0 1px rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .active-proxy-health strong {
  color: #294b0a;
}

html[data-theme="light"] .active-proxy-health small {
  color: #4f4654;
}

html[data-theme="light"] .active-proxy-health > i {
  background: #5f9126;
  box-shadow: 0 0 0 4px rgba(95, 145, 38, 0.13), 0 0 12px rgba(95, 145, 38, 0.36);
}

html[data-theme="light"] .active-proxy-banner > a {
  border: 1px solid #355d10;
  background: #3f6d15;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(63, 109, 21, 0.2);
  opacity: 1;
}

html[data-theme="light"] .active-proxy-banner > a:hover {
  background: #31580d;
  color: #ffffff;
}

html[data-theme="light"] .active-proxy-banner > a:focus-visible {
  outline: 3px solid rgba(63, 109, 21, 0.24);
  outline-offset: 3px;
}

/* Production SxS assessment studio */
.sxs-studio-main {
  grid-template-columns: minmax(0, 1fr) 440px;
}

.sxs-prompt-card {
  padding: 22px;
}

.sxs-task-context {
  margin: -4px 0 18px;
  padding: 11px 13px;
  border: 1px solid #242328;
  border-radius: 11px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: #111113;
}

.sxs-task-context > span + span {
  padding-left: 10px;
  border-left: 1px solid #29272c;
}

.sxs-task-context small,
.sxs-task-context strong {
  display: block;
}

.sxs-task-context small {
  margin-bottom: 5px;
  color: #5e5a63;
  font-size: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sxs-task-context strong {
  overflow: hidden;
  color: #bbb6c0;
  font-size: 0.5rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sxs-response-card {
  min-height: 330px;
}

.sxs-evaluation-panel {
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b3740 transparent;
}

.sxs-choice-row.four-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sxs-reporting-grid {
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.sxs-report-field,
.sxs-confidence {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #252428;
  border-radius: 11px;
  display: block;
  background: #111112;
}

.sxs-report-field > span,
.sxs-confidence legend {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  display: block;
}

.sxs-report-field strong,
.sxs-report-field small,
.sxs-confidence strong,
.sxs-confidence small {
  display: block;
}

.sxs-report-field strong,
.sxs-confidence strong {
  margin-bottom: 3px;
  color: #bbb6c0;
  font-size: 0.52rem;
}

.sxs-report-field small,
.sxs-confidence small {
  color: #5e5a63;
  font-size: 0.4rem;
}

.sxs-report-field select {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #2b292e;
  border-radius: 8px;
  outline: 0;
  background: #181719;
  color: #c8c3cc;
  font: inherit;
  font-size: 0.46rem;
}

.sxs-report-field select:focus {
  border-color: rgba(140, 82, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.08);
}

.sxs-confidence > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.sxs-confidence label {
  min-width: 0;
  min-height: 38px;
  position: relative;
  cursor: pointer;
}

.sxs-confidence input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sxs-confidence label > span {
  height: 100%;
  border: 1px solid #2b292e;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #77727c;
  background: #181719;
  font-size: 0.44rem;
}

.sxs-confidence input:checked + span {
  border-color: rgba(140, 82, 255, 0.52);
  color: #d7cbf7;
  background: rgba(140, 82, 255, 0.13);
}

.sxs-escalation {
  margin-bottom: 7px;
  display: block;
  cursor: pointer;
}

.sxs-escalation > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sxs-escalation > span {
  padding: 10px;
  border: 1px solid #28262b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #111112;
}

.sxs-escalation > span > i {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #f3a183;
  background: rgba(255, 130, 89, 0.09);
  font-size: 0.46rem;
  font-style: normal;
  font-weight: 800;
}

.sxs-escalation strong,
.sxs-escalation small {
  display: block;
}

.sxs-escalation strong {
  margin-bottom: 3px;
  color: #bcb7c0;
  font-size: 0.51rem;
}

.sxs-escalation small {
  color: #5e5a63;
  font-size: 0.4rem;
  line-height: 1.4;
}

.sxs-escalation > input:checked + span {
  border-color: rgba(255, 130, 89, 0.38);
  background: rgba(255, 130, 89, 0.055);
}

.sxs-report-field.has-error,
.sxs-confidence.has-error,
.sxs-escalation.has-error {
  border-color: rgba(255, 130, 89, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 130, 89, 0.06);
}

html[data-theme="light"] .sxs-task-context,
html[data-theme="light"] .sxs-report-field,
html[data-theme="light"] .sxs-confidence,
html[data-theme="light"] .sxs-escalation > span,
html[data-theme="light"] .sxs-report-field select,
html[data-theme="light"] .sxs-confidence label > span {
  border-color: var(--light-border);
  background: var(--light-subtle);
}

html[data-theme="light"] .sxs-task-context > span + span {
  border-color: var(--light-border);
}

html[data-theme="light"] .sxs-task-context strong,
html[data-theme="light"] .sxs-report-field strong,
html[data-theme="light"] .sxs-confidence strong,
html[data-theme="light"] .sxs-escalation strong,
html[data-theme="light"] .sxs-report-field select {
  color: #302735;
}

html[data-theme="light"] .sxs-task-context small,
html[data-theme="light"] .sxs-report-field small,
html[data-theme="light"] .sxs-confidence small,
html[data-theme="light"] .sxs-escalation small {
  color: #5b5260;
}

html[data-theme="light"] .sxs-confidence input:checked + span {
  border-color: #8252d5;
  color: #51239d;
  background: #e9defa;
}

@media (max-width: 1024px) {
  .sxs-studio-main {
    grid-template-columns: 1fr;
  }

  .sxs-evaluation-panel {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 700px) {
  .sxs-task-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sxs-task-context > span:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .sxs-reporting-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 519px) {
  .sxs-task-context {
    margin-bottom: 14px;
    padding: 9px;
  }

  .sxs-task-context strong {
    white-space: normal;
  }

  .sxs-choice-row.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sxs-report-field select,
  .sxs-confidence label {
    min-height: 42px;
  }
}

/* High-visibility task studio and embedded contributor handbook */
.evaluation-guide-download {
  width: fit-content;
  min-height: 42px;
  margin-top: 16px;
  padding: 0 14px;
  border: 1px solid rgba(135, 81, 255, 0.42);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(135, 81, 255, 0.1);
  color: #d9caff;
  font-size: 0.64rem;
  font-weight: 750;
  text-decoration: none;
}

.evaluation-guide-download span {
  font-size: 0.82rem;
}

html[data-theme="light"] .evaluation-guide-download {
  border-color: #8557d9;
  background: #ede4fb;
  color: #4f238f;
}

.sxs-studio {
  background:
    radial-gradient(circle at 68% 0, rgba(135, 81, 255, 0.16), transparent 28%),
    #09090d;
  color: #f8f6fb;
}

.sxs-studio-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
  background: rgba(12, 11, 16, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.sxs-studio-brand small,
.sxs-time-card small,
.sxs-earned-card small,
.studio-submit-summary small {
  color: #aca5b4;
  font-size: 0.58rem;
}

.sxs-studio-brand strong {
  color: #e2dce8;
  font-size: 0.68rem;
}

.sxs-time-card,
.sxs-earned-card {
  border-color: #3a3641;
  background: #17151c;
}

.sxs-time-card strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.sxs-earned-card span {
  color: #aaa2b1;
  font-size: 0.52rem;
}

.studio-header-actions {
  gap: 7px;
}

.studio-guidelines-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(135, 81, 255, 0.58);
  border-radius: 10px;
  background: rgba(135, 81, 255, 0.15);
  color: #e6dbff;
  font: inherit;
  font-size: 0.63rem;
  font-weight: 750;
  cursor: pointer;
}

.studio-guidelines-button > span {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  background: #8751ff;
  color: #fff;
}

.studio-abandon,
.studio-exit {
  border-color: #403b46;
  background: #18161d;
  color: #d6d0dc;
  font-size: 0.6rem;
}

.sxs-studio-main {
  width: min(1520px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 18px;
}

.sxs-prompt-card,
.sxs-response-card,
.sxs-evaluation-panel {
  border-color: #39353f;
  background: #121116;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}

.sxs-section-label small,
.response-card-heading small {
  color: #aaa3b0;
  font-size: 0.56rem;
}

.sxs-section-label strong,
.response-card-heading strong {
  color: #f0ebf4;
  font-size: 0.7rem;
}

.sxs-section-label > i {
  border: 1px solid #3a3641;
  color: #d3ccd8;
  background: #1b1920;
  font-size: 0.56rem;
}

.sxs-task-context {
  border-color: #3b3742;
  background: #19171e;
}

.sxs-task-context > span + span {
  border-left-color: #403b46;
}

.sxs-task-context small {
  color: #a8a0af;
  font-size: 0.53rem;
}

.sxs-task-context strong {
  color: #eee9f2;
  font-size: 0.65rem;
}

.sxs-inline-guide {
  width: 100%;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(135, 81, 255, 0.42);
  border-radius: 11px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(135, 81, 255, 0.15), rgba(135, 81, 255, 0.055));
  color: #f3edff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.sxs-inline-guide > span {
  padding: 5px 7px;
  border-radius: 7px;
  background: #8751ff;
  color: #fff;
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sxs-inline-guide > strong {
  overflow: hidden;
  color: #e9e2ef;
  font-size: 0.66rem;
  font-weight: 620;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sxs-inline-guide > i {
  color: #d9caff;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 750;
}

.sxs-prompt-card h1 {
  color: #ffffff;
  font-size: clamp(1.45rem, 2.25vw, 2.15rem);
  line-height: 1.24;
}

.task-requirements {
  border-color: rgba(135, 81, 255, 0.38);
  background: rgba(135, 81, 255, 0.1);
}

.task-requirements strong {
  color: #d7c5ff;
  font-size: 0.61rem;
}

.task-requirements p {
  color: #d3cdd8;
  font-size: 0.7rem;
  line-height: 1.65;
}

.response-card-heading {
  border-bottom-color: #39353f;
  background: #19171e;
}

.response-copy {
  color: #e4dfe8;
  font-size: 0.84rem;
  line-height: 1.72;
}

.response-copy strong {
  color: #ffffff;
}

.sxs-evaluation-panel {
  scrollbar-color: #72677c #17151c;
}

.evaluation-panel-heading h2 {
  color: #ffffff;
  font-size: 1.55rem;
}

.evaluation-panel-heading > p:last-child {
  color: #bab3c1;
  font-size: 0.65rem;
  line-height: 1.5;
}

.sxs-metric,
.sxs-report-field,
.sxs-confidence,
.sxs-justification,
.sxs-escalation > span {
  border-color: #3b3742;
  background: #19171e;
}

.sxs-metric-heading strong,
.sxs-report-field strong,
.sxs-confidence strong,
.sxs-justification strong,
.sxs-escalation strong {
  color: #f3eef6;
  font-size: 0.67rem;
}

.sxs-metric-heading small,
.sxs-report-field small,
.sxs-confidence small,
.sxs-justification small,
.sxs-escalation small,
.sxs-justification em {
  color: #aea6b5;
  font-size: 0.55rem;
}

.sxs-metric-heading > span,
.sxs-justification > span > i {
  color: #e4d9ff;
  background: rgba(135, 81, 255, 0.22);
}

.sxs-choice-row label,
.sxs-confidence label {
  min-height: 43px;
}

.sxs-choice-row span,
.sxs-confidence label > span,
.sxs-report-field select,
.sxs-justification textarea {
  border-color: #48424f;
  background: #211e26;
  color: #e8e2ec;
}

.sxs-choice-row span,
.sxs-confidence label > span {
  font-size: 0.61rem;
  font-weight: 650;
}

.sxs-choice-row input:checked + span,
.sxs-confidence input:checked + span {
  border-color: #9c72ff;
  background: rgba(135, 81, 255, 0.28);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sxs-report-field select {
  height: 44px;
  font-size: 0.61rem;
}

.sxs-justification textarea {
  min-height: 140px;
  font-size: 0.69rem;
  line-height: 1.6;
}

.sxs-justification textarea::placeholder {
  color: #8e8694;
}

.studio-submit-note {
  color: #9e97a5;
  font-size: 0.54rem;
}

.studio-submit-summary button {
  min-height: 52px;
  background: #f7f4fa;
  color: #17131b;
  font-size: 0.67rem;
}

.studio-guidelines-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(3, 3, 6, 0.84);
  backdrop-filter: blur(18px);
}

.studio-guidelines-layer[hidden] {
  display: none;
}

.studio-guidelines-dialog {
  width: min(1480px, 100%);
  height: min(900px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid #45404b;
  border-radius: 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #111015;
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.72);
}

.studio-guidelines-heading {
  min-height: 86px;
  padding: 15px 18px 15px 22px;
  border-bottom: 1px solid #3a3640;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #19171e;
}

.studio-guidelines-heading > div:first-child > span {
  color: #b99dff;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.studio-guidelines-heading h2 {
  margin: 4px 0 3px;
  color: #fff;
  font-size: 1.28rem;
}

.studio-guidelines-heading p {
  margin: 0;
  color: #aaa2b1;
  font-size: 0.61rem;
}

.studio-guidelines-heading > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-guidelines-heading a,
.studio-guidelines-heading button,
.guideline-open-document {
  min-height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.studio-guidelines-heading a {
  padding: 0 14px;
  border: 1px solid rgba(135, 81, 255, 0.5);
  background: rgba(135, 81, 255, 0.16);
  color: #e7dcff;
}

.studio-guidelines-heading button {
  width: 42px;
  border: 1px solid #49434f;
  background: #221f27;
  color: #fff;
  font-size: 1rem;
}

.studio-guidelines-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
}

.studio-guidelines-quick {
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  border-right: 1px solid #39353f;
  background: #141218;
}

.guideline-domain-badge {
  padding: 6px 8px;
  border-radius: 7px;
  display: inline-block;
  background: #8751ff;
  color: #fff;
  font-size: 0.54rem;
  font-weight: 800;
}

.studio-guidelines-quick h3 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.studio-guidelines-quick > p {
  margin: 0 0 20px;
  color: #bab3c0;
  font-size: 0.69rem;
  line-height: 1.6;
}

.guideline-quick-section > span,
.guideline-evidence-card > span,
.guideline-warning-card > span {
  color: #a98aff;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guideline-quick-section ol {
  margin: 11px 0 18px;
  padding-left: 20px;
  color: #e0dae5;
  font-size: 0.68rem;
  line-height: 1.55;
}

.guideline-quick-section li + li {
  margin-top: 8px;
}

.guideline-evidence-card,
.guideline-warning-card {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #3b3742;
  border-radius: 11px;
  background: #1b1820;
}

.guideline-warning-card {
  border-color: rgba(226, 124, 78, 0.36);
  background: rgba(226, 124, 78, 0.07);
}

.guideline-evidence-card p,
.guideline-warning-card p {
  margin: 7px 0 0;
  color: #d5ceda;
  font-size: 0.65rem;
  line-height: 1.55;
}

.guideline-open-document {
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: #f4f0f7;
  color: #17131b;
}

.guideline-open-document span {
  margin-left: 8px;
}

.studio-guidelines-document {
  min-width: 0;
  min-height: 0;
  padding: 10px;
  background: #27232d;
}

.studio-guidelines-document iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

html[data-theme="light"] .sxs-studio {
  background:
    radial-gradient(circle at 68% 0, rgba(105, 55, 213, 0.13), transparent 28%),
    #e9e5ed;
  color: #1e1724;
}

html[data-theme="light"] .sxs-studio-header {
  border-bottom-color: #c9c1d0;
  background: rgba(250, 248, 252, 0.97);
}

html[data-theme="light"] .sxs-prompt-card,
html[data-theme="light"] .sxs-response-card,
html[data-theme="light"] .sxs-evaluation-panel {
  border-color: #c8c0ce;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(50, 37, 61, 0.11);
}

html[data-theme="light"] .sxs-task-context,
html[data-theme="light"] .response-card-heading,
html[data-theme="light"] .sxs-metric,
html[data-theme="light"] .sxs-report-field,
html[data-theme="light"] .sxs-confidence,
html[data-theme="light"] .sxs-justification,
html[data-theme="light"] .sxs-escalation > span {
  border-color: #cec6d4;
  background: #f3f0f6;
}

html[data-theme="light"] .sxs-prompt-card h1,
html[data-theme="light"] .response-copy,
html[data-theme="light"] .response-copy strong,
html[data-theme="light"] .response-card-heading strong,
html[data-theme="light"] .evaluation-panel-heading h2,
html[data-theme="light"] .sxs-metric-heading strong,
html[data-theme="light"] .sxs-report-field strong,
html[data-theme="light"] .sxs-confidence strong,
html[data-theme="light"] .sxs-justification strong,
html[data-theme="light"] .sxs-escalation strong,
html[data-theme="light"] .sxs-task-context strong {
  color: #241b2b;
}

html[data-theme="light"] .sxs-task-context small,
html[data-theme="light"] .sxs-section-label small,
html[data-theme="light"] .response-card-heading small,
html[data-theme="light"] .evaluation-panel-heading > p:last-child,
html[data-theme="light"] .sxs-metric-heading small,
html[data-theme="light"] .sxs-report-field small,
html[data-theme="light"] .sxs-confidence small,
html[data-theme="light"] .sxs-justification small,
html[data-theme="light"] .sxs-escalation small,
html[data-theme="light"] .studio-submit-note {
  color: #5e5365;
}

html[data-theme="light"] .task-requirements {
  border-color: #bba7e5;
  background: #eee7fb;
}

html[data-theme="light"] .task-requirements p {
  color: #44364d;
}

html[data-theme="light"] .sxs-choice-row span,
html[data-theme="light"] .sxs-confidence label > span,
html[data-theme="light"] .sxs-report-field select,
html[data-theme="light"] .sxs-justification textarea {
  border-color: #c4bbc9;
  background: #ffffff;
  color: #2d2234;
}

html[data-theme="light"] .sxs-inline-guide {
  border-color: #9c78e4;
  background: linear-gradient(90deg, #eee6fd, #faf8fd);
}

html[data-theme="light"] .sxs-inline-guide > strong {
  color: #342640;
}

html[data-theme="light"] .sxs-inline-guide > i {
  color: #5b2bc6;
}

html[data-theme="light"] .studio-guidelines-button {
  border-color: #7b4fd2;
  background: #ede4fb;
  color: #4f238f;
}

html[data-theme="light"] .studio-guidelines-layer {
  background: rgba(34, 25, 43, 0.66);
}

html[data-theme="light"] .studio-guidelines-dialog,
html[data-theme="light"] .studio-guidelines-heading,
html[data-theme="light"] .studio-guidelines-quick {
  border-color: #c8c0ce;
  background: #fbfafc;
}

html[data-theme="light"] .studio-guidelines-heading h2,
html[data-theme="light"] .studio-guidelines-quick h3 {
  color: #241b2b;
}

html[data-theme="light"] .studio-guidelines-heading p,
html[data-theme="light"] .studio-guidelines-quick > p,
html[data-theme="light"] .guideline-quick-section ol {
  color: #5d5364;
}

html[data-theme="light"] .guideline-evidence-card,
html[data-theme="light"] .guideline-warning-card {
  border-color: #c8c0ce;
  background: #f1edf5;
}

html[data-theme="light"] .guideline-evidence-card p,
html[data-theme="light"] .guideline-warning-card p {
  color: #44384c;
}

@media (max-width: 1180px) {
  .sxs-studio-main {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .studio-guidelines-body {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .sxs-studio-main {
    grid-template-columns: 1fr;
  }

  .studio-guidelines-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .studio-guidelines-quick {
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #39353f;
  }

  .studio-guidelines-document {
    min-height: 72vh;
  }
}

@media (max-width: 700px) {
  .sxs-studio-header {
    padding: 9px 12px;
  }

  .studio-guidelines-button {
    min-width: 42px;
    padding: 0 10px;
    font-size: 0;
  }

  .studio-guidelines-button > span {
    margin: 0;
    font-size: 0.65rem;
  }

  .sxs-inline-guide {
    grid-template-columns: auto 1fr;
  }

  .sxs-inline-guide > strong {
    white-space: normal;
  }

  .sxs-inline-guide > i {
    display: none;
  }

  .studio-guidelines-layer {
    padding: 0;
  }

  .studio-guidelines-dialog {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  .studio-guidelines-heading {
    min-height: 76px;
    padding: 12px;
  }

  .studio-guidelines-heading h2 {
    font-size: 1rem;
  }

  .studio-guidelines-heading p {
    display: none;
  }

  .studio-guidelines-heading a {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .studio-guidelines-heading a span {
    font-size: 0.9rem;
  }

  .studio-guidelines-quick {
    padding: 18px;
  }

  .studio-guidelines-document {
    min-height: 76vh;
    padding: 6px;
  }
}

/* First-time contributor platform guide */
.tour-replay-button {
  min-width: 84px;
  height: 42px;
  padding: 0 14px 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #e9e3ef;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tour-replay-button:hover {
  border-color: rgba(178, 139, 255, 0.34);
  background: rgba(140, 82, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.tour-replay-button > span {
  width: 25px;
  height: 25px;
  border: 1px solid rgba(185, 149, 255, 0.28);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(151, 93, 255, 0.26), rgba(116, 56, 230, 0.12));
  color: #cdb4ff;
  font-size: 0.67rem;
  font-weight: 850;
}

.tour-replay-button > b {
  font-size: 0.61rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.platform-tour {
  position: fixed;
  z-index: 2400;
  inset: 0;
  font-family: inherit;
  isolation: isolate;
}

.platform-tour__backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: transparent;
  cursor: default;
  transition: background 260ms ease;
}

.platform-tour.is-intro .platform-tour__backdrop {
  background:
    radial-gradient(circle at 50% 42%, rgba(140, 82, 255, 0.16), transparent 34%),
    rgba(4, 3, 6, 0.82);
  backdrop-filter: blur(7px) saturate(80%);
  -webkit-backdrop-filter: blur(7px) saturate(80%);
}

.platform-tour__spotlight {
  position: fixed;
  z-index: 1;
  border: 1px solid rgba(205, 180, 255, 0.76);
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 0 0 200vmax rgba(4, 3, 6, 0.78),
    0 0 0 5px rgba(140, 82, 255, 0.14),
    0 0 36px rgba(162, 111, 255, 0.35);
  transition: left 260ms cubic-bezier(.2, .8, .2, 1), top 260ms cubic-bezier(.2, .8, .2, 1), width 260ms cubic-bezier(.2, .8, .2, 1), height 260ms cubic-bezier(.2, .8, .2, 1), opacity 160ms ease;
}

.platform-tour__spotlight.is-visible {
  opacity: 1;
}

.platform-tour__card {
  position: fixed;
  z-index: 2;
  width: min(430px, calc(100vw - 36px));
  padding: 22px;
  border: 1px solid rgba(206, 183, 255, 0.2);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(145, 87, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(28, 25, 33, 0.99), rgba(12, 11, 15, 0.995));
  color: #fff;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(138, 82, 250, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.07);
  opacity: 0;
  outline: none;
  transform: translateY(10px) scale(0.985);
  transition: opacity 200ms ease, transform 280ms cubic-bezier(.2, .8, .2, 1);
}

.platform-tour.is-open .platform-tour__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.platform-tour__card.is-centered {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -47%) scale(0.985);
}

.platform-tour.is-open .platform-tour__card.is-centered {
  transform: translate(-50%, -50%) scale(1);
}

.platform-tour__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 170, 255, 0.7), transparent);
}

.platform-tour__header,
.platform-tour__progress-row,
.platform-tour__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-tour__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-tour__brand > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 194, 255, 0.28);
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #a56cff, #7132dc);
  box-shadow: 0 9px 25px rgba(126, 62, 235, 0.32), inset 0 1px rgba(255, 255, 255, 0.34);
  font-size: 0.67rem;
  font-weight: 900;
}

.platform-tour__brand div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.platform-tour__brand small,
.platform-tour__brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-tour__brand small {
  color: #a89fac;
  font-size: 0.51rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-tour__brand strong {
  color: #f8f5fb;
  font-size: 0.64rem;
  font-weight: 760;
}

.platform-tour__skip {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #bbb3c0;
  font: inherit;
  font-size: 0.56rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.platform-tour__skip:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.platform-tour__progress-row {
  margin-top: 20px;
}

.platform-tour__progress-row > span {
  flex: 0 0 auto;
  color: #aaa2ae;
  font-size: 0.51rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-tour__progress {
  width: 116px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.platform-tour__progress i {
  width: 0;
  height: 100%;
  border-radius: inherit;
  display: block;
  background: linear-gradient(90deg, #8243ef, #c6a6ff);
  box-shadow: 0 0 16px rgba(178, 138, 255, 0.45);
  transition: width 280ms cubic-bezier(.2, .8, .2, 1);
}

.platform-tour__content {
  padding: 27px 2px 26px;
}

.platform-tour__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 19px;
  border: 1px solid rgba(192, 158, 255, 0.25);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(150, 91, 255, 0.2), rgba(112, 49, 224, 0.08));
  color: #c9aaff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(103, 49, 194, 0.14);
  font-size: 0.94rem;
}

.platform-tour__eyebrow {
  margin-bottom: 8px;
  color: #b88dff;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-tour__content h2 {
  max-width: 355px;
  margin: 0 0 11px;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.78rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.platform-tour__content > p:last-child {
  max-width: 370px;
  margin: 0;
  color: #bdb5c2;
  font-size: 0.65rem;
  line-height: 1.7;
}

.platform-tour__actions {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.platform-tour__back,
.platform-tour__next {
  min-height: 44px;
  border-radius: 13px;
  font: inherit;
  font-size: 0.61rem;
  font-weight: 790;
  cursor: pointer;
}

.platform-tour__back {
  min-width: 82px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: #d6ceda;
}

.platform-tour__back:disabled {
  opacity: 0.42;
  cursor: default;
}

.platform-tour__next {
  min-width: 132px;
  padding: 0 13px 0 17px;
  border: 1px solid rgba(222, 205, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #9a61fa, #7132dc);
  color: #fff;
  box-shadow: 0 12px 28px rgba(108, 46, 220, 0.31), inset 0 1px rgba(255, 255, 255, 0.27);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.platform-tour__next:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(108, 46, 220, 0.39), inset 0 1px rgba(255, 255, 255, 0.27);
}

.platform-tour__next i {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.67rem;
  font-style: normal;
}

html[data-theme="light"] .tour-replay-button {
  border-color: rgba(54, 39, 63, 0.14);
  background: rgba(255, 255, 255, 0.76);
  color: #372d3d;
  box-shadow: 0 7px 22px rgba(45, 30, 55, 0.06), inset 0 1px #fff;
}

html[data-theme="light"] .tour-replay-button:hover {
  border-color: rgba(116, 56, 230, 0.28);
  background: #fff;
  color: #241b29;
}

html[data-theme="light"] .tour-replay-button > span {
  border-color: rgba(116, 56, 230, 0.2);
  background: rgba(116, 56, 230, 0.09);
  color: #7132dc;
}

html[data-theme="light"] .platform-tour__card {
  border-color: rgba(70, 45, 82, 0.15);
  background:
    radial-gradient(circle at 100% 0, rgba(126, 64, 237, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.995), rgba(246, 242, 248, 0.995));
  color: #241b29;
  box-shadow: 0 30px 90px rgba(38, 24, 48, 0.28), 0 0 0 1px rgba(116, 56, 230, 0.06), inset 0 1px #fff;
}

html[data-theme="light"] .platform-tour__brand small,
html[data-theme="light"] .platform-tour__progress-row > span {
  color: #756a7a;
}

html[data-theme="light"] .platform-tour__brand strong,
html[data-theme="light"] .platform-tour__content h2 {
  color: #241b29;
}

html[data-theme="light"] .platform-tour__skip,
html[data-theme="light"] .platform-tour__back {
  border-color: rgba(54, 39, 63, 0.13);
  background: rgba(65, 43, 74, 0.045);
  color: #5f5464;
}

html[data-theme="light"] .platform-tour__skip:hover,
html[data-theme="light"] .platform-tour__back:hover {
  border-color: rgba(54, 39, 63, 0.22);
  background: rgba(65, 43, 74, 0.08);
  color: #241b29;
}

html[data-theme="light"] .platform-tour__progress {
  background: rgba(49, 31, 57, 0.1);
}

html[data-theme="light"] .platform-tour__content > p:last-child {
  color: #615665;
}

html[data-theme="light"] .platform-tour__actions {
  border-top-color: rgba(49, 31, 57, 0.1);
}

@media (max-width: 900px) {
  .tour-replay-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 4px;
    border-radius: 12px;
  }

  .tour-replay-button > span {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 9px;
  }

  .tour-replay-button > b {
    display: none;
  }
}

@media (max-width: 720px) {
  .platform-tour__spotlight {
    border-radius: 16px;
    box-shadow:
      0 0 0 200vmax rgba(4, 3, 6, 0.76),
      0 0 0 4px rgba(140, 82, 255, 0.12),
      0 0 26px rgba(162, 111, 255, 0.28);
  }

  .platform-tour__card,
  .platform-tour__card.is-centered {
    top: auto !important;
    right: 12px !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    width: auto;
    max-height: calc(100dvh - 126px - env(safe-area-inset-bottom));
    padding: 18px;
    border-radius: 21px;
    overflow-y: auto;
    transform: translateY(12px) scale(0.99);
  }

  .platform-tour__card.is-mobile-top {
    top: calc(74px + env(safe-area-inset-top)) !important;
    bottom: auto !important;
    max-height: calc(100dvh - 166px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .platform-tour__card.is-centered {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-47%) scale(0.99);
  }

  .platform-tour.is-open .platform-tour__card {
    transform: translateY(0) scale(1);
  }

  .platform-tour.is-open .platform-tour__card.is-centered {
    transform: translateY(-50%) scale(1);
  }

  .platform-tour__progress-row {
    margin-top: 16px;
  }

  .platform-tour__content {
    padding: 20px 1px;
  }

  .platform-tour__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
    border-radius: 14px;
  }

  .platform-tour__content h2 {
    max-width: 310px;
    font-size: clamp(1.28rem, 7vw, 1.55rem);
  }

  .platform-tour__content > p:last-child {
    font-size: 0.62rem;
    line-height: 1.6;
  }
}

@media (max-width: 430px) {
  .tour-replay-button {
    width: 35px;
    min-width: 35px;
    height: 35px;
    min-height: 35px;
  }

  .tour-replay-button > span {
    width: 26px;
    height: 26px;
  }

  .platform-tour__card,
  .platform-tour__card.is-centered {
    right: 9px !important;
    left: 9px !important;
    padding: 16px;
    border-radius: 19px;
  }

  .platform-tour__brand strong {
    max-width: 132px;
  }

  .platform-tour__progress {
    width: 88px;
  }

  .platform-tour__actions {
    gap: 8px;
  }

  .platform-tour__back {
    min-width: 74px;
    padding-inline: 12px;
  }

  .platform-tour__next {
    min-width: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-tour__card,
  .platform-tour__spotlight,
  .platform-tour__progress i,
  .tour-replay-button,
  .platform-tour__next {
    transition: none !important;
  }
}

/* Intentional loading feedback for meaningful operations */
button.is-loading,
a.is-loading {
  cursor: progress !important;
  pointer-events: none;
}

form.is-processing {
  pointer-events: none;
}

.button-loading-content {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: inherit;
  white-space: nowrap;
}

.button-loading-spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1.8px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: block;
  opacity: 0.82;
  animation: odessy-button-spin 680ms linear infinite;
}

.operation-loader {
  position: fixed;
  z-index: 6000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  isolation: isolate;
  transition: opacity 180ms ease;
}

.operation-loader.is-visible {
  opacity: 1;
}

.operation-loader__backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(137, 76, 248, 0.15), transparent 32%),
    rgba(5, 4, 7, 0.82);
  backdrop-filter: blur(10px) saturate(82%);
  -webkit-backdrop-filter: blur(10px) saturate(82%);
}

.operation-loader__card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  padding: 31px;
  border: 1px solid rgba(205, 178, 255, 0.2);
  border-radius: 27px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(149, 89, 255, 0.19), transparent 34%),
    linear-gradient(145deg, rgba(28, 25, 33, 0.99), rgba(11, 10, 14, 0.995));
  color: #fff;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.07);
  text-align: center;
  transform: translateY(10px) scale(0.985);
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.operation-loader.is-visible .operation-loader__card {
  transform: translateY(0) scale(1);
}

.operation-loader__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 42px;
  right: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 188, 255, 0.78), transparent);
}

.operation-loader__visual {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
}

.operation-loader__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(183, 142, 255, 0.24);
  border-radius: 50%;
  animation: odessy-operation-orbit 2.2s linear infinite;
}

.operation-loader__orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ba93ff;
  box-shadow: 0 0 17px rgba(186, 147, 255, 0.92);
}

.operation-loader__orbit.orbit-two {
  inset: 10px;
  border-color: rgba(103, 207, 255, 0.18);
  animation-duration: 1.55s;
  animation-direction: reverse;
}

.operation-loader__orbit.orbit-two::after {
  background: #79d5ff;
  box-shadow: 0 0 14px rgba(121, 213, 255, 0.78);
}

.operation-loader__mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(224, 207, 255, 0.3);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #a66cff, #6f32d9);
  color: #fff;
  box-shadow: 0 13px 32px rgba(110, 49, 218, 0.4), inset 0 1px rgba(255, 255, 255, 0.32);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.operation-loader__eyebrow {
  margin: 0 0 9px;
  color: #b991ff;
  font-size: 0.53rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.operation-loader__card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.42rem, 4vw, 1.9rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.operation-loader__card > p:not(.operation-loader__eyebrow) {
  max-width: 405px;
  margin: 0 auto;
  color: #bdb5c2;
  font-size: 0.63rem;
  line-height: 1.68;
}

.operation-loader__progress {
  height: 5px;
  margin: 25px 0 19px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
}

.operation-loader__progress i {
  width: 0;
  height: 100%;
  border-radius: inherit;
  display: block;
  background: linear-gradient(90deg, #8241ee, #b98dff 60%, #77d4ff);
  box-shadow: 0 0 18px rgba(176, 132, 255, 0.45);
  transition-property: width;
  transition-timing-function: cubic-bezier(.2, .75, .25, 1);
}

.operation-loader__steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}

.operation-loader__steps li {
  min-width: 0;
  min-height: 62px;
  padding: 10px 7px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #89818e;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.operation-loader__steps li > i {
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #9b92a1;
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 820;
}

.operation-loader__steps li > span {
  overflow: hidden;
  font-size: 0.49rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.operation-loader__steps li.active {
  border-color: rgba(175, 128, 255, 0.32);
  background: rgba(140, 82, 255, 0.1);
  color: #f1eafb;
  transform: translateY(-2px);
}

.operation-loader__steps li.active > i {
  border-color: rgba(186, 147, 255, 0.36);
  color: #c9abff;
  box-shadow: 0 0 14px rgba(145, 81, 255, 0.2);
}

.operation-loader__steps li.complete {
  border-color: rgba(78, 205, 145, 0.2);
  color: #b8dccb;
}

.operation-loader__steps li.complete > i {
  border-color: rgba(78, 205, 145, 0.28);
  background: rgba(78, 205, 145, 0.1);
  color: #6cdfa7;
}

.operation-loader__steps li.complete .ui-icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.3;
}

.operation-loader__status {
  min-height: 16px;
  margin-top: 14px;
  display: block;
  color: #8d8492;
  font-size: 0.48rem;
  font-weight: 680;
  letter-spacing: 0.03em;
}

html[data-theme="light"] .operation-loader__backdrop {
  background:
    radial-gradient(circle at 50% 40%, rgba(116, 56, 230, 0.13), transparent 33%),
    rgba(239, 235, 241, 0.78);
}

html[data-theme="light"] .operation-loader__card {
  border-color: rgba(69, 44, 80, 0.15);
  background:
    radial-gradient(circle at 100% 0, rgba(126, 64, 237, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.995), rgba(246, 242, 248, 0.995));
  color: #241b29;
  box-shadow: 0 36px 100px rgba(40, 25, 49, 0.25), inset 0 1px #fff;
}

html[data-theme="light"] .operation-loader__card h2 {
  color: #241b29;
}

html[data-theme="light"] .operation-loader__card > p:not(.operation-loader__eyebrow) {
  color: #625665;
}

html[data-theme="light"] .operation-loader__progress {
  background: rgba(54, 35, 62, 0.1);
}

html[data-theme="light"] .operation-loader__steps li {
  border-color: rgba(55, 38, 64, 0.1);
  background: rgba(63, 42, 73, 0.035);
  color: #756a79;
}

html[data-theme="light"] .operation-loader__steps li.active {
  border-color: rgba(116, 56, 230, 0.24);
  background: rgba(116, 56, 230, 0.075);
  color: #392b40;
}

@keyframes odessy-button-spin {
  to { transform: rotate(360deg); }
}

@keyframes odessy-operation-orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
  .button-loading-content {
    font-size: 0.92em;
  }

  .operation-loader {
    padding: 12px;
  }

  .operation-loader__card {
    width: 100%;
    padding: 25px 18px 21px;
    border-radius: 23px;
  }

  .operation-loader__visual {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .operation-loader__mark {
    width: 39px;
    height: 39px;
    border-radius: 13px;
  }

  .operation-loader__steps {
    gap: 5px;
  }

  .operation-loader__steps li {
    min-height: 58px;
    padding-inline: 4px;
  }

  .operation-loader__steps li > span {
    font-size: 0.44rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-loading-spinner,
  .operation-loader__orbit {
    animation: none !important;
  }

  .operation-loader,
  .operation-loader__card,
  .operation-loader__progress i,
  .operation-loader__steps li {
    transition: none !important;
  }
}

/* Final cascade: contributor pay and task actions */

.project-market-card {
  grid-template-columns: 42px minmax(0, 1fr) 126px 18px;
}

.project-market-rate {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(167, 211, 111, 0.22);
  border-radius: 12px;
  background: radial-gradient(circle at 100% 0, rgba(167, 211, 111, 0.12), transparent 48%), rgba(167, 211, 111, 0.055);
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.project-market-rate small,
.project-market-rate strong,
.project-market-rate i {
  display: block;
}

.project-market-rate small {
  color: #a9c989;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-market-rate strong {
  margin: 5px 0 4px;
  color: #f5f8f0;
  font-size: 1.08rem;
  font-weight: 820;
  letter-spacing: -0.045em;
  line-height: 1;
}

.project-market-rate strong em {
  margin-left: 3px;
  color: #a9c989;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0;
}

.project-market-rate > i {
  color: #8b9481;
  font-size: 0.44rem;
}

.active-project-card-footer .active-project-pay {
  padding: 8px 10px;
  border: 1px solid rgba(167, 211, 111, 0.2);
  border-radius: 10px;
  background: rgba(167, 211, 111, 0.06);
}

.active-project-card-footer .active-project-pay small {
  color: #9dc27a;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.active-project-card-footer .active-project-pay strong {
  color: #eef6e7;
  font-size: 0.72rem;
}

.active-project-card-footer .active-project-pay strong i {
  margin-left: 2px;
  color: #9dc27a;
  font-size: 0.46rem;
  font-style: normal;
}

.project-detail-rate {
  padding: 7px;
  align-items: center;
  background: #101012;
}

.project-detail-pay {
  padding: 11px 12px;
  border: 1px solid rgba(167, 211, 111, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(167, 211, 111, 0.11), rgba(167, 211, 111, 0.035));
}

.project-detail-rate .project-detail-pay small {
  color: #9dc27a;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-detail-rate .project-detail-pay strong {
  margin-bottom: 5px;
  color: #f0f6e9;
  font-size: 1.05rem;
  letter-spacing: -0.035em;
}

.project-detail-pay > span {
  display: block;
  color: #7e8875;
  font-size: 0.43rem;
  line-height: 1.35;
}

.studio-header-actions > button {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 0.57rem;
  font-weight: 730;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.studio-header-actions > button:hover,
.studio-header-actions > button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.studio-header-actions > button > span {
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.66rem;
}

.studio-header-actions > button > span svg {
  width: 12px;
  height: 12px;
}

.studio-header-actions > button > b {
  font-weight: inherit;
}

.studio-skip {
  border: 1px solid rgba(135, 81, 255, 0.42);
  background: rgba(135, 81, 255, 0.09);
  color: #d8c8ff;
}

.studio-skip > span {
  background: rgba(135, 81, 255, 0.2);
  color: #b89aff;
}

.studio-report {
  border: 1px solid rgba(244, 177, 91, 0.38);
  background: rgba(244, 177, 91, 0.075);
  color: #f3d2a4;
}

.studio-report > span {
  background: rgba(244, 177, 91, 0.15);
  color: #f4b15b;
}

.studio-abandon,
.studio-exit {
  border-color: #403b46;
  background: #18161d;
  color: #d6d0dc;
}

.studio-abandon > span,
.studio-exit > span {
  margin: 0;
  background: rgba(255, 255, 255, 0.055);
  color: #c9c1cd;
}

html[data-theme="light"] .project-market-rate {
  border-color: rgba(78, 123, 40, 0.26);
  background: linear-gradient(135deg, rgba(126, 177, 79, 0.16), rgba(126, 177, 79, 0.06));
}

html[data-theme="light"] .project-market-rate small,
html[data-theme="light"] .project-market-rate strong em,
html[data-theme="light"] .active-project-card-footer .active-project-pay small,
html[data-theme="light"] .active-project-card-footer .active-project-pay strong i,
html[data-theme="light"] .project-detail-rate .project-detail-pay small {
  color: #416e20;
}

html[data-theme="light"] .project-market-rate strong,
html[data-theme="light"] .active-project-card-footer .active-project-pay strong,
html[data-theme="light"] .project-detail-rate .project-detail-pay strong {
  color: #24321d;
}

html[data-theme="light"] .project-market-rate > i,
html[data-theme="light"] .project-detail-pay > span {
  color: #5b6754;
}

html[data-theme="light"] .active-project-card-footer .active-project-pay,
html[data-theme="light"] .project-detail-pay {
  border-color: rgba(78, 123, 40, 0.25);
  background: rgba(126, 177, 79, 0.12);
}

html[data-theme="light"] .project-detail-rate {
  background: #eee9e2;
}

html[data-theme="light"] .studio-skip {
  border-color: rgba(105, 54, 204, 0.3);
  background: rgba(125, 69, 237, 0.09);
  color: #5930a4;
}

html[data-theme="light"] .studio-report {
  border-color: rgba(171, 94, 0, 0.3);
  background: rgba(231, 147, 45, 0.1);
  color: #81500f;
}

@media (max-width: 900px) {
  .studio-header-actions > button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  .studio-header-actions > button > b {
    display: none;
  }

  .studio-header-actions > button > span {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 700px) {
  .project-market-card {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
  }

  .project-market-rate {
    grid-column: 2 / 4;
    width: min(100%, 220px);
    margin-top: 3px;
    padding: 9px 11px;
    border-top: 1px solid rgba(167, 211, 111, 0.22);
  }

  .project-market-rate strong,
  .project-market-rate i {
    display: block;
    margin-right: 0;
  }

  .project-market-rate strong {
    font-size: 0.95rem;
  }
}

@media (max-width: 560px) {
  .studio-header-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 4px;
  }

  .studio-header-actions > button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 9px;
  }

  .studio-header-actions > button > span {
    width: 20px;
    height: 20px;
  }

  .project-detail-rate {
    grid-template-columns: 1fr;
  }

  .project-detail-rate > div + div {
    padding: 9px 12px 5px;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }
}
