@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #12212c;
  --ink-2: #162833;
  --ink-soft: #64736f;
  --paper: #f5f7f3;
  --paper-2: #eceeeb;
  --surface: #ffffff;
  --surface-soft: #f8faf6;
  --line: #dde4df;
  --mint: #9af3e4;
  --mint-soft: #e5fbf7;
  --teal: #006a60;
  --lime: #9af3e4;
  --yellow: #e7b84a;
  --yellow-soft: #fff1c9;
  --coral: #d85c45;
  --coral-soft: #ffe5dd;
  --blue: #396ad8;
  --shadow: 0 16px 42px rgba(18, 33, 44, 0.1);
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

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

h1,
.hero-title {
  margin-bottom: 16px;
  font-size: clamp(3.2rem, 10vw, 7.2rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
  line-height: 1.28;
}

.site-shell,
.app-shell {
  min-height: 100vh;
}

.site-header,
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(221, 228, 223, 0.88);
  background: rgba(248, 250, 246, 0.94);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 950;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-wordmark {
  width: 154px;
  height: auto;
  flex: 0 1 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.site-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
  background: var(--mint-soft);
}

.nav-cta,
.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 15px;
  font-weight: 950;
  line-height: 1.1;
}

.nav-cta,
.primary-button {
  background: var(--ink);
  color: #fff;
}

.hero .primary-button,
.section.dark .primary-button {
  background: var(--yellow);
  color: var(--ink);
}

.secondary-button,
.icon-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.site-header .secondary-button,
.topbar .secondary-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.primary-button.compact,
.secondary-button.compact {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 180px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
  font-size: 0.82rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-open {
  overflow: hidden;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 31, 39, 0.58);
}

.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: min(520px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 30px 84px rgba(12, 31, 39, 0.3);
  padding: 20px;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.auth-modal-head {
  padding-right: 36px;
}

.auth-modal-head p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.56;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 12px;
}

.auth-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-weight: 950;
}

.auth-tabs button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.auth-message {
  min-height: 22px;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.4;
}

.auth-message.ok {
  color: var(--teal);
}

.auth-form,
.mock-profile {
  display: grid;
  gap: 10px;
}

.auth-form.hidden {
  display: none;
}

.auth-form label,
.mock-profile label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 850;
}

.auth-form input,
.mock-profile input,
.form-grid input,
.market-search-label input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #c9d4ce;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 11px;
}

.auth-form input:focus,
.mock-profile input:focus,
.form-grid input:focus,
.market-search-label:focus-within {
  outline: 3px solid rgba(95, 224, 191, 0.25);
  border-color: var(--teal);
}

.phone-verification-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.phone-verification-actions {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.auth-hint {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-social {
  margin-top: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 950;
}

.social-button small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 850;
}

.social-kakao {
  background: #fee500;
  border-color: #f1d900;
}

.social-naver {
  background: #03c75a;
  border-color: #03b954;
  color: #fff;
}

.social-naver small {
  color: rgba(255, 255, 255, 0.82);
}

.mock-profile {
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.mock-profile strong {
  color: var(--ink);
}

.mock-profile p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
  align-items: center;
  gap: clamp(24px, 6vw, 84px);
  width: min(1200px, calc(100% - 40px));
  min-height: min(620px, 72vh);
  margin: 28px auto 0;
  border-radius: 0;
  padding: clamp(54px, 7vw, 94px) clamp(34px, 6vw, 72px);
  background:
    radial-gradient(circle at 78% 20%, rgba(154, 243, 228, 0.16), transparent 30%),
    linear-gradient(135deg, #000811 0%, #0b1820 50%, #162833 100%);
  color: #fff;
}

.hero-copy {
  width: min(760px, 100%);
}

.hero-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.04rem, 2.5vw, 1.34rem);
  line-height: 1.58;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.section.dark .eyebrow,
.topbar .eyebrow {
  color: var(--yellow);
}

.hero-showcase {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(154, 243, 228, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    #162833;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  padding: 28px;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(154, 243, 228, 0.16), transparent 35%),
    rgba(255, 255, 255, 0.04);
}

.hero-command-ribbon {
  position: absolute;
  right: -18px;
  top: -26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  padding: 0 18px;
  font-size: 0.82rem;
  font-weight: 900;
  transform: rotate(11deg);
  box-shadow: 0 12px 24px rgba(0, 106, 96, 0.2);
}

.hero-command-box {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.hero-command-input,
.hero-command-result {
  border: 1px solid rgba(221, 228, 223, 0.12);
  border-radius: 8px;
  background: rgba(248, 250, 246, 0.08);
  padding: 14px;
}

.hero-command-input {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-command-input span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
}

.hero-command-input strong {
  color: #fff;
  line-height: 1.35;
}

.hero-command-result {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.section {
  padding: clamp(44px, 7vw, 78px) clamp(18px, 5vw, 72px);
}

.section.alt {
  background: #fff;
}

.section.dark {
  background: var(--ink-2);
  color: #fff;
}

.section.dark p,
.section.dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  width: min(1180px, 100%);
  margin: 0 auto 24px;
}

.section-head p {
  max-width: 600px;
  color: var(--ink-soft);
  line-height: 1.62;
}

.page-hero {
  padding: clamp(42px, 7vw, 82px) clamp(18px, 5vw, 72px) 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--paper));
}

.page-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-title {
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 7vw, 5.6rem);
  line-height: 0.98;
}

.page-lead {
  max-width: 780px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-card,
.skill-shop-card,
.plan-card,
.creator-step,
.settlement-card,
.command-panel,
.side-panel,
.market-panel,
.creator-panel,
.recommendation-card,
.market-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.story-card,
.skill-shop-card,
.plan-card,
.creator-step,
.settlement-card,
.recommendation-card,
.market-card {
  padding: 18px;
}

.story-card p,
.skill-shop-card p,
.plan-card p,
.creator-step p,
.settlement-card p,
.recommendation-card p,
.market-card p {
  color: var(--ink-soft);
  line-height: 1.56;
}

.settlement-dashboard-section {
  padding-top: clamp(30px, 5vw, 58px);
}

.settlement-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.settlement-graph-card {
  border: 1px solid rgba(221, 228, 223, 0.9);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(154, 243, 228, 0.22), transparent 34%),
    #fff;
  box-shadow: 0 18px 44px rgba(18, 33, 44, 0.08);
  padding: clamp(18px, 3vw, 28px);
}

