.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--brand-white);
  background: var(--brand-ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.assistant-hero {
  color: var(--brand-white);
  background:
    linear-gradient(135deg, rgba(0, 146, 203, 0.95), rgba(0, 112, 157, 0.98)),
    var(--brand-blue);
}

.top-nav,
.hero-shell,
.workspace,
.assistant-footer {
  width: min(calc(100% - 32px), var(--page-max));
  margin: auto;
}

.top-nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-nav div {
  display: flex;
  gap: 18px;
  overflow-x: auto;
}

.top-nav a {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-link {
  font-size: 15px;
}

.hero-shell {
  min-height: 410px;
  padding: clamp(48px, 7vw, 96px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 12px;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.assistant-hero .eyebrow {
  opacity: 0.86;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 0;
  color: #e4f7ff;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-logo {
  padding: 22px;
  border-radius: 28px;
  color: var(--brand-ink-soft);
  background: var(--brand-white);
  box-shadow: 0 22px 70px rgba(23, 48, 66, 0.18);
  transform: rotate(1.2deg);
}

.hero-logo img {
  width: 100%;
  aspect-ratio: 2048 / 1448;
  object-fit: contain;
}

.hero-logo span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
}

.workspace {
  padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 22px;
}

.control-panel,
.result-panel {
  border: 1px solid var(--brand-line);
  border-radius: 22px;
  background: var(--brand-white);
  box-shadow: 0 18px 50px rgba(23, 48, 66, 0.08);
}

.control-panel {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.result-panel {
  padding: 22px;
}

.panel-head {
  margin-bottom: 20px;
}

.panel-head .eyebrow {
  color: var(--brand-blue);
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
}

.result-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.result-chip {
  padding: 7px 11px;
  border-radius: 999px;
  color: #006f9b;
  background: var(--brand-blue-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.control-group {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.control-group legend,
.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
}

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

.choice-grid label {
  display: block;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  min-height: 44px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  color: var(--brand-ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.choice-grid input:checked + span {
  border-color: rgba(0, 146, 203, 0.35);
  color: var(--brand-white);
  background: var(--brand-blue);
}

.choice-grid input:focus-visible + span,
.field input:focus,
.field select:focus,
.field textarea:focus,
.copy-head button:focus-visible {
  outline: 3px solid rgba(0, 146, 203, 0.22);
  outline-offset: 2px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--brand-ink);
  background: #fbfdfe;
}

.field textarea {
  resize: vertical;
}

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

.result-card {
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f2fbff);
}

.result-card span {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #006f9b;
  background: var(--brand-blue-soft);
  font-size: 11px;
  font-weight: 700;
}

.result-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.result-card p {
  margin-bottom: 0;
  color: var(--brand-ink-soft);
  font-size: 14px;
}

.copy-block {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: #fcfeff;
}

.copy-head {
  min-height: 58px;
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--brand-line);
}

.copy-head h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.copy-head button {
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--brand-white);
  background: var(--brand-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.copy-block pre {
  max-height: 330px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: var(--brand-ink);
  font-family: var(--font-brand);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.assistant-footer {
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--brand-ink-soft);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--brand-white);
  background: var(--brand-ink);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .hero-shell,
  .workspace {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }

  .hero-logo {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .top-nav,
  .result-head,
  .assistant-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .choice-grid,
  .field-grid,
  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .copy-head {
    align-items: stretch;
    flex-direction: column;
  }
}
