/* ===== GTRAY LAB - global site theme (matches hero) ===== */
:root {
  --lab-bg: #f3f3f1;
  --lab-surface: #ffffff;
  --lab-ink: #111111;
  --lab-muted: #6b6b6b;
  --lab-border: rgba(17, 17, 17, 0.08);
  --lab-border-strong: rgba(17, 17, 17, 0.14);
  --lab-frame-pad: clamp(20px, 3.5vw, 48px);
  --lab-frame-margin: clamp(16px, 3vw, 40px);
}

body.has-lab-hero,
body.profile-route,
body.auth-route {
  --text-primary: var(--lab-ink);
  --text-secondary: var(--lab-muted);
  --border: var(--lab-border-strong);
  --bg: var(--lab-surface);
  --bg-secondary: var(--lab-bg);
  --pink: var(--lab-ink);
  --pink-dark: #000;
  --pink-light: #ececea;
  --radius: 4px;
  --shadow: none;
  --shadow-hover: 0 12px 40px rgba(17, 17, 17, 0.06);
  background: var(--lab-bg);
  color: var(--lab-ink);
}

/* ===== mobile tap - no blue flash/outline ===== */
body.has-lab-hero button,
body.has-lab-hero a,
body.has-lab-hero [role="button"],
body.profile-route button,
body.profile-route a,
body.auth-route button,
body.auth-route a {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

@media (hover: none) and (pointer: coarse) {
  body.has-lab-hero button:focus,
  body.has-lab-hero button:focus-visible,
  body.has-lab-hero a:focus,
  body.has-lab-hero a:focus-visible,
  body.profile-route button:focus,
  body.profile-route button:focus-visible,
  body.profile-route a:focus,
  body.profile-route a:focus-visible,
  body.auth-route button:focus,
  body.auth-route button:focus-visible,
  body.auth-route a:focus,
  body.auth-route a:focus-visible {
    outline: none;
    box-shadow: none;
  }
}

/* ===== site wrap & framed sections ===== */
body.has-lab-hero .lab-site-wrap {
  padding-bottom: clamp(24px, 4vw, 48px);
}

body.has-lab-hero .lab-section-frame {
  margin: 0 var(--lab-frame-margin) clamp(20px, 3vw, 32px);
  padding: var(--lab-frame-pad);
  background: var(--lab-surface);
  border: 1px solid var(--lab-border);
  box-sizing: border-box;
}

body.has-lab-hero .lab-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lab-muted);
  margin-bottom: clamp(16px, 2.5vw, 28px);
}

body.has-lab-hero .lab-section-label .lab-hero-year-line {
  width: 48px;
  height: 1px;
  background: var(--lab-ink);
}

body.has-lab-hero .lab-section-title {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--lab-ink);
}

body.has-lab-hero .lab-section-sub {
  font-size: 15px;
  color: var(--lab-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

/* ===== services showcase ===== */
@keyframes serviceFaceIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes serviceCheckIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.has-lab-hero .services-showcase {
  padding: clamp(8px, 2vw, 16px) 0 0;
}

body.has-lab-hero .services-showcase__frame {
  position: relative;
  margin: 0 var(--lab-frame-margin) clamp(20px, 3vw, 32px);
  padding: var(--lab-frame-pad);
  background: var(--lab-surface);
  border: 1px solid var(--lab-border);
  border-radius: 4px;
  box-sizing: border-box;
}

body.has-lab-hero .services-showcase__header {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 36px);
}

body.has-lab-hero .services-showcase__badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--lab-surface);
  color: var(--lab-ink);
  border: 2px solid var(--lab-ink);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06);
}

body.has-lab-hero .services-showcase__subtitle {
  margin: 16px auto 0;
  max-width: 720px;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lab-muted);
  line-height: 1.6;
}

body.has-lab-hero .services-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 16px);
}