.settlement-graph-card.main {
  min-height: 390px;
}

.growth-chart {
  display: grid;
  gap: 18px;
}

.growth-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 2vw, 18px);
  min-height: 250px;
  padding-top: 16px;
}

.growth-bar-column {
  display: grid;
  align-items: end;
  gap: 8px;
  min-width: 0;
  height: 250px;
}

.growth-value {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.growth-bar-track {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  min-height: 170px;
  border-radius: 999px 999px 12px 12px;
  background: #eef3ef;
}

.growth-bar {
  display: block;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--mint), var(--teal));
  box-shadow: 0 -10px 24px rgba(0, 126, 113, 0.22);
}

.growth-bar-column strong {
  color: var(--ink);
  font-size: 0.86rem;
  text-align: center;
}

.growth-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.growth-kpis article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 250, 246, 0.82);
  padding: 12px;
}

.growth-kpis span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.growth-kpis strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.32rem);
}

.pool-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: min(240px, 72vw);
  aspect-ratio: 1;
  margin: 22px auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(18, 33, 44, 0.05), 0 16px 38px rgba(18, 33, 44, 0.1);
}

.pool-donut::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: #fff;
}

.pool-donut span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-weight: 950;
  text-align: center;
}

.pool-legend {
  display: grid;
  gap: 10px;
}

.pool-legend-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.88rem;
}

.pool-legend-row span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.pool-legend-row em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 850;
}

.settlement-payout-panel {
  width: min(1180px, 100%);
  margin: 18px auto 0;
}

.desktop-app-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.desktop-app-preview,
.desktop-app-steps {
  border: 1px solid rgba(221, 228, 223, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 33, 44, 0.08);
  padding: clamp(20px, 4vw, 34px);
}

.desktop-app-preview h2,
.desktop-app-steps h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.desktop-app-preview p,
.desktop-app-steps li {
  color: var(--ink-soft);
  line-height: 1.65;
}

.desktop-window-mock {
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(154, 243, 228, 0.22);
  border-radius: 18px;
  background: var(--ink);
  box-shadow: 0 24px 48px rgba(18, 33, 44, 0.24);
}

.desktop-titlebar {
  display: flex;
  gap: 7px;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  background: #10242d;
}

.desktop-titlebar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.desktop-titlebar span:nth-child(2) {
  background: var(--yellow);
}

.desktop-titlebar span:nth-child(3) {
  background: var(--mint);
}

.desktop-window-body {
  min-height: 240px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(154, 243, 228, 0.24), transparent 30%),
    var(--ink);
}

.desktop-window-body strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.desktop-window-body p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.72);
}

.desktop-app-steps ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  padding-left: 22px;
}

.desktop-app-steps code {
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 2px 6px;
}

.nux-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.phone-demo {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 520px;
  border: 8px solid var(--ink-2);
  border-radius: 28px;
  background: var(--surface-soft);
  padding: 16px;
  box-shadow: var(--shadow);
}

.phone-top,
.phone-command,
.phone-card,
.phone-search {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 950;
}

.phone-top strong {
  color: var(--teal);
}

.phone-search {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.phone-card {
  display: grid;
  gap: 4px;
  padding: 13px;
}

.phone-card.active {
  border-color: rgba(23, 130, 114, 0.45);
  background: var(--mint-soft);
}

.phone-card span,
.phone-command small {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.phone-card strong,
.phone-command strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.phone-card small {
  color: var(--ink-soft);
  line-height: 1.4;
}

.phone-command {
  margin-top: auto;
  padding: 14px;
  background: var(--ink);
}

.phone-command strong {
  display: block;
  margin-top: 6px;
  color: #fff;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 950;
}

.flow-step p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.skill-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  margin-bottom: 13px;
  border-radius: 8px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: 2.3rem;
  font-weight: 950;
}

.skill-shop-card:nth-child(2n) .skill-thumb {
  background: var(--mint-soft);
}

.skill-shop-card:nth-child(3n) .skill-thumb {
  background: var(--coral-soft);
}

.skill-card-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag,
.risk-badge,
.status-pill,
.counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf3f0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill,
.counter {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
}

.status-pill.ok {
  border-color: rgba(95, 224, 191, 0.44);
  color: var(--mint);
}

.status-pill.warn {
  border-color: rgba(243, 110, 86, 0.5);
  color: #ffd2ca;
}

.risk-badge {
  background: var(--mint-soft);
  color: var(--ink);
}

.risk-badge.medium {
  background: #fff3ce;
}

.risk-badge.high {
  background: var(--coral-soft);
  color: #9e2f1d;
}

.slot-meter,
.fit-bar {
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebe6;
}

.slot-meter {
  height: 10px;
}

.fit-bar {
  height: 8px;
}

.slot-meter span,
.fit-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0;
}

.plan-price strong {
  font-size: 2rem;
}

.plan-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.plan-list li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--ink-soft);
}

.plan-list strong {
  color: var(--ink);
}

.featured-plan {
  border-color: var(--yellow);
  background: #fffdf0;
}

.billing-status {
  min-height: 22px;
  width: min(1180px, 100%);
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.billing-status[data-mode="success"] {
  color: #137161;
}

.billing-status[data-mode="warn"] {
  color: #8a5b00;
}

.billing-status[data-mode="error"] {
  color: #b3261e;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.category-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.category-strip strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.category-strip span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.market-search-shell {
  width: min(1180px, 100%);
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

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

.market-search-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid #c9d4ce;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 0 13px;
}

.market-search-label span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 950;
}

.market-search-label input {
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  font-size: 1rem;
}

.market-search-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-suggestions,
.shop-tabs,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-suggestions {
  margin-top: 12px;
}

