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

.studio-action {
  grid-template-columns: minmax(0, 1fr);
}

.studio-action-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-action-controls .analyze-button {
  min-width: 0;
  flex: 1 1 auto;
}

.new-research-link {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: #d9e9dc;
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.new-research-link:hover,
.new-research-link:focus-visible {
  color: #fff;
}

.new-research-link:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 419px) {
  .studio-action-controls {
    flex-wrap: wrap;
    gap: 4px;
  }

  .studio-action-controls .analyze-button {
    flex-basis: 100%;
  }

  .new-research-link {
    margin-inline: auto;
  }
}

.studio-settings {
  display: grid;
  place-items: center;
}

.studio-settings svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.studio-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.prompt-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border: 1px solid rgba(169, 214, 111, .48);
  border-radius: 999px;
  background: rgba(169, 214, 111, .12);
  color: #d6efb5;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .75px;
  white-space: nowrap;
}

.hero-copy .speed-headline {
  font-size: clamp(38px, 10.5vw, 54px);
  line-height: .98;
  letter-spacing: -2.8px;
}

.hero-copy .speed-headline > span,
.hero-copy .speed-headline > em {
  display: block;
  white-space: normal;
  font-size: 1em;
  line-height: inherit;
  letter-spacing: inherit;
}

.closing .speed-claim {
  font-size: inherit;
  letter-spacing: inherit;
}

.closing .speed-claim > span,
.closing .speed-claim > em {
  display: block;
  white-space: normal;
}

footer p {
  max-width: 210px;
}

footer p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.optional-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #d9e4dd !important;
  font-size: 10px !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .8px !important;
}

.briefing-toggle {
  width: 100%;
  min-height: 58px;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 15px;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.briefing-toggle small {
  color: #b7c8be;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.briefing-toggle i {
  margin-left: auto;
  color: var(--lime);
  font-size: 22px;
  font-style: normal;
  transition: none;
}

.briefing.open .briefing-toggle i {
  transform: rotate(45deg);
}

.briefing-body[hidden] {
  display: none;
}

.task-progress {
  position: relative;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.task-progress[hidden] {
  display: none;
}

.task-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.task-progress-head strong {
  flex: 0 0 auto;
  color: #d6efb5;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.task-progress-track {
  position: relative;
  height: 8px;
  margin-top: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}

.task-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fbe59, #c7eb91);
  box-shadow: 0 0 16px rgba(169, 214, 111, .35);
  transition: width .25s ease;
}

.task-progress.indeterminate .task-progress-track i {
  width: 38%;
  animation: task-scan 1.35s ease-in-out infinite;
}

.task-progress.complete .task-progress-track i {
  width: 100%;
}

.task-progress.failed {
  border-color: rgba(255, 157, 144, .45);
  background: rgba(151, 45, 35, .22);
}

.task-progress.failed .task-progress-track i {
  background: #ff9d90;
  box-shadow: none;
}

.task-progress > p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  color: #c4d2ca;
  font-size: 12px;
  line-height: 1.45;
}

.task-progress time {
  margin-left: auto;
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.task-pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(169, 214, 111, .45);
  animation: task-pulse 1.4s ease-out infinite;
}

.task-progress.complete .task-pulse {
  animation: none;
}

.task-progress.failed .task-pulse {
  background: #ff9d90;
  animation: none;
}

@keyframes task-scan {
  from { transform: translateX(-115%); }
  to { transform: translateX(275%); }
}

@keyframes task-pulse {
  0% { box-shadow: 0 0 0 0 rgba(169, 214, 111, .45); }
  70% { box-shadow: 0 0 0 7px rgba(169, 214, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 214, 111, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .task-progress.indeterminate .task-progress-track i,
  .task-pulse {
    animation-duration: 3s;
  }
}

.story-optional {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  margin: 0 3px;
  padding: 3px 7px;
  border: 1px solid #b9caa6;
  border-radius: 999px;
  background: #edf3e3;
  color: #496a3f;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .65px;
  text-transform: uppercase;
  vertical-align: 1px;
}

.results-head h2 em {
  display: block;
  margin-top: 7px;
  color: #709b43;
  font-style: normal;
}

.result-rationale {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid currentColor;
  color: inherit;
  opacity: .78;
}

.result-rationale strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}

.result-rationale p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
}