body.has-lab-hero .services-card {
  position: relative;
  min-height: 360px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid var(--lab-border-strong);
  background: var(--lab-bg);
  color: var(--lab-ink);
  box-shadow: none;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

body.has-lab-hero .services-card--security,
body.has-lab-hero .services-card--content,
body.has-lab-hero .services-card--ai,
body.has-lab-hero .services-card--commerce {
  background: var(--lab-bg);
  color: var(--lab-ink);
}

body.has-lab-hero .services-card:hover {
  border-color: rgba(17, 17, 17, 0.22);
}

body.has-lab-hero .services-card.is-expanded {
  border-color: var(--lab-ink);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  z-index: 2;
}

body.has-lab-hero .services-card__inner {
  display: grid;
  grid-template: 1fr / 1fr;
  min-height: 360px;
  padding: 18px 16px 20px;
  box-sizing: border-box;
}

body.has-lab-hero .services-card__front,
body.has-lab-hero .services-card__detail {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.38s;
}

body.has-lab-hero .services-card__front {
  align-items: center;
  text-align: center;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

body.has-lab-hero .services-card__detail {
  justify-content: flex-start;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
}

body.has-lab-hero .services-card.is-expanded .services-card__front {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.97);
  pointer-events: none;
}

body.has-lab-hero .services-card.is-expanded .services-card__detail {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: serviceFaceIn 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

body.has-lab-hero .services-card__art {
  width: 100%;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

body.has-lab-hero .services-card__svg {
  width: 96px;
  height: 96px;
  color: var(--lab-ink);
  opacity: 0.72;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.has-lab-hero .services-card:hover .services-card__svg {
  opacity: 0.9;
}

body.has-lab-hero .services-card__title {
  margin: 0 0 10px;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--lab-ink);
}

body.has-lab-hero .services-card__desc {
  margin: 0 0 auto;
  padding: 0 4px 16px;
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.5;
  color: var(--lab-muted);
}

body.has-lab-hero .services-card__btn,
body.has-lab-hero .services-card__back {
  width: 100%;
  max-width: 220px;
  margin-top: auto;
  border: 1px solid var(--lab-border-strong);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--lab-surface);
  color: var(--lab-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

body.has-lab-hero .services-card__btn--primary,
body.has-lab-hero .services-card__btn--light {
  background: var(--lab-surface);
  color: var(--lab-ink);
  box-shadow: none;
}

body.has-lab-hero .services-card__btn:hover,
body.has-lab-hero .services-card__back:hover {
  border-color: var(--lab-ink);
  transform: translateY(-1px);
}

body.has-lab-hero .services-card__detail-intro {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--lab-muted);
}

body.has-lab-hero .services-card__checklist {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  width: 100%;
  overflow-y: auto;
  max-height: 220px;
}

body.has-lab-hero .services-card__checklist li {
  position: relative;
  padding: 0 0 8px 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: left;
  color: var(--lab-ink);
}

body.has-lab-hero .services-card__checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--lab-ink);
}

body.has-lab-hero .services-card.is-expanded .services-card__checklist li {
  animation: serviceCheckIn 0.38s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

body.has-lab-hero .services-card.is-expanded .services-card__checklist li:nth-child(1) { animation-delay: 0.06s; }
body.has-lab-hero .services-card.is-expanded .services-card__checklist li:nth-child(2) { animation-delay: 0.1s; }
body.has-lab-hero .services-card.is-expanded .services-card__checklist li:nth-child(3) { animation-delay: 0.14s; }
body.has-lab-hero .services-card.is-expanded .services-card__checklist li:nth-child(4) { animation-delay: 0.18s; }
body.has-lab-hero .services-card.is-expanded .services-card__checklist li:nth-child(5) { animation-delay: 0.22s; }
body.has-lab-hero .services-card.is-expanded .services-card__checklist li:nth-child(6) { animation-delay: 0.26s; }
body.has-lab-hero .services-card.is-expanded .services-card__checklist li:nth-child(7) { animation-delay: 0.3s; }
body.has-lab-hero .services-card.is-expanded .services-card__checklist li:nth-child(8) { animation-delay: 0.34s; }

body.has-lab-hero .services-card__back {
  align-self: center;
  margin-top: 14px;
}

body.has-lab-hero .services-showcase__guarantee {
  width: fit-content;
  margin: clamp(22px, 3vw, 30px) auto 0;
  padding: 10px 20px;
  border: 1px solid var(--lab-border-strong);
  border-radius: 999px;
  background: var(--lab-surface);
  color: var(--lab-ink);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  body.has-lab-hero .services-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.has-lab-hero .services-showcase__grid {
    grid-template-columns: 1fr;
  }

  body.has-lab-hero .services-card,
  body.has-lab-hero .services-card__inner {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.has-lab-hero .services-card,
  body.has-lab-hero .services-card__front,
  body.has-lab-hero .services-card__detail,
  body.has-lab-hero .services-card__svg,
  body.has-lab-hero .services-card__btn,
  body.has-lab-hero .services-card__back {
    transition: none !important;
    animation: none !important;
  }

  body.has-lab-hero .services-card.is-expanded .services-card__checklist li {
    animation: none !important;
  }
}

/* ===== about (legacy fallback) ===== */
body.has-lab-hero .about-section {
  background: transparent;
  padding: clamp(8px, 2vw, 20px) 0 0;
  overflow: visible;
}

body.has-lab-hero .about-section::before,
body.has-lab-hero .about-section::after {
  display: none;
}

body.has-lab-hero .about-inner {
  max-width: none;
}

body.has-lab-hero .about-section h2 {
  text-align: left;
  font-size: inherit;
  margin: 0;
}

body.has-lab-hero .about-section .about-subhead {
  text-align: left;
  font-size: 15px;
  color: var(--lab-muted);
  margin-bottom: 12px;
}

body.has-lab-hero .about-section .about-desc {
  text-align: left;
  max-width: 720px;
  color: var(--lab-muted);
  margin-bottom: 32px;
}

body.has-lab-hero .about-grid {
  gap: 16px;
}

body.has-lab-hero .about-card {
  border: 1px solid var(--lab-border);
  border-radius: 4px;
  box-shadow: none;
  background: var(--lab-bg);
  overflow: hidden;
}

body.has-lab-hero .about-card-icon {
  width: 56px;
  height: 56px;
  margin: 20px auto 0;
  border-radius: 12px;
  box-shadow: none;
}

body.has-lab-hero .about-card-icon svg {
  width: 24px;
  height: 24px;
}

body.has-lab-hero .about-card-body {
  padding: 16px 20px 22px;
  background: var(--lab-surface);
}

body.has-lab-hero .about-card h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

body.has-lab-hero .about-card p {
  font-size: 14px;
  color: var(--lab-muted);
  line-height: 1.6;
}

body.has-lab-hero .about-cta {
  margin-top: 32px;
  text-align: left;
}

body.has-lab-hero .about-order-btn,
body.has-lab-hero .btn-cta {
  background: var(--lab-ink) !important;
  color: #fff !important;
  border: 1px solid var(--lab-ink) !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 12px 24px !important;
  box-shadow: none !important;
  transform: none !important;
}

body.has-lab-hero .about-order-btn:hover,
body.has-lab-hero .btn-cta:hover {
  opacity: 0.88 !important;
  transform: none !important;
  filter: none !important;
}

/* ===== portfolio ===== */
body.has-lab-hero .case-study {
  background: transparent;
  border: none;
  padding: clamp(8px, 2vw, 20px) 0 0;
}

body.has-lab-hero .case-study__frame {
  margin: 0 var(--lab-frame-margin) 0;
  padding: var(--lab-frame-pad);
  background: var(--lab-surface);
  border: 1px solid var(--lab-border);
}

body.has-lab-hero .case-study__grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

@media (min-width: 900px) {
  body.has-lab-hero .case-study__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 44%);
  }
}

body.has-lab-hero .case-study__title {
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.05;
}

body.has-lab-hero .case-study__tag {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lab-muted, #6b6b66);
}

body.has-lab-hero .case-study__desc {
  margin: 0 0 20px;
  max-width: 560px;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.65;
  color: var(--lab-muted, #6b6b66);
}

body.has-lab-hero .case-study__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

body.has-lab-hero .case-study__features li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lab-ink);
}