.shop-tabs,
.chip-row {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
}

.compact-tabs {
  width: 100%;
  margin-bottom: 12px;
}

.suggestion-chip,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 850;
}

.suggestion-chip:hover,
.chip:hover {
  border-color: var(--teal);
  color: var(--ink);
  background: var(--mint-soft);
}

.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  margin-left: 7px;
  border-radius: 999px;
  background: rgba(12, 31, 39, 0.08);
  font-size: 0.72rem;
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.chip.active .chip-count {
  background: rgba(255, 255, 255, 0.18);
}

.marketplace-subhead {
  margin-top: 26px;
  margin-bottom: 14px;
}

.empty-state {
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  padding: 24px;
  text-align: center;
  font-weight: 850;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  width: min(1220px, calc(100% - 32px));
  margin: 22px auto 44px;
}

.command-panel,
.side-panel,
.market-panel,
.creator-panel {
  padding: 18px;
}

.command-panel,
.market-panel {
  min-width: 0;
}

.market-panel,
.creator-panel {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 850;
}

textarea,
select {
  width: 100%;
  border: 1px solid #c9d4ce;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
}

textarea {
  min-height: 116px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.5;
}

select {
  min-height: 42px;
  margin-top: 7px;
  padding: 0 10px;
}

textarea:focus,
select:focus {
  outline: 3px solid rgba(95, 224, 191, 0.25);
  border-color: var(--teal);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.form-grid label {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
}

.result-panel,
.match-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px;
}

.result-panel {
  min-height: 128px;
}

.inline-command-result {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  min-height: 86px;
  box-shadow: 0 14px 36px rgba(13, 30, 39, 0.06);
}

.inline-command-result.success {
  border-color: rgba(0, 126, 113, 0.3);
  background: linear-gradient(180deg, #fff 0%, rgba(139, 232, 218, 0.16) 100%);
}

.inline-command-result.warn {
  border-color: rgba(226, 91, 65, 0.35);
  background: linear-gradient(180deg, #fff 0%, rgba(226, 91, 65, 0.08) 100%);
}

.inline-command-result.pending {
  border-color: rgba(247, 194, 67, 0.45);
  background: #fffaf0;
}

.local-execution-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid rgba(0, 106, 96, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(154, 243, 228, 0.24), transparent 34%),
    #fff;
  padding: 16px;
}

.local-execution-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.local-execution-head h2 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.local-execution-head p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--teal);
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.file-drop-zone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 168px;
  border: 2px dashed rgba(0, 106, 96, 0.22);
  border-radius: 16px;
  background: rgba(248, 250, 246, 0.82);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.file-drop-zone:hover,
.file-drop-zone.dragging {
  border-color: var(--teal);
  background: rgba(154, 243, 228, 0.18);
  transform: translateY(-1px);
}

.file-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #eef3ef;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 950;
}

.file-drop-zone em {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-style: normal;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.file-chip.readable {
  border-color: rgba(0, 106, 96, 0.22);
  background: rgba(154, 243, 228, 0.12);
}

.file-chip strong,
.file-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.file-chip button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-weight: 950;
}

.output-format-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.output-format-picker button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  font-weight: 900;
}

.output-format-picker button.active {
  border-color: var(--teal);
  background: var(--mint-soft);
  color: var(--teal);
}

.execution-file-summary {
  margin-top: 12px;
  border: 1px solid rgba(0, 106, 96, 0.16);
  border-radius: 12px;
  background: rgba(154, 243, 228, 0.12);
  padding: 12px;
}

.execution-file-summary strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}

.execution-file-summary ul {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding-left: 18px;
}

.execution-file-summary li {
  color: var(--ink);
  font-weight: 850;
}

.execution-file-summary li span,
.execution-file-summary small {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 750;
}

.match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.match-head strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.match-head span:not(.tag) {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.match-ok,
.match-upgrade {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.45;
}

.match-ok {
  background: var(--mint-soft);
  color: #137161;
}

.match-upgrade {
  background: var(--coral-soft);
  color: #9e2f1d;
}

.match-task-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.match-skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.match-skill-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px;
}

