:root {
  color-scheme: dark;
  --page: #020817;
  --panel: rgba(4, 15, 40, 0.92);
  --panel-soft: rgba(8, 24, 56, 0.78);
  --line: rgba(76, 195, 255, 0.28);
  --line-strong: rgba(76, 195, 255, 0.62);
  --text: #f5f8ff;
  --copy: #aab7d1;
  --muted: #aab7d1;
  --cyan: #4cc3ff;
  --cyan-bright: #93ddff;
  --purple: #d023e8;
  --pink: #d98cff;
  --blue: #1877f2;
  --green: #46e6a8;
  --gold: #ffd166;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --display: Inter, Arial, Helvetica, sans-serif;
  --body: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(
      rgba(2, 8, 23, 0.54),
      rgba(2, 8, 23, 0.58)
    ),
    url("/aigency-dev-lab/tool-background-1.png") center top / cover fixed,
    var(--page);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(76, 195, 255, 0.72);
  outline-offset: 3px;
}

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

.lab-page {
  width: min(1580px, calc(100% - 22px));
  margin: 0 auto;
  padding: 12px 0 6px;
}

.lab-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(76, 195, 255, 0.27);
  border-radius: 22px;
  background:
    linear-gradient(125deg, rgba(5, 17, 40, 0.96), rgba(7, 13, 36, 0.94) 54%, rgba(27, 8, 50, 0.93));
  box-shadow: var(--shadow);
}

.lab-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  right: -190px;
  top: -250px;
  border: 1px solid rgba(119, 125, 255, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 62px rgba(174, 49, 255, 0.035),
    0 0 0 132px rgba(98, 66, 255, 0.024);
}