body.has-lab-hero .case-study__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lab-ink);
}

body.has-lab-hero .case-study__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--lab-border-strong);
  border-radius: 999px;
  background: var(--lab-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

body.has-lab-hero .case-study__cta:hover {
  opacity: 0.88;
}

body.has-lab-hero .case-study__preview {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--lab-border);
  background: var(--lab-bg);
  text-decoration: none;
}

body.has-lab-hero .case-study__preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 420px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body.has-lab-hero .case-study__preview:hover img {
  transform: scale(1.02);
}

body.has-lab-hero .portfolio-intro {
  background: transparent;
  border: none;
  padding: clamp(8px, 2vw, 20px) 0 0;
  text-align: left;
}

body.has-lab-hero .portfolio-intro .lab-section-frame {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: clamp(12px, 2vw, 20px);
}

body.has-lab-hero .portfolio-intro .lab-section-sub {
  margin-bottom: clamp(12px, 2vw, 20px);
}

body.has-lab-hero .portfolio-intro h2 {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

body.has-lab-hero .portfolio-intro p {
  text-align: left;
  margin: 0;
  max-width: 720px;
}

body.has-lab-hero .shots-grid {
  margin: 0 var(--lab-frame-margin) clamp(20px, 3vw, 32px);
  padding: 0 var(--lab-frame-pad) var(--lab-frame-pad);
  background: var(--lab-surface);
  border: 1px solid var(--lab-border);
  border-top: none;
  max-width: none;
  gap: 20px;
}

body.has-lab-hero .shot-thumb {
  border-radius: 4px;
  border: 1px solid var(--lab-border);
}

body.has-lab-hero .shot-card--featured .shot-thumb {
  border-color: var(--lab-border-strong);
}

body.has-lab-hero .shot-desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--lab-muted, #6b6b66);
  font-weight: 400;
}