.match-skill-card strong {
  display: block;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.match-skill-card p {
  margin: 7px 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.match-skill-card small {
  color: var(--teal);
  font-weight: 850;
  line-height: 1.35;
}

.muted {
  color: var(--ink-soft);
  line-height: 1.55;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.route-metric {
  border-left: 4px solid var(--teal);
  background: var(--mint-soft);
  border-radius: 6px;
  padding: 10px;
}

.route-metric.risk-high {
  border-left-color: var(--coral);
  background: var(--coral-soft);
}

.route-metric.risk-medium {
  border-left-color: var(--yellow);
  background: #fff8df;
}

.metric-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 850;
}

.metric-value {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.skill-list,
.admin-plan-grid,
.deck-list,
.settlement-table,
.receipt-table {
  display: grid;
  gap: 9px;
}

.admin-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.mini-plan,
.deck-option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.mini-plan {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 10px;
}

.mini-plan span,
.deck-option span,
.deck-option em {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
}

.mini-plan.active,
.deck-option.active {
  border-color: var(--teal);
  background: var(--mint-soft);
}

.deck-option {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 11px;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.skill-row-main {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.skill-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.skill-remove-button {
  width: 32px;
  height: 32px;
  border-color: #e5b5aa;
  background: var(--coral-soft);
  color: #8d2e1f;
}

.skill-title {
  display: block;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.skill-meta {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.market-card p,
.recommendation-card p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.payout-row,
.receipt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 120px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.money {
  color: var(--teal);
  font-weight: 950;
  text-align: right;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(18px, 5vw, 72px);
  background: #fff;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head,
  .grid.two,
  .grid.three,
  .grid.four,
  .nux-layout,
  .workspace {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .market-grid,
  .category-strip,
  .recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .topbar {
    gap: 10px;
  }

  .brand-wordmark {
    width: 136px;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .site-nav a {
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .auth-actions {
    width: 100%;
    justify-content: stretch;
  }

  .auth-actions button,
  .auth-user-pill,
  .nav-cta {
    flex: 1;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 620px);
    min-height: auto;
    align-items: stretch;
    gap: 26px;
    background:
      radial-gradient(circle at 80% 16%, rgba(154, 243, 228, 0.16), transparent 32%),
      linear-gradient(135deg, #000811 0%, #0b1820 50%, #162833 100%);
    padding: 42px 22px 26px;
  }

  .hero-showcase {
    min-height: 280px;
  }

  .page-title {
    font-size: clamp(2.2rem, 16vw, 4.2rem);
  }

  .workspace {
    width: min(100% - 20px, 620px);
    margin-top: 14px;
    gap: 12px;
  }

  .command-panel,
  .side-panel,
  .market-panel,
  .creator-panel {
    padding: 14px;
  }

  .form-grid,
  .route-grid,
  .match-skill-list,
  .market-grid,
  .category-strip,
  .recommendation-grid,
  .flow-steps,
  .payout-row,
  .receipt-row,
  .market-search-top {
    grid-template-columns: 1fr;
  }

  .phone-demo {
    min-height: 460px;
    border-width: 6px;
    border-radius: 22px;
    padding: 12px;
  }

  .auth-modal {
    padding: 16px;
  }

  .phone-verification-actions {
    grid-template-columns: 1fr;
  }

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

  .hero-actions a,
  .button-row button,
  .button-row a,
  .market-search-top,
  .secondary-button,
  .primary-button {
    width: 100%;
  }

  .market-search-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-head {
    align-items: flex-start;
  }

  .money {
    text-align: left;
  }

  .site-footer-inner {
    flex-direction: column;
  }
}

/* Stitch-driven command/demo workspace */
.stitch-command-page {
  background: var(--surface-soft);
}

.stitch-topbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 520px) minmax(0, auto) auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(221, 228, 223, 0.92);
  background: rgba(248, 250, 246, 0.95);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(18, 33, 44, 0.04);
}

.stitch-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.stitch-brand .brand-wordmark {
  width: 176px;
}

.top-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(116, 119, 124, 0.18);
  border-radius: 999px;
  background: var(--surface-container-lowest, #fff);
  padding: 0 16px;
  box-shadow: inset 0 1px 0 rgba(18, 33, 44, 0.02), 0 4px 14px rgba(18, 33, 44, 0.06);
}

.top-search span {
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
}

.top-search input {
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.96rem;
}

.stitch-command-page .site-nav {
  justify-content: flex-end;
}

.stitch-command-page .site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  gap: 6px;
}

.stitch-command-page .site-nav a[aria-current="page"] {
  background: var(--mint-soft);
  color: var(--teal);
}

.stitch-command-page .status-pill,
.stitch-command-page .counter {
  border-color: rgba(0, 106, 96, 0.22);
  background: var(--mint-soft);
  color: var(--teal);
}

.stitch-workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 330px;
  gap: 26px;
  width: min(1320px, calc(100% - 48px));
  margin: 34px auto 56px;
  align-items: start;
}

.stitch-category-rail,
.stitch-side-rail {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.stitch-category-rail h2,
.stitch-rail-card h2,
.stitch-section-card h2,
.stitch-command-card h1 {
  margin: 0;
  letter-spacing: 0;
}

.stitch-category-rail .compact-tabs {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 14px 0 0;
}

.stitch-category-rail .chip {
  justify-content: space-between;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 0 16px;
  font-size: 1rem;
}

.stitch-category-rail .chip.active,
.stitch-category-rail .chip:hover {
  background: var(--mint);
  color: var(--ink);
}

.stitch-category-rail .chip-count {
  background: rgba(18, 33, 44, 0.08);
}

.stitch-filter-card,
.stitch-rail-card,
.stitch-section-card,
.stitch-command-card {
  border: 1px solid rgba(221, 228, 223, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 33, 44, 0.06);
}

.stitch-filter-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.stitch-filter-card label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
}

.stitch-filter-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.stitch-main-feed {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.stitch-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 33, 44, 0.08);
}

.stitch-hero-visual {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 300px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(154, 243, 228, 0.72), rgba(248, 250, 246, 0.2)),
    url("./assets/skilldeck-hero.png");
  background-size: cover;
  background-position: center;
  color: var(--ink);
}

.stitch-hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: 110px;
  height: 110px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(0, 106, 96, 0.14);
  transform: rotate(-8deg);
}

.featured-pill {
  position: absolute;
  left: 24px;
  top: 24px;
  min-height: 30px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.stitch-hero-visual strong {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
}

.stitch-hero-visual p {
  position: relative;
  z-index: 1;
  max-width: 340px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.stitch-command-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 30px;
}

.stitch-command-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  font-weight: 950;
}

.voice-fab {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 16px 32px rgba(18, 33, 44, 0.24), 0 0 0 12px rgba(154, 243, 228, 0.45);
}

.stitch-command-card textarea,
.stitch-command-card select,
.stitch-command-card .top-search input {
  font-size: 1rem;
}

.stitch-command-card textarea {
  min-height: 116px;
  border-color: rgba(116, 119, 124, 0.2);
  background: var(--surface-soft);
}

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

.stitch-command-actions .primary-button {
  min-width: 92px;
}

.stitch-section-card,
.stitch-rail-card {
  padding: 20px;
}

.stitch-rail-card {
  display: grid;
  gap: 14px;
}

.stitch-side-rail .skill-list {
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.stitch-command-page .admin-plan-grid {
  gap: 10px;
}

.stitch-command-page .mini-plan,
.stitch-command-page .deck-option,
.stitch-command-page .skill-row {
  border-radius: 10px;
}

.stitch-command-page .mini-plan.active,
.stitch-command-page .deck-option.active {
  border-color: var(--teal);
  background: var(--mint-soft);
}

.stitch-command-page .result-panel,
.stitch-command-page .match-panel {
  border-color: rgba(221, 228, 223, 0.9);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 18px;
}

.stitch-command-page .recommendation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stitch-command-page .market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stitch-command-page .recommendation-card,
.stitch-command-page .market-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 33, 44, 0.07);
}

.stitch-command-page .market-card {
  padding: 0 0 16px;
}

.stitch-command-page .market-card::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(154, 243, 228, 0.66), rgba(255, 255, 255, 0.2)),
    url("./assets/skilldeck-hero.png");
  background-size: cover;
  background-position: center;
}