.lab-topbar {
  min-height: 70px;
  padding: 11px clamp(16px, 2.5vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(76, 195, 255, 0.13);
  background: rgba(2, 7, 19, 0.22);
}

.lab-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.lab-logo {
  display: block;
  width: clamp(136px, 11vw, 166px);
  height: auto;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 46px;
  background: rgba(145, 169, 211, 0.22);
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  color: var(--cyan);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 3px;
  color: #8190a9;
  font-size: 0.58rem;
  line-height: 1.35;
}

.lab-status {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(70, 230, 168, 0.25);
  border-radius: 999px;
  color: #bdfbe7;
  background: rgba(4, 24, 34, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-dot,
.availability > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px rgba(70, 230, 168, 0.86);
}

.hero-content {
  padding: clamp(30px, 4.5vw, 62px) clamp(26px, 4vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.62fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.eyebrow,
.section-kicker,
.stage-label {
  margin: 0;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 13px 0 15px;
  font-family: var(--display);
  font-size: clamp(2.45rem, 5.3vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 48%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 790px;
  margin: 0;
  color: var(--copy);
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  line-height: 1.75;
}

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

.primary-button,
.secondary-button,
.card-action {
  min-height: 43px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 0.99rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button,
.card-action {
  border-color: rgba(76, 195, 255, 0.44);
  color: #03101e;
  background: linear-gradient(135deg, var(--cyan), #72e0ff);
  box-shadow: 0 10px 26px rgba(76, 195, 255, 0.16);
}

.secondary-button {
  color: #e5ebf8;
  background: rgba(8, 18, 40, 0.74);
}

.primary-button:hover,
.secondary-button:hover,
.card-action:hover {
  transform: translateY(-2px);
}

.secondary-button:hover {
  border-color: rgba(76, 195, 255, 0.45);
  background: rgba(12, 32, 59, 0.88);
}

.start-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(208, 35, 232, 0.28);
  border-radius: 18px;
  background: rgba(7, 12, 33, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.start-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #bfc8d9;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.start-number {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 255, 0.28);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(76, 195, 255, 0.08);
}

.start-number svg {
  width: 16px;
  height: 16px;
}

.start-symbol {
  width: 43px;
  height: 43px;
  margin-top: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 255, 0.35);
  border-radius: 13px;
  color: var(--cyan);
  background: rgba(18, 47, 77, 0.42);
}

.start-symbol svg {
  width: 21px;
  height: 21px;
}

.start-card h2 {
  margin: 17px 0 8px;
  font-family: var(--display);
  font-size: 1.1rem;
}

.start-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.start-card > a {
  margin-top: 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-bright);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.path-section,
.tools-section {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(76, 195, 255, 0.14);
  border-radius: 20px;
  background: rgba(4, 11, 28, 0.74);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: 24px;
  align-items: end;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.path-grid {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  list-style: none;
}

.path-grid li {
  --path-accent: var(--cyan);
  position: relative;
  min-width: 0;
  padding: 15px 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(76, 195, 255, 0.13);
  border-left-width: 0;
  background: rgba(8, 19, 42, 0.62);
}

.path-grid li.path-accent-purple { --path-accent: var(--purple); }
.path-grid li.path-accent-green { --path-accent: var(--green); }
.path-grid li.path-accent-gold { --path-accent: var(--gold); }
.path-grid li.path-accent-blue { --path-accent: var(--blue); }

.path-grid li:first-child {
  border-left-width: 1px;
  border-radius: 12px 0 0 12px;
}

.path-grid li:last-child {
  border-radius: 0 12px 12px 0;
}

.path-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--path-accent) 44%, transparent);
  border-radius: 10px;
  color: var(--path-accent);
  background: color-mix(in srgb, var(--path-accent) 10%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.path-icon svg {
  width: 18px;
  height: 18px;
}

.path-grid strong {
  margin-top: 8px;
  color: #eaf0fb;
  font-family: var(--display);
  font-size: 0.7rem;
}

.path-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.55rem;
  line-height: 1.35;
}

.tools-heading {
  align-items: center;
}

.tool-counts {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.tool-counts span {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(76, 195, 255, 0.14);
  border-radius: 999px;
  color: #8c9ab0;
  background: rgba(8, 18, 39, 0.66);
  font-size: 0.61rem;
  font-weight: 700;
}

.tool-counts strong {
  color: var(--cyan);
  font-size: 0.78rem;
}

.tool-controls {
  margin-top: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.search-field {
  width: min(520px, 100%);
  min-height: 44px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(76, 195, 255, 0.18);
  border-radius: 11px;
  background: rgba(2, 9, 24, 0.78);
}

.search-icon {
  color: var(--cyan);
  font-size: 1.05rem;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #edf4ff;
  background: transparent;
  font-size: 0.72rem;
}

.search-field input::placeholder {
  color: #65738b;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter-group button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(76, 195, 255, 0.14);
  border-radius: 9px;
  color: #8997ad;
  background: rgba(7, 17, 37, 0.7);
  font-size: 0.61rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-group button.active {
  border-color: rgba(76, 195, 255, 0.42);
  color: #dff9ff;
  background: rgba(17, 58, 85, 0.58);
}

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

.tool-card {
  --accent: var(--cyan);
  position: relative;
  min-width: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(76, 195, 255, 0.15);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(8, 19, 43, 0.92), rgba(5, 11, 29, 0.92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.75;
}

.tool-card.accent-purple { --accent: var(--purple); }
.tool-card.accent-green { --accent: var(--green); }
.tool-card.accent-gold { --accent: var(--gold); }
.tool-card.accent-blue { --accent: var(--blue); }

.tool-card.recommended {
  border-color: rgba(76, 195, 255, 0.38);
  box-shadow: 0 18px 48px rgba(76, 195, 255, 0.11);
}

.recommended-label {
  margin: -20px -20px 16px;
  padding: 7px 20px;
  color: #041423;
  background: linear-gradient(90deg, var(--cyan), #72e0ff);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 11px;
  color: var(--accent);
  background: rgba(12, 29, 54, 0.68);
}

.tool-icon svg {
  width: 20px;
  height: 20px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #90a0b6;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.availability > span {
  width: 6px;
  height: 6px;
}

.stage-label {
  margin-top: 20px;
  color: var(--accent);
  font-size: 0.57rem;
}

.tool-card h3 {
  margin: 7px 0 8px;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.25;
}

.tool-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.6;
}

.tool-tags {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tags span {
  padding: 5px 8px;
  border: 1px solid rgba(120, 142, 180, 0.16);
  border-radius: 999px;
  color: #8d9bb1;
  background: rgba(10, 22, 43, 0.62);
  font-size: 0.52rem;
  font-weight: 700;
}

.outcome {
  margin-top: 17px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(76, 195, 255, 0.11);
  border-radius: 11px;
  background: rgba(3, 10, 25, 0.58);
}

.outcome strong {
  color: #dbe5f5;
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.outcome span {
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.5;
}

.card-action {
  width: 100%;
  margin-top: 16px;
}

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

.no-results {
  margin: 22px 0 0;
  padding: 24px;
  border: 1px dashed rgba(76, 195, 255, 0.2);
  border-radius: 14px;
  color: #8d9bb2;
  text-align: center;
}

.creator-message-prompt {
  margin: 17px 0 -11px;
  display: flex;
  justify-content: center;
}

.creator-message-trigger {
  min-width: min(410px, 100%);
  min-height: 58px;
  padding: 8px 12px 8px 9px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(76, 195, 255, 0.28);
  border-radius: 14px;
  color: #edf6ff;
  background:
    linear-gradient(135deg, rgba(8, 24, 54, 0.95), rgba(14, 13, 42, 0.95));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.creator-message-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 195, 255, 0.56);
  box-shadow:
    0 15px 32px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(76, 195, 255, 0.08);
}

.creator-trigger-icon,
.creator-message-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 255, 0.36);
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(76, 195, 255, 0.09);
}

.creator-trigger-icon svg,
.creator-message-icon svg {
  width: 20px;
  height: 20px;
}

.creator-trigger-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.creator-trigger-copy small {
  color: var(--cyan);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.creator-trigger-copy strong {
  overflow: hidden;
  color: #f4f8ff;
  font-family: var(--display);
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-trigger-arrow {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #041423;
  background: var(--cyan);
  font-size: 0.92rem;
  font-weight: 900;
}

.creator-message-modal {
  width: min(900px, calc(100% - 28px));
  max-height: min(86vh, 780px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(76, 195, 255, 0.34);
  border-radius: 20px;
  color: var(--text);
  background:
    radial-gradient(circle at 3% 4%, rgba(76, 195, 255, 0.13), transparent 30%),
    radial-gradient(circle at 98% 96%, rgba(208, 35, 232, 0.1), transparent 32%),
    linear-gradient(135deg, #07152f, #080d25 58%, #110c2d);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.creator-message-modal::backdrop {
  background: rgba(1, 5, 17, 0.82);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.creator-message-modal[open] {
  animation: creator-message-in 170ms ease-out;
}

@keyframes creator-message-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.creator-message-modal-shell {
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
}

.creator-message-modal-header {
  padding: 18px 20px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(76, 195, 255, 0.14);
  background: rgba(2, 8, 24, 0.3);
}

.creator-message-modal-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.creator-message-modal-title h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  line-height: 1.15;
}

.creator-message-close {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 255, 0.22);
  border-radius: 50%;
  color: #dfeaff;
  background: rgba(8, 22, 47, 0.8);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease;
}

.creator-message-close:hover {
  border-color: rgba(76, 195, 255, 0.56);
  background: rgba(17, 47, 78, 0.9);
}

.creator-message-content {
  min-height: 0;
  padding: clamp(22px, 3.3vw, 34px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.05);
}

.creator-message-content::-webkit-scrollbar {
  width: 5px;
}

.creator-message-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.creator-message-content::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: linear-gradient(var(--cyan), var(--purple));
}

.creator-message-content p {
  margin: 0;
  color: #aebbd1;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  line-height: 1.78;
}

.creator-message-content p + p {
  margin-top: 17px;
}

.creator-message-content .creator-message-lead {
  color: #eef4ff;
  font-size: clamp(0.87rem, 1.08vw, 0.98rem);
  font-weight: 650;
  line-height: 1.72;
}

.creator-message-content .creator-message-closing {
  color: #dfe9f8;
  font-weight: 650;
}

.creator-signature {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 5px;
  text-align: right;
}

.creator-signature img {
  display: block;
  width: min(250px, 100%);
  height: auto;
  object-fit: contain;
}

.creator-signature small {
  padding-right: 8px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lab-footer {
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 28px 18px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #74839c;
  background: transparent;
  text-align: center;
}

.lab-footer img {
  display: block;
  width: 140px;
  height: auto;
  object-fit: contain;
}

.lab-footer strong {
  color: #dfe7f4;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-footer span,
.lab-footer small {
  font-size: 0.59rem;
}

@media (max-width: 1100px) {
  .path-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .path-grid li,
  .path-grid li:first-child,
  .path-grid li:last-child {
    border-left-width: 1px;
    border-radius: 10px;
  }

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

@media (max-width: 820px) {
  .brand-copy,
  .brand-divider {
    display: none;
  }

  .hero-content,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .start-card {
    max-width: 560px;
  }

  .section-heading {
    align-items: start;
  }

  .tool-counts {
    justify-content: flex-start;
  }

  .tool-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-group {
    justify-content: flex-start;
  }

}

@media (max-width: 620px) {
  .lab-page {
    width: min(100% - 18px, 1580px);
    padding-top: 9px;
  }

  .lab-topbar {
    min-height: 65px;
    padding: 9px 11px;
  }

  .lab-logo {
    width: 122px;
  }

  .lab-status {
    width: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .hero-content {
    padding: 27px 20px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .path-section,
  .tools-section {
    padding: 20px 15px;
  }

  .creator-message-prompt {
    margin-top: 14px;
  }

  .creator-message-trigger {
    min-width: 0;
    width: 100%;
  }

  .creator-message-modal {
    width: calc(100% - 18px);
    max-height: 90vh;
    border-radius: 16px;
  }

  .creator-message-modal-shell {
    max-height: 90vh;
  }

  .creator-message-modal-header {
    padding: 14px;
    gap: 12px;
  }

  .creator-message-modal-title {
    gap: 10px;
  }

  .creator-message-modal-title .creator-message-icon {
    width: 36px;
    height: 36px;
  }

  .creator-message-modal-title h2 {
    font-size: 1.05rem;
  }

  .creator-message-content {
    padding: 19px 17px 22px;
  }

  .creator-message-content p {
    font-size: 0.78rem;
    line-height: 1.72;
  }

  .creator-signature {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .creator-signature small {
    padding-right: 0;
    padding-left: 8px;
  }

  .path-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-counts span:last-child {
    display: none;
  }

  .filter-group button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.tool-grid > .workbench-grid {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 620px) {
  .tool-grid > .workbench-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   DASHBOARD ALIGNMENT REFINEMENTS
========================================= */

/* Correct the Guide card button text */
.start-card.tool-card > a.card-action,
.start-card.tool-card > a.card-action:visited,
.start-card.tool-card > a.card-action span {
  color: #03101e;
  font-size: 0.99rem;
}
/* Center the hero copy inside its left column */
.hero-copy {
  align-self: center;
  text-align: center;
}

.hero-copy h1,
.hero-description {
  margin-left: auto;
  margin-right: auto;
}

/* Center the headings in the Path and Applications containers */
.path-section > .section-heading,
.tools-section > .section-heading {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.path-section > .section-heading > p,
.tools-section > .section-heading > p {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-brand-lockup {
  width: fit-content;
  margin: 0 auto 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;

  color: inherit;
  text-align: center;
  text-decoration: none;
}

.hero-brand-logo {
  display: block;
  width: 170px;
  height: auto;
  object-fit: contain;
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero-brand-text strong {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: none;
}

.hero-brand-text small {
  margin-top: 3px;
  color: var(--cyan);
  font-size: 0.69rem;
  line-height: 1.4;
}

/* =========================================
   HERO SIZING AND SPACING
========================================= */

.hero-content {
  padding: clamp(38px, 3.8vw, 52px) clamp(26px, 4vw, 58px);
  gap: clamp(30px, 5vw, 70px);
}

.hero-brand-lockup {
  margin: 0 auto 10px;
  gap: 6px;
}

.hero-brand-logo {
  width: 290px;
}

.hero-brand-text {
  gap: 2px;
}

.hero-brand-text strong {
  font-size: 1.5rem;
}

.hero-brand-text small {
  font-size: 0.90rem;
  font-weight:700;
  line-height: 1.45;
  margin-bottom:30px;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 8px auto 17px;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
}

.hero-description {
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 620px) {
  .hero-brand-logo {
    width: 155px;
  }

  .hero-brand-text strong {
    font-size: 0.7rem;
  }

  .hero-brand-text small {
    font-size: 0.56rem;
  }

  .hero-brand-lockup {
    margin-bottom: 8px;
  }
}

/* Google AI Studio launcher */
.ai-studio-launch-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 6px;
}

.ai-studio-launch-button {
  width: min(100%, 290px);
  margin: 0;
}

.tool-card {
    scroll-margin-top: 30px;
}


.tool-grid .card-action,
.tool-grid .card-action:visited,
.tool-grid .card-action span {
  color: #dff8ff;
}

.tool-grid .card-action {
  border: 1px solid rgba(76, 195, 255, 0.38);

  background:
    linear-gradient(
      90deg,
      rgba(76, 195, 255, 0.12),
      rgba(41, 142, 197, 0.16)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

.tool-grid .card-action:hover,
.tool-grid .card-action:focus-visible {
  color: #03101e;
  border-color: transparent;

  background:
    linear-gradient(
      90deg,
      var(--cyan),
      #70dcf5
    );

  box-shadow:
    0 10px 26px rgba(76, 195, 255, 0.22);

  transform: translateY(-1px);
}

.tool-grid .card-action:hover span,
.tool-grid .card-action:focus-visible span {
  color: #03101e;
}