body.has-lab-hero .shot-meta .author-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.has-lab-hero .overlay-btn.pink {
  background: var(--lab-ink);
  color: #fff;
}

body.has-lab-hero .overlay-btn.pink:hover {
  background: #000;
}

body.has-lab-hero .stat.liked,
body.has-lab-hero .stat.liked svg {
  color: var(--lab-ink);
  stroke: var(--lab-ink);
  fill: #ececea;
}

body.has-lab-hero .shot-bookmark.saved svg {
  fill: var(--lab-ink);
  stroke: var(--lab-ink);
}

body.has-lab-hero .promo-card {
  border-radius: 4px;
  border: 1px solid var(--lab-border);
  background: var(--lab-bg);
}

/* ===== pricing ===== */
body.has-lab-hero .pricing-section {
  background: transparent;
  border: none;
  padding: clamp(8px, 2vw, 20px) 0 0;
}

body.has-lab-hero .pricing-header {
  text-align: left;
  margin: 0 0 28px;
  max-width: none;
}

body.has-lab-hero .pricing-header h2 {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

body.has-lab-hero .pricing-grid {
  gap: 16px;
}

body.has-lab-hero .pricing-card {
  border-radius: 4px;
  border: 1px solid var(--lab-border);
  box-shadow: none;
  background: var(--lab-bg);
}

body.has-lab-hero .pricing-card:hover {
  transform: none;
  box-shadow: var(--shadow-hover);
}

body.has-lab-hero .pricing-card.featured {
  border-color: var(--lab-ink);
  border-left-width: 3px;
  background: var(--lab-surface);
}

body.has-lab-hero .pricing-card.featured .card-header {
  background: var(--lab-bg);
}

body.has-lab-hero .pricing-card .card-header {
  padding: 24px 24px 0;
  background: transparent;
}

body.has-lab-hero .pricing-card .plan-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.has-lab-hero .pricing-card .plan-price-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.has-lab-hero .plan-features li::before {
  color: var(--lab-ink);
}

body.has-lab-hero .plan-cta,
body.has-lab-hero .pricing-card.featured .plan-cta {
  background: var(--lab-ink);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

body.has-lab-hero .pricing-card .featured-label {
  background: var(--lab-ink);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.has-lab-hero .pricing-note {
  background: var(--lab-bg);
  color: var(--lab-ink);
  border: 1px solid var(--lab-border);
  border-radius: 4px;
  margin-top: 24px;
}

body.has-lab-hero .pricing-note > p {
  color: var(--lab-muted);
}

body.has-lab-hero .pricing-note h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 18px;
}

body.has-lab-hero .addon-item {
  background: var(--lab-surface);
  border: 1px solid var(--lab-border);
  border-radius: 4px;
}

body.has-lab-hero .addon-item:hover {
  background: #fff;
}

body.has-lab-hero .addon-item .addon-title {
  color: var(--lab-ink);
}

body.has-lab-hero .addon-item .addon-price {
  color: var(--lab-muted);
  font-weight: 800;
}

/* ===== chat section ===== */
body.has-lab-hero #chatSection {
  border: none;
  padding: clamp(8px, 2vw, 20px) var(--lab-frame-margin) 0;
}

body.has-lab-hero #chatSection h2 {
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

body.has-lab-hero .chat-shell {
  border-radius: 4px;
  border: 1px solid var(--lab-border);
  box-shadow: none;
}

body.has-lab-hero .chat-sidebar {
  background: var(--lab-bg);
}

body.has-lab-hero .chat-sidebar-head,
body.has-lab-hero .chat-main-head {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.has-lab-hero .chat-bubble.mine,
body.has-lab-hero .chat-msg.mine {
  background: var(--lab-ink);
  border-color: var(--lab-ink);
}

body.has-lab-hero #chatSendBtn {
  background: var(--lab-ink);
  border-radius: 999px;
}

/* ===== footer ===== */
body.has-lab-hero footer {
  margin: clamp(20px, 3vw, 32px) var(--lab-frame-margin) 0;
  padding: var(--lab-frame-pad);
  background: var(--lab-surface);
  border: 1px solid var(--lab-border);
  border-radius: 0;
}

body.has-lab-hero .footer-links-row a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.has-lab-hero .social-icon {
  border: 1px solid var(--lab-border);
  border-radius: 4px;
}

body.has-lab-hero .footer-bottom {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lab-muted);
}