.stitch-command-page .market-card:nth-child(2n)::before {
  background:
    linear-gradient(135deg, rgba(231, 184, 74, 0.55), rgba(255, 255, 255, 0.18)),
    url("./assets/skilldeck-hero.png");
  background-size: cover;
  background-position: center;
}

.stitch-command-page .market-card:nth-child(3n)::before {
  background:
    linear-gradient(135deg, rgba(216, 92, 69, 0.42), rgba(255, 255, 255, 0.18)),
    url("./assets/skilldeck-hero.png");
  background-size: cover;
  background-position: center;
}

.stitch-command-page .market-card h3,
.stitch-command-page .market-card p,
.stitch-command-page .market-card .fit-bar,
.stitch-command-page .market-card .tag-row {
  margin-left: 16px;
  margin-right: 16px;
}

.stitch-command-page .market-card h3 {
  font-size: 1.16rem;
}

.stitch-command-page .market-card .fit-bar {
  margin-top: 12px;
}

.stitch-command-page .text-link {
  color: var(--teal);
  font-weight: 900;
}

.stitch-command-page .settlement-table {
  max-height: 220px;
  overflow: auto;
}

.stitch-command-page .payout-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.stitch-command-page .money {
  text-align: left;
}

/* Stitch-driven marketplace */
.stitch-market-page {
  background: var(--surface-soft);
}

.stitch-market-page .site-header {
  display: grid;
  grid-template-columns: auto minmax(280px, 520px) minmax(0, auto) auto;
}

.stitch-market-layout {
  position: relative;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 32px;
  width: min(1280px, calc(100% - 48px));
  margin: 34px auto 72px;
  align-items: start;
}

.stitch-market-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.stitch-featured-skill {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.92fr);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 33, 44, 0.08);
}

.stitch-featured-art {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(154, 243, 228, 0.55), rgba(255, 255, 255, 0.18)),
    url("./assets/skilldeck-hero.png");
  background-position: center;
  background-size: cover;
}

.stitch-featured-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 42px);
}

.stitch-featured-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 950;
}

.stitch-featured-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.58;
}

.tag.premium {
  background: var(--mint);
  color: var(--teal);
}

.stitch-market-meta {
  margin: 0;
}

.stitch-market-page .search-suggestions {
  margin-top: -12px;
}

.stitch-market-page .stitch-section-card {
  padding: 24px;
}

.stitch-market-page .grid.four {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stitch-market-page .skill-shop-card.result-card {
  overflow: hidden;
  padding: 0 0 16px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 33, 44, 0.07);
}

.stitch-market-page .skill-shop-card.result-card .skill-thumb {
  display: grid;
  place-items: center;
  gap: 7px;
  aspect-ratio: 1 / 0.72;
  margin: 0 0 16px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(154, 243, 228, 0.62), rgba(248, 250, 246, 0.22)),
    url("./assets/skilldeck-hero.png");
  background-size: cover;
  background-position: center;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.stitch-market-page .skill-shop-card.result-card .skill-thumb span {
  display: grid;
  place-items: center;
  min-width: 66px;
  min-height: 66px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 32px rgba(18, 33, 44, 0.1);
  font-size: 2.1rem;
}

.stitch-market-page .skill-shop-card.result-card .skill-thumb small {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.category-productivity {
  background:
    linear-gradient(135deg, rgba(154, 243, 228, 0.72), rgba(255, 255, 255, 0.22)),
    radial-gradient(circle at 20% 20%, rgba(0, 106, 96, 0.22), transparent 30%) !important;
}

.category-communication {
  background:
    linear-gradient(135deg, rgba(213, 228, 244, 0.92), rgba(255, 255, 255, 0.2)),
    radial-gradient(circle at 82% 18%, rgba(57, 106, 216, 0.22), transparent 34%) !important;
}

.category-docs-research {
  background:
    linear-gradient(135deg, rgba(248, 250, 246, 0.95), rgba(154, 243, 228, 0.28)),
    repeating-linear-gradient(0deg, rgba(18, 33, 44, 0.05) 0 1px, transparent 1px 22px) !important;
}

.category-marketing-content {
  background:
    linear-gradient(135deg, rgba(255, 225, 157, 0.78), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 82% 28%, rgba(216, 92, 69, 0.22), transparent 36%) !important;
}

.category-business-ops {
  background:
    linear-gradient(135deg, rgba(231, 184, 74, 0.66), rgba(248, 250, 246, 0.22)),
    linear-gradient(45deg, rgba(18, 33, 44, 0.06), transparent) !important;
}

.category-life-creative {
  background:
    linear-gradient(135deg, rgba(255, 229, 221, 0.88), rgba(154, 243, 228, 0.28)),
    radial-gradient(circle at 28% 70%, rgba(216, 92, 69, 0.18), transparent 38%) !important;
}

.category-dev-tools {
  background:
    linear-gradient(135deg, rgba(22, 40, 51, 0.96), rgba(0, 8, 17, 0.92)),
    radial-gradient(circle at 76% 24%, rgba(154, 243, 228, 0.2), transparent 34%) !important;
  color: #fff !important;
}

.category-dev-tools small {
  color: #fff !important;
}

.category-device-bridge {
  background:
    linear-gradient(135deg, rgba(18, 33, 44, 0.88), rgba(0, 106, 96, 0.55)),
    radial-gradient(circle at 24% 28%, rgba(154, 243, 228, 0.22), transparent 32%) !important;
  color: #fff !important;
}

.category-device-bridge small {
  color: #fff !important;
}

.stitch-market-page .skill-shop-card.result-card:nth-child(2n) .skill-thumb {
  background:
    linear-gradient(135deg, rgba(231, 184, 74, 0.55), rgba(248, 250, 246, 0.18)),
    url("./assets/skilldeck-hero.png");
  background-size: cover;
  background-position: center;
}

.stitch-market-page .skill-shop-card.result-card:nth-child(3n) .skill-thumb {
  background:
    linear-gradient(135deg, rgba(216, 92, 69, 0.38), rgba(248, 250, 246, 0.18)),
    url("./assets/skilldeck-hero.png");
  background-size: cover;
  background-position: center;
}

.stitch-market-page .skill-shop-card.result-card > :not(.skill-thumb) {
  margin-left: 16px;
  margin-right: 16px;
}

.stitch-market-page .skill-shop-card.result-card h3 {
  font-size: 1.18rem;
}

.market-voice-fab {
  position: fixed;
  right: 34px;
  bottom: 34px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 18px 38px rgba(18, 33, 44, 0.24);
}

.stitch-ranking-zone {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rank-shelf {
  min-width: 0;
  border: 1px solid rgba(221, 228, 223, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 33, 44, 0.06);
  padding: 16px;
}

.rank-shelf-head {
  margin-bottom: 12px;
}

.rank-shelf-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 8px;
  cursor: pointer;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-container);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 950;
}

