/* 词元共振首页：沿用言中 V3 数据绿 tokens、卡片和滚动节奏。 */
.gig-product {
  min-height: calc(100vh - 70px);
  color: var(--ink);
  background: var(--bg);
}

.gig-product[hidden],
.gig-product [hidden] { display: none !important; }

body[data-active-product="ai-gig"] > [data-geo-product-node],
body[data-active-product="ai-gig"] > .qa-public-shell { display: none !important; }

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

.site-header [hidden] { display: none !important; }

.site-header__inner {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 28px);
}

.product-switcher {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 7%, var(--bg));
  box-shadow: inset 0 1px 2px rgba(13, 20, 16, .03);
}

.product-switcher__item {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-3);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-switcher__item:hover { color: var(--ink); }
.product-switcher__item.is-active {
  color: var(--ink);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}

.product-switcher__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background .18s ease, box-shadow .18s ease;
}

.product-switcher__item.is-active .product-switcher__dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 11%, transparent);
}

.site-header .product-nav {
  min-width: 0;
  justify-content: center;
}

.gig-hero {
  min-height: min(700px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding: clamp(72px, 9vw, 118px) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 460px at 8% -10%, color-mix(in oklch, var(--accent) 18%, transparent), transparent 60%), var(--bg);
}

.gig-hero__layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(52px, 8vw, 112px);
}

.gig-hero__content { min-width: 0; }

.gig-hero__eyebrow,
.gig-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gig-hero__eyebrow {
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-elev);
}

.gig-hero__eyebrow .pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.gig-hero__eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: gig-pulse 2.2s ease-out infinite;
}

@keyframes gig-pulse {
  0% { opacity: .65; transform: scale(.7); }
  72%, 100% { opacity: 0; transform: scale(1.9); }
}

.gig-hero h1 {
  max-width: 760px;
  margin: 24px 0 20px;
  font-size: clamp(48px, 6.4vw, 82px);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.gig-hero h1 span { color: var(--accent); }

.gig-hero__sub {
  max-width: 630px;
  margin: 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.72;
}

.gig-prompt-examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.gig-prompt-examples > span {
  margin-right: 3px;
  color: var(--ink-4);
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gig-prompt-examples button {
  min-height: 31px;
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  color: var(--ink-3);
  font-size: 12px;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.gig-prompt-examples button:hover {
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 42%, var(--line-2));
  transform: translateY(-1px);
}

.gig-compose {
  max-width: 720px;
  margin: 16px 0 0;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gig-compose:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 13%, transparent), 0 20px 52px color-mix(in oklch, var(--accent) 13%, transparent);
  transform: translateY(-1px);
}

.gig-compose textarea {
  width: 100%;
  min-height: 92px;
  resize: none;
  padding: 14px 16px 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 16px/1.75 var(--font-sans);
}

/* 言中共用的 textarea:focus 样式会给输入区加一圈灰框。 */
.quick-ai-page .gig-compose textarea:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}

.gig-compose textarea::placeholder { color: var(--ink-4); }

.gig-compose__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 7px 7px 7px 16px;
}

.gig-compose__footer > span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-4); font-size: 12px; }
.gig-compose__footer > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.gig-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.gig-hero__meta span::before { content: "✓"; margin-right: 7px; color: var(--accent); font-weight: 700; }

.gig-hero__route {
  position: relative;
  /* 让流程卡片的底线与左侧需求输入框的底线形成同一条视觉基线。 */
  transform: translateY(clamp(28px, 5vw, 76px));
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
}

.gig-route__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.gig-route__top .gig-kicker { color: var(--ink-2); }
.gig-live { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-4); font-family: var(--font-mono); font-size: 10px; }
.gig-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-2); }
.gig-route__steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.gig-route__steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.gig-route__steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.gig-route__steps li > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--accent); background: var(--accent-2); font: 700 10px/1 var(--font-mono); }
.gig-route__steps strong { display: block; margin: 2px 0 4px; color: var(--ink); font-size: 14px; }
.gig-route__steps p { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.6; }