/* ===== drawer ===== */
body.has-lab-hero .drawer {
  background: var(--lab-surface);
  border-left: 1px solid var(--lab-border);
}

body.has-lab-hero .drawer-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
}

body.has-lab-hero .drawer-btn-login,
body.has-lab-hero .drawer-btn-signup {
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

body.has-lab-hero .drawer-btn-login {
  background: var(--lab-ink);
  color: #fff;
}

/* ===== modals ===== */
body.has-lab-hero .auth-modal,
body.has-lab-hero .order-modal {
  border-radius: 4px;
  border: 1px solid var(--lab-border);
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.12);
}

body.has-lab-hero .auth-panel-left {
  background: var(--lab-bg);
}

body.has-lab-hero .auth-submit,
body.has-lab-hero .order-modal .btn-primary {
  background: var(--lab-ink);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

body.has-lab-hero .lang-switch button,
body.profile-route .lang-switch button {
  border: 1.5px solid var(--lab-border-strong);
  background: var(--lab-surface);
  color: var(--lab-muted);
  border-radius: 999px;
}

body.has-lab-hero .lang-switch button:hover,
body.profile-route .lang-switch button:hover {
  color: var(--lab-ink);
  border-color: rgba(17, 17, 17, 0.35);
}

body.has-lab-hero .lang-switch button.active,
body.profile-route .lang-switch button.active {
  background: var(--lab-surface);
  color: var(--lab-ink);
  border: 2px solid var(--lab-ink);
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06);
}

/* ===== top nav (profile + legacy) ===== */
body.has-lab-hero nav,
body.profile-route nav {
  background: var(--lab-surface);
  border-bottom: 1px solid var(--lab-border);
}

body.has-lab-hero .nav-link,
body.profile-route .nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
}

body.has-lab-hero .nav-link.active,
body.profile-route .nav-link.active {
  color: var(--lab-ink);
  background: var(--lab-bg);
}

body.has-lab-hero .btn-login,
body.profile-route .btn-login {
  background: var(--lab-ink);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.has-lab-hero .gtray-site-loader-spinner,
body.profile-route .gtray-site-loader-spinner {
  border-top-color: var(--lab-ink);
}

/* ===== profile dashboard ===== */
body.profile-route {
  background: var(--lab-bg) !important;
}

body.profile-route .profile-dash-sidebar,
body.profile-route .profile-dash-rail,
body.profile-route .profile-dash-current,
body.profile-route .profile-dash-project,
body.profile-route .profile-dash-empty,
body.profile-route .profile-card {
  border-radius: 4px;
  border-color: var(--lab-border);
  box-shadow: none;
}

body.profile-route .profile-dash-nav-btn.active {
  background: var(--lab-bg);
  color: var(--lab-ink);
  box-shadow: inset 3px 0 0 var(--lab-ink);
}

body.profile-route .profile-dash-tag {
  background: var(--lab-bg);
  color: var(--lab-ink);
}

body.profile-route .profile-dash-progress-bar span {
  background: var(--lab-ink);
}

body.profile-route .profile-btn-primary {
  background: var(--lab-ink);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

body.profile-route .profile-guest {
  background: var(--lab-surface);
  border: 1px solid var(--lab-border);
  border-radius: 4px;
}

body.profile-route .profile-dash-shell {
  background: transparent;
}

body.profile-route .profile-dash-headline {
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

body.profile-route .profile-dash-sidebar {
  background: var(--lab-surface);
}

body.profile-route .profile-dash-main,
body.profile-route .profile-dash-rail {
  background: var(--lab-surface);
}

body.profile-route .profile-dash-nav-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
}

body.profile-route .profile-dash-logout {
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--lab-border);
  background: var(--lab-bg);
  color: var(--lab-ink);
}

/* ===== auth page ===== */
body.auth-route {
  background: var(--lab-bg) !important;
}

body.auth-route .auth-page-bg {
  background: var(--lab-bg);
}

body.auth-route .auth-page-shape {
  display: none;
}

body.auth-route .auth-page-card {
  border: 1px solid var(--lab-border);
  border-radius: 4px;
  box-shadow: none;
}

body.auth-route .auth-page-submit,
body.auth-route .auth-submit {
  background: var(--lab-ink) !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

body.auth-route .auth-page-title {
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* ===== loader ===== */
html.gtray-booting .gtray-site-loader {
  background: var(--lab-bg);
}

@media (max-width: 768px) {
  body.has-lab-hero .lab-section-frame,
  body.has-lab-hero .shots-grid,
  body.has-lab-hero footer {
    margin-left: 12px;
    margin-right: 12px;
    padding: 20px 16px;
  }
}