.rank-number.gold {
  background: #ffd700;
}

.rank-number.silver {
  background: #c0c0c0;
}

.rank-number.bronze {
  background: #cd7f32;
  color: #fff;
}

.rank-art {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 950;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.rank-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

.deck-state-pill,
.deck-state-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(0, 106, 96, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--teal);
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 950;
  white-space: nowrap;
}

.deck-state-pill.stored,
.deck-state-tag {
  background: rgba(154, 243, 228, 0.26);
}

.deck-state-pill.on,
.deck-state-tag.on {
  border-color: rgba(0, 106, 96, 0.44);
  background: var(--teal);
  color: #fff;
}

.rank-row.is-contained,
.result-card.is-contained,
.today-skill-card.is-contained {
  border-color: rgba(0, 126, 113, 0.36) !important;
  background:
    linear-gradient(180deg, rgba(154, 243, 228, 0.2), rgba(255, 255, 255, 0.92)),
    #fff !important;
  box-shadow: 0 14px 32px rgba(0, 106, 96, 0.12);
}

.rank-row.is-enabled,
.result-card.is-enabled,
.today-skill-card.is-enabled {
  outline: 2px solid rgba(0, 126, 113, 0.28);
  outline-offset: -2px;
}

.rank-row:focus-visible,
.result-card:focus-visible,
.today-skill-card:focus-visible {
  outline: 3px solid rgba(154, 243, 228, 0.9);
  outline-offset: 3px;
}

.local-file-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.local-file-flow article {
  display: grid;
  gap: 7px;
  min-height: 124px;
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 16px;
}

.local-file-flow strong {
  color: var(--ink);
  font-size: 1rem;
}

.local-file-flow span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.48;
}

@media (max-width: 1180px) {
  .stitch-topbar {
    grid-template-columns: auto minmax(220px, 1fr) auto;
  }

  .stitch-topbar .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .stitch-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .stitch-side-rail {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stitch-hero-card {
    grid-template-columns: 1fr;
  }

  .stitch-market-page .site-header,
  .stitch-market-layout,
  .stitch-featured-skill,
  .stitch-ranking-zone {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .stitch-topbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .top-search {
    width: 100%;
  }

  .stitch-workspace,
  .stitch-side-rail {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 680px);
  }

  .stitch-category-rail {
    position: static;
  }

  .stitch-category-rail .compact-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .stitch-category-rail .chip {
    min-width: max-content;
  }

  .stitch-command-card {
    padding: 22px;
  }

  .stitch-command-page .recommendation-grid,
  .stitch-command-page .market-grid,
  .stitch-market-page .grid.four,
  .stitch-form-grid,
  .local-file-flow {
    grid-template-columns: 1fr;
  }

  .stitch-hero-visual {
    min-height: 220px;
  }

  .voice-fab {
    width: 60px;
    height: 60px;
  }

  .stitch-market-layout {
    width: min(100% - 28px, 680px);
  }

  .stitch-featured-art {
    min-height: 220px;
  }

  .market-voice-fab {
    right: 18px;
    bottom: 18px;
    width: 62px;
    height: 62px;
  }
}

/* Final responsive corrections after Stitch marketplace overrides */
.page-title {
  max-width: 1180px;
  font-size: clamp(2.45rem, 4.25vw, 4.1rem);
  line-height: 1.05;
  word-break: keep-all;
  text-wrap: balance;
}

.stitch-command-page #apiStatus {
  display: none;
}

.stitch-topbar {
  grid-template-columns: auto minmax(220px, 520px) minmax(0, 1fr) auto;
}

.stitch-topbar .auth-actions {
  justify-self: end;
  flex-wrap: nowrap;
}

.stitch-category-rail .chip {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
}

.stitch-category-rail .chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-category-rail .chip-count {
  margin-left: 0;
}

@media (max-width: 820px) {
  .page-title {
    font-size: clamp(2.1rem, 11vw, 3.35rem);
  }

  .stitch-topbar .auth-actions {
    width: 100%;
  }
}

/* Final mobile and headline fit pass */
.page-title {
  font-size: clamp(2.15rem, 3.2vw, 3.7rem);
  line-height: 1.08;
  text-wrap: normal;
}

@media (max-width: 1180px) {
  .page-title {
    font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  }
}

@media (max-width: 820px) {
  .stitch-workspace,
  .stitch-side-rail {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 680px);
  }

  .stitch-side-rail,
  .stitch-category-rail {
    position: static;
  }

  .stitch-hero-card {
    grid-template-columns: 1fr;
  }

  .stitch-category-rail .compact-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .stitch-category-rail .chip {
    min-width: max-content;
    grid-template-columns: 12px auto auto;
  }

  .stitch-command-page .recommendation-grid,
  .stitch-command-page .market-grid,
  .stitch-form-grid,
  .output-format-picker {
    grid-template-columns: 1fr;
  }

  .local-execution-head {
    display: grid;
  }

  .page-title {
    font-size: clamp(2rem, 10vw, 3.15rem);
  }
}