.gig-proof { padding: 0; background: var(--ink); color: var(--bg); border-bottom: 1px solid var(--ink); }
.gig-proof__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gig-proof article { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 30px clamp(18px, 3vw, 38px); border-right: 1px solid color-mix(in oklch, var(--bg) 20%, transparent); }
.gig-proof article:first-child { padding-left: 0; }
.gig-proof article:last-child { padding-right: 0; border-right: 0; }
.gig-proof article > span { padding-top: 3px; color: #aee9bd; font: 700 11px/1.4 var(--font-mono); }
.gig-proof strong { display: block; margin-bottom: 5px; font-size: 14px; }
.gig-proof p { margin: 0; color: color-mix(in oklch, var(--bg) 72%, transparent); font-size: 12px; line-height: 1.65; }

.gig-market,
.gig-workspace { padding: var(--sp-9) 0; background: #fff; }
.gig-market--soft { background: var(--bg-sunk); }

.gig-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.gig-section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -.035em;
}

.gig-section-head p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.gig-section-actions { display: flex; gap: 8px; }

.gig-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.gig-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }

.gig-card,
.gig-task-card,
.gig-project-card {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gig-card:hover,
.gig-task-card:hover,
.gig-project-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.gig-card.is-collapsed { display: none; }
.gig-card.is-collapsed.is-expanded { display: block; }
.gig-expand { display: flex; justify-content: center; margin-top: 22px; }

.gig-card__top,
.gig-project-card__top,
.gig-task-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}

.gig-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.gig-card h3,
.gig-task-card h3,
.gig-project-card h3 { margin: 16px 0 8px; font-size: 18px; letter-spacing: -.02em; }
.gig-card p,
.gig-task-card p,
.gig-project-card p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.72; }

.gig-task-card p,
.gig-project-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gig-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.gig-chip,
.gig-state {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  background: var(--bg-sunk);
  font-size: 11px;
  line-height: 1.35;
}
.gig-state { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 22%, var(--line)); background: var(--accent-2); }
.gig-code { color: var(--accent); font: 700 11px/1.4 var(--font-mono); letter-spacing: .05em; }
.gig-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-4); font-size: 11px; }
.gig-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.gig-card__action > span { max-width: 150px; color: var(--ink-4); font-size: 11px; line-height: 1.55; }
.gig-card__action .qa-btn { min-height: 38px; padding: 8px 15px; white-space: nowrap; }
.gig-project-card { color: inherit; text-decoration: none; }
.gig-project-card h3 { margin-top: 0; }
.gig-project-card__star { color: var(--accent); font-family: var(--font-mono); font-size: 12px; }
.gig-empty { grid-column: 1 / -1; padding: 34px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-4); text-align: center; }