.result-card .result-link {
  color: inherit;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.result-card .result-link:hover,
.result-card .result-link:focus-visible {
  text-decoration-thickness: 2px;
}

.image-workshop-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.download-all {
  min-height: 50px;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  font-weight: 800;
}

.download-all b {
  color: var(--lime);
  font-size: 20px;
}

.download-all:disabled {
  opacity: .5;
  cursor: wait;
}

.optimized-grid {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
  gap: 8px;
}

.optimized-card {
  flex: 0 0 74px;
  width: 74px;
  padding: 4px;
  border-radius: 10px;
}

.optimized-card img {
  border-radius: 7px;
}

.connection.degraded i {
  background: #d49252;
  box-shadow: 0 0 0 4px #d492521f;
}

.connection.unavailable {
  border-color: #c5635b;
  color: #8f302a;
}

.connection.unavailable i {
  background: #c64038;
  box-shadow: 0 0 0 4px #c6403820;
}

.provider-status {
  margin: 13px 0 0;
  color: #365d4e;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.provider-status.connected::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #71a747;
}

.budget-warning {
  margin: 12px 0 0;
  padding: 11px 12px;
  border: 1px solid #e2aaa5;
  border-radius: 9px;
  background: #fff1ef;
  color: #8d302a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.method.budget-exhausted {
  border-color: #d59791;
  background: #fff3f1;
}

.method.budget-exhausted small {
  color: #9b4038;
  font-weight: 750;
}

.job-stack {
  overflow: hidden;
  border: 1px solid #d5dbce;
  border-radius: 18px;
  background: rgba(255, 254, 249, .72);
}

.job-stack > summary {
  min-height: 70px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.job-stack > summary::-webkit-details-marker {
  display: none;
}

.job-stack > summary > span {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.job-stack > summary small {
  color: #73866f;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 1.1px;
}

.job-stack > summary strong {
  font-size: 16px;
  line-height: 1.3;
}

.job-stack > summary > b {
  min-width: 31px;
  height: 31px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e1eccf;
  color: #476b38;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.job-stack > summary > i {
  color: #709b43;
  font-size: 23px;
  font-style: normal;
  line-height: 1;
  transition: transform .2s ease;
}

.job-stack[open] > summary > i {
  transform: rotate(45deg);
}

.job-list {
  min-width: 0;
  max-height: 344px;
  padding: 0 10px 10px;
  display: grid;
  gap: 7px;
  overflow-x: hidden;
  overflow-y: auto;
}

.job-entry {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 67px;
  padding: 11px 12px;
  border: 1px solid #dde1d7;
  border-radius: 12px;
  background: #fffef9;
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  text-align: left;
}

.job-entry:hover,
.job-entry:focus-visible {
  border-color: #83a866;
  background: #f7faef;
  outline: none;
}

.job-entry:disabled {
  cursor: wait;
  opacity: .58;
}

.job-entry > span {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

.job-entry strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.job-entry small {
  color: #718077;
  font-size: 11px;
  line-height: 1.4;
}

.job-entry .job-image-input,
.result-input-audit {
  color: #55704f;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.job-entry .job-savings {
  color: #315f4b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-input-audit {
  margin-top: 10px;
}

.job-entry > b {
  flex: 0 0 auto;
  max-width: 100px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #edf3e4;
  color: #4c6d43;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-empty {
  margin: 0;
  padding: 14px 12px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.job-stack-pagination {
  min-height: 46px;
  padding: 5px 2px 0;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
}

.job-stack-pagination button {
  width: 38px;
  height: 38px;
  border: 1px solid #d5dbce;
  border-radius: 50%;
  background: #fffef9;
  color: var(--ink);
  font-weight: 850;
}

.job-stack-pagination button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.job-stack-pagination span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

@media (min-width: 820px) and (max-width: 999px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .hero-copy {
    max-width: 680px;
    padding-bottom: 0;
  }

  .studio,
  .job-stack {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: stretch;
    column-gap: 54px;
    row-gap: 46px;
  }

  .hero-copy {
    width: min(100%, 1180px);
    max-width: 1180px;
    padding-bottom: 0;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    text-align: center;
  }

  .hero-left {
    min-width: 0;
    min-height: 0;
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
    display: flex;
  }

  .hero-copy h1 {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(48px, 5.2vw, 76px);
    letter-spacing: -4px;
  }

  .hero-copy .trust-line {
    justify-content: center;
    margin-bottom: 0;
  }

  .hero-copy h1.speed-headline {
    font-size: clamp(48px, 5.2vw, 76px);
    letter-spacing: -.04em;
  }

  .studio {
    height: 100%;
    grid-column: 2;
    grid-row: 2;
  }

  .job-stack {
    width: 100%;
    height: 100%;
  }

  .job-stack[open] {
    display: flex;
    flex-direction: column;
  }

  .job-stack[open] .job-list {
    max-height: none;
    flex: 1;
  }

  .download-all {
    min-width: 210px;
    justify-self: end;
  }

  .optimized-card {
    flex-basis: 82px;
    width: 82px;
  }

}

@media (max-width: 999px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-left {
    display: contents;
  }

  .hero-copy {
    order: 1;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-copy .trust-line {
    justify-content: center;
  }

  .studio {
    order: 2;
  }

  .job-stack {
    order: 3;
    margin-top: 18px;
  }
}