/* Page scale and command demo refinements */
.site-header,
.topbar {
  min-width: 0;
}

.page-hero {
  padding: clamp(46px, 6.5vw, 92px) clamp(18px, 5vw, 72px) clamp(30px, 4vw, 46px);
}

.page-title {
  max-width: 1060px;
  font-size: clamp(2.75rem, 5.8vw, 6.1rem);
  line-height: 1.02;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.page-lead {
  max-width: 920px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.aimighty-hero-word {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(8px, 1vw, 14px);
  margin-bottom: 18px;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.94;
  word-break: keep-all;
}

.aimighty-ai {
  display: inline-grid;
  place-items: center;
  min-width: 1.18em;
  height: 0.78em;
  border: 1px solid rgba(154, 243, 228, 0.24);
  border-radius: 0.13em;
  background: #07141d;
  color: #ffdc68;
  font-size: 0.56em;
  line-height: 1;
  box-shadow: inset 0 -0.08em 0 rgba(255, 255, 255, 0.08);
}

.aimighty-mighty {
  position: relative;
  display: inline-block;
  color: #fff;
}

.aimighty-mighty::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.08em;
  bottom: -0.1em;
  height: 0.055em;
  border-radius: 999px;
  background: var(--mint);
}

.download-section {
  padding-top: clamp(24px, 4vw, 42px);
  padding-bottom: clamp(24px, 4vw, 42px);
}

.play-store-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(0, 106, 96, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(154, 243, 228, 0.45), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef8f5 100%);
  box-shadow: 0 18px 48px rgba(18, 33, 44, 0.08);
  padding: clamp(22px, 4vw, 36px);
}

.play-store-copy h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3.5vw, 2.7rem);
  line-height: 1.08;
  word-break: keep-all;
}

.play-store-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.play-store-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.store-button {
  display: grid;
  gap: 2px;
  min-width: 220px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  padding: 16px 18px;
  box-shadow: 0 12px 26px rgba(18, 33, 44, 0.18);
}

.store-button span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
}

.store-button strong {
  font-size: 1.05rem;
}

.store-button.desktop {
  background: linear-gradient(135deg, #07141d, #17303b);
}

.store-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(0, 106, 96, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
}

.stitch-command-page #apiStatus {
  display: none;
}

.stitch-topbar {
  grid-template-columns: auto minmax(220px, 520px) minmax(0, 1fr) auto;
}

.stitch-topbar .auth-actions {
  justify-self: end;
  flex-wrap: nowrap;
}

.stitch-workspace {
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(18px, 2vw, 26px);
  width: min(1500px, calc(100% - 48px));
}

.stitch-command-card h1 {
  max-width: 11.5em;
  font-size: clamp(2rem, 2.7vw, 3.05rem);
  word-break: keep-all;
  text-wrap: balance;
}

.stitch-category-rail .chip {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
}

.stitch-category-rail .chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-category-rail .chip-count {
  margin-left: 0;
}

.stitch-hero-visual {
  background:
    linear-gradient(135deg, rgba(154, 243, 228, 0.76), rgba(248, 250, 246, 0.18)),
    url("./assets/stitch/skillshop-hero-mobile.jpg");
  background-size: cover;
  background-position: center;
}

@media (max-width: 1180px) {
  .page-title {
    font-size: clamp(2.45rem, 7.2vw, 4.8rem);
  }

  .stitch-workspace {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }

  .stitch-side-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .play-store-card {
    grid-template-columns: 1fr;
  }

  .play-store-actions {
    justify-items: start;
  }

  .store-button,
  .store-route {
    width: min(100%, 320px);
  }
}

@media (max-width: 820px) {
  .page-hero {
    padding-top: 38px;
  }

  .page-title {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }

  .stitch-topbar .auth-actions {
    width: 100%;
  }

  .stitch-command-card h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }
}

@media (max-width: 640px) {
  .aimighty-hero-word {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .play-store-card {
    border-radius: 14px;
    padding: 20px;
  }
}

/* Stitch marketplace v2 */
.stitch-market-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(154, 243, 228, 0.28), transparent 28%),
    linear-gradient(180deg, #f8faf6 0%, #f2f5f1 100%);
}

.stitch-market-page .site-header {
  grid-template-columns: auto minmax(240px, 520px) max-content auto auto;
  gap: 20px;
  padding-block: 14px;
  background: rgba(248, 250, 246, 0.9);
}

.stitch-market-page .site-nav {
  flex-wrap: nowrap;
  gap: 18px;
  white-space: nowrap;
}

.stitch-market-page .auth-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.stitch-brand .brand-mark {
  filter: drop-shadow(0 8px 16px rgba(18, 33, 44, 0.12));
}

.top-search {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  border: 1px solid rgba(221, 228, 223, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 20px rgba(18, 33, 44, 0.05);
}

.top-search span {
  color: var(--ink-soft);
  font-size: 1.25rem;
  font-weight: 900;
}

.top-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.stitch-market-layout {
  grid-template-columns: 256px minmax(0, 1fr);
  width: min(1380px, calc(100% - 48px));
  gap: 34px;
  margin-top: 34px;
}

.stitch-category-rail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  align-self: start;
}

.stitch-category-rail h2 {
  font-size: 1.45rem;
  letter-spacing: 0;
}

.stitch-category-rail .compact-tabs {
  display: grid;
  gap: 10px;
}

.stitch-category-rail .chip {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  box-shadow: none;
}

.stitch-category-rail .chip.active,
.stitch-category-rail .chip:hover {
  background: var(--mint);
  color: #003b35;
}

.category-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--teal) !important;
}

.stitch-filter-card {
  display: grid;
  gap: 13px;
  border: 1px solid rgba(221, 228, 223, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(18, 33, 44, 0.05);
}

.stitch-filter-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 800;
}

.stitch-filter-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.stitch-featured-skill {
  min-height: 310px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(18, 33, 44, 0.08);
}