.gig-workspace { border-bottom: 1px solid var(--line); background: color-mix(in oklch, var(--accent) 6%, var(--bg)); }
.gig-workspace-tabs { display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunk); }
.gig-workspace-tabs button { min-height: 36px; padding: 7px 13px; border-radius: 6px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.gig-workspace-tabs button.is-active { color: var(--ink); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.gig-task-list { display: grid; gap: 12px; }
.gig-task-card__body { margin-top: 14px; }
.gig-task-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 24px; margin-top: 14px; color: var(--ink-3); font-size: 12px; line-height: 1.65; }
.gig-task-details strong { color: var(--ink-2); }
.gig-task-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.gig-task-actions button { min-height: 38px; padding: 8px 13px; }
.gig-price-editor { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunk); }
.gig-price-editor input { width: min(180px, 45vw); margin: 0; }
.gig-notice-list { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-elev); }
.gig-notice { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.gig-notice:last-child { border-bottom: 0; }
.gig-notice__dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.gig-notice.is-read .gig-notice__dot { background: var(--line-2); }
.gig-notice__title { margin: 4px 0 0; color: var(--ink-4); font-size: 11px; }
.gig-notice__body { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.65; }
.gig-account-grid { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: var(--sp-4); }
.gig-account-card { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); }
.gig-account-card h3 { margin: 0 0 16px; font-size: 18px; }
.gig-invite-only { position: relative; min-height: 310px; display: grid; place-items: center; overflow: hidden; background: rgba(230,244,234,.7); }
.gig-invite-only::before { content: ""; position: absolute; inset: 24px; border: 1px solid color-mix(in oklch, var(--accent) 16%, transparent); border-radius: var(--r-lg); background: rgba(255,255,255,.54); filter: blur(10px); }
.gig-invite-only > div { position: relative; z-index: 1; max-width: 310px; padding: 26px; border: 1px solid rgba(255,255,255,.8); border-radius: var(--r-lg); background: rgba(255,255,255,.58); box-shadow: 0 16px 42px rgba(23,101,58,.11); backdrop-filter: blur(16px); text-align: center; }
.gig-invite-only strong { display: block; margin-bottom: 8px; font-size: 19px; }
.gig-invite-only p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.gig-admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.gig-admin-stats article { display: grid; gap: 8px; padding: 20px; border: 1px solid color-mix(in oklch, var(--accent) 18%, var(--line)); border-radius: var(--r-lg); background: var(--bg-elev); }
.gig-admin-stats span { color: var(--ink-4); font: 600 11px/1.4 var(--font-mono); letter-spacing: .04em; }
.gig-admin-stats strong { color: var(--accent); font-size: 28px; line-height: 1; }
.gig-admin-task .gig-task-card__body > p { -webkit-line-clamp: 5; }
.gig-admin-task .gig-task-details { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.gig-admin-task .gig-task-details > div { min-width: 0; overflow-wrap: anywhere; }
.gig-interventions { display: grid; gap: 12px; margin-bottom: 22px; padding: 22px; border: 1px solid color-mix(in oklch, var(--warn) 28%, var(--line)); border-radius: var(--r-lg); background: color-mix(in oklch, var(--warn) 4%, #fff); }
.gig-interventions > h3 { margin: 0; }
.gig-interventions > p { margin: -4px 0 4px; color: var(--ink-3); font-size: 13px; }
.gig-interventions article { padding: 15px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.gig-interventions article > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gig-interventions article strong { min-width: 0; overflow-wrap: anywhere; }
.gig-interventions article p { margin: 10px 0; color: var(--ink-2); }

.gig-footer { border-top: 1px solid var(--line); background: var(--bg-sunk); }
.gig-footer .container { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; color: var(--ink-4); font-size: 12px; }

.gig-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: min(88vh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  color: var(--ink);
  background: var(--bg-elev);
  box-shadow: 0 24px 80px rgba(13, 20, 16, .24);
}
.gig-dialog *, .gig-dialog *::before, .gig-dialog *::after { box-sizing: border-box; }
.gig-dialog::-webkit-scrollbar { width: 6px; }
.gig-dialog::-webkit-scrollbar-track { margin-block: 22px; background: transparent; }
.gig-dialog::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--line-2); }
.gig-dialog--wide { width: min(720px, calc(100% - 28px)); }
.gig-dialog--auth { width: min(480px, calc(100% - 28px)); }
.gig-dialog--auth .gig-tabs { width: min(286px, 100%); margin-right: auto; margin-left: auto; }
.gig-dialog--auth .gig-form > .qa-btn { width: min(286px, 100%); justify-self: center; }
.gig-dialog::backdrop { background: rgba(13,20,16,.42); backdrop-filter: blur(6px); }
.gig-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.gig-dialog__head h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -.035em; }
.gig-dialog__close { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-sunk); color: var(--ink-3); font-size: 20px; }
.gig-dialog__close:hover { border-color: var(--line-2); color: var(--ink); }
.gig-dialog__intro { margin: 0 0 22px; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.gig-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunk); }
.gig-tabs button { min-height: 38px; border-radius: 6px; color: var(--ink-3); font-weight: 600; }
.gig-tabs button.is-active { color: var(--ink); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.gig-form { display: grid; gap: 14px; }
.gig-form label { display: grid; gap: 7px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.gig-form input,
.gig-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  outline: 0;
  background: var(--bg-elev);
  color: var(--ink);
  font: 14px/1.6 var(--font-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gig-form textarea { resize: vertical; }
.gig-form input:focus,
.gig-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 10%, transparent); }
.gig-form input[type="checkbox"] { width: auto; min-height: 0; padding: 0; accent-color: var(--accent); }
.gig-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gig-form-note { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunk); color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.gig-form-message { min-height: 18px; margin-top: 12px; color: var(--warn); font-size: 12px; }

.gig-action-panel { display: grid; gap: 12px; }
.gig-action-panel article { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunk); }
.gig-action-panel article p { white-space: pre-wrap; }
.gig-message-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.gig-message-head strong { color: var(--accent); font-size: 12px; }
.gig-message-list article { max-width: 85%; background: var(--bg-sunk); }
.gig-message-thread { display: grid; align-content: start; gap: 12px; min-height: 130px; max-height: 440px; overflow-y: auto; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-elev); }
.gig-message-thread .gig-empty { align-self: center; }
.gig-message-list article.is-mine { justify-self: end; border-color: color-mix(in oklch, var(--accent) 28%, var(--line)); background: var(--accent-2); }
.gig-message-list article.is-theirs { justify-self: start; }
.gig-message-list article.is-mine .gig-message-head strong { color: var(--accent); }
.gig-message-list article.is-theirs .gig-message-head strong { color: var(--ink-2); }
.gig-invite-task-list { display: grid; gap: 8px; }
.gig-invite-task-list button { justify-content: flex-start; width: 100%; text-align: left; }
.gig-task-actions button:disabled { color: var(--ink-4); border-color: var(--line); background: var(--bg-sunk); box-shadow: none; cursor: not-allowed; }
.gig-toast { position: fixed; right: 22px; bottom: 22px; z-index: 90; max-width: min(380px, calc(100vw - 44px)); padding: 13px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 13px; }
.gig-toast.is-error { background: #8d241d; }

body.quick-ai-page .gig-product [data-gig-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
body.quick-ai-page .gig-product [data-gig-reveal].in { opacity: 1; transform: translateY(0); will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  body.quick-ai-page .gig-product [data-gig-reveal] { opacity: 1; transform: none; transition: none; }
  .gig-card, .gig-task-card, .gig-project-card, .gig-compose { transition: none; }
}

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: auto auto minmax(0, 1fr); }
  .site-header .product-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .site-header .product-cta { grid-column: 3; grid-row: 1; justify-self: end; }
  .gig-hero__layout { grid-template-columns: 1fr; gap: 46px; }
  .gig-hero__route { max-width: 720px; transform: none; }
  .gig-card-grid { grid-template-columns: 1fr 1fr; }
  .gig-project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .product-switcher { grid-column: 2; grid-row: 1; }
  .site-header .product-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .site-header .product-cta { display: none !important; }
  .product-switcher__item { min-height: 32px; padding: 6px 10px; }
  .gig-hero { min-height: auto; padding: 66px 0 58px; }
  .gig-hero h1 { font-size: clamp(43px, 14vw, 62px); }
  .gig-hero__sub { font-size: 16px; }
  .gig-prompt-examples > span { flex-basis: 100%; }
  .gig-compose__footer, .gig-section-head, .gig-footer .container { align-items: stretch; flex-direction: column; }
  .gig-compose__footer .qa-btn { width: 100%; justify-content: center; }
  .gig-hero__route { padding: 22px; }
  .gig-proof__grid { grid-template-columns: 1fr; }
  .gig-proof article, .gig-proof article:first-child, .gig-proof article:last-child { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .gig-proof article:last-child { border-bottom: 0; }
  .gig-card-grid, .gig-task-details, .gig-form__row { grid-template-columns: 1fr; }
  .gig-account-grid { grid-template-columns: 1fr; }
  .gig-admin-stats { grid-template-columns: 1fr 1fr; }
  .gig-workspace-tabs { width: 100%; overflow-x: auto; }
  .gig-workspace-tabs button { flex: 1 0 auto; }
  .gig-market, .gig-workspace { padding: var(--sp-8) 0; }
  .gig-dialog { padding: 22px; }
  .gig-card__action { align-items: stretch; flex-direction: column; }
  .gig-card__action > span { max-width: none; }
}