.stitch-featured-art {
  min-height: 310px;
  background:
    linear-gradient(90deg, rgba(248, 250, 246, 0.12), rgba(248, 250, 246, 0.72)),
    var(--skill-art) !important;
  background-position: center;
  background-repeat: no-repeat !important;
  background-size: cover;
}

.featured-pill {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.stitch-featured-copy h1 {
  max-width: 560px;
  font-size: clamp(2.15rem, 4vw, 3.55rem);
}

.stitch-featured-copy .price-row {
  justify-content: flex-start;
  gap: 12px;
}

.stitch-market-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 850;
}

.stitch-ranking-zone {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.rank-shelf {
  border: 1px solid rgba(221, 228, 223, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(18, 33, 44, 0.06);
}

.rank-shelf.top-chart {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(229, 251, 247, 0.86)),
    #fff;
}

.rank-row {
  grid-template-columns: 48px 56px minmax(0, 1fr) auto;
  min-height: 74px;
  border: 1px solid rgba(221, 228, 223, 0.72);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(18, 33, 44, 0.04);
}

.rank-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef3ef;
}

.rank-number.gold {
  background: #ffd700;
  box-shadow: 0 8px 18px rgba(231, 184, 74, 0.28);
}

.rank-number.silver {
  background: #cfd6d9;
}

.rank-number.bronze {
  background: #cd7f32;
  color: #fff;
}

.rank-art {
  overflow: hidden;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(154, 243, 228, 0.16)),
    var(--skill-art) !important;
  background-position: center;
  background-repeat: no-repeat !important;
  background-size: cover;
}

.stitch-market-page .stitch-section-card {
  border: 1px solid rgba(221, 228, 223, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  padding: 26px;
  box-shadow: 0 12px 32px rgba(18, 33, 44, 0.055);
}

.stitch-market-page .grid.four {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stitch-market-page .skill-shop-card.result-card {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 33, 44, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stitch-market-page .skill-shop-card.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(18, 33, 44, 0.11);
}

.stitch-market-page .skill-shop-card.result-card .skill-thumb,
.category-productivity,
.category-communication,
.category-docs-research,
.category-marketing-content,
.category-business-ops,
.category-life-creative,
.category-dev-tools,
.category-device-bridge,
.category-default {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(18, 33, 44, 0.12)),
    var(--skill-art) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.stitch-market-page .skill-shop-card.result-card .skill-thumb {
  display: grid;
  place-items: end start;
  aspect-ratio: 1 / 0.76;
  margin: 0 0 16px;
  padding: 16px;
  color: var(--ink);
}

.stitch-market-page .skill-shop-card.result-card .skill-thumb span {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(18, 33, 44, 0.1);
  font-size: 0.88rem;
  font-weight: 950;
}

.stitch-market-page .skill-shop-card.result-card .skill-thumb small {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal);
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 950;
}

.stitch-market-page .skill-shop-card.result-card > :not(.skill-thumb) {
  margin-left: 16px;
  margin-right: 16px;
}

.stitch-market-page .skill-shop-card.result-card h3 {
  color: var(--ink);
  font-size: 1.16rem;
  letter-spacing: 0;
}

.stitch-market-page .skill-shop-card.result-card p {
  min-height: 58px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.skill-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.skill-card-footer span {
  color: var(--teal);
  font-weight: 950;
  letter-spacing: 0.04em;
}

.skill-card-footer strong {
  color: var(--ink);
  font-weight: 850;
}

.local-file-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.local-file-visual {
  overflow: hidden;
  border-radius: 18px;
  background: var(--mint-soft);
  box-shadow: 0 18px 36px rgba(18, 33, 44, 0.09);
}

.local-file-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.local-file-copy h2 {
  max-width: 640px;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
}

.local-file-copy p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.local-file-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.local-file-flow article {
  min-height: 132px;
  border: 1px solid rgba(221, 228, 223, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 246, 0.82)),
    #fff;
  box-shadow: 0 8px 18px rgba(18, 33, 44, 0.05);
}

.image-recommendation {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  align-content: end;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.88) 54%, #fff 100%),
    var(--skill-art) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow: 0 10px 24px rgba(18, 33, 44, 0.07);
}

.image-recommendation .skill-card-top,
.image-recommendation p {
  position: relative;
  z-index: 1;
}

.market-voice-fab {
  width: 72px;
  height: 72px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 0;
}

.market-voice-fab::before {
  content: "mic";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

@media (max-width: 1180px) {
  .stitch-market-page .site-header,
  .stitch-market-layout,
  .stitch-featured-skill,
  .stitch-ranking-zone,
  .local-file-showcase {
    grid-template-columns: 1fr;
  }

  .stitch-category-rail {
    position: static;
  }
}

@media (max-width: 820px) {
  .stitch-market-page .site-header {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .stitch-market-page .stitch-brand {
    align-self: flex-start;
  }

  .stitch-market-page .site-nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .stitch-market-page .auth-actions {
    width: 100%;
    justify-content: stretch;
  }

  .stitch-market-page .auth-actions button {
    flex: 1;
    justify-content: center;
  }

  .stitch-market-page #marketplaceClearButton {
    width: 100%;
  }

  .stitch-market-layout {
    width: min(100% - 28px, 680px);
    margin-top: 22px;
  }

  .stitch-category-rail .compact-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .stitch-category-rail .chip {
    min-width: max-content;
  }

  .stitch-market-page .grid.four,
  .local-file-flow {
    grid-template-columns: 1fr;
  }

  .stitch-featured-skill {
    min-height: 0;
  }

  .stitch-featured-art {
    min-height: 230px;
  }

  .stitch-featured-copy {
    padding: 22px;
  }

  .stitch-market-page .stitch-section-card {
    padding: 18px;
  }

  .settlement-dashboard,
  .desktop-app-panel,
  .growth-kpis {
    grid-template-columns: 1fr;
  }

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

  .local-file-visual img {
    min-height: 220px;
  }

  .market-voice-fab {
    right: 18px;
    bottom: 18px;
    width: 62px;
    height: 62px;
  }
}
