.experience-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

.experience-card, .experience-dialog {
  color: #183d31;
  background: #fffdf5;
  border: 1px solid #d9decc;
  border-radius: 1.05rem;
}
.experience-card {
  margin: 1.35rem 0;
  padding: clamp(1rem, 4vw, 2.25rem);
  scroll-margin-top: 5rem;
}
.experience-dialog {
  padding: clamp(1rem, 4vw, 2rem);
  max-width: min(40rem, calc(100% - 2rem));
  width: 100%;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  overflow: auto;
  box-shadow: 0 16px 60px #142d2450;
}
.experience-dialog:not([open]) { display: none; }
.experience-dialog::backdrop { background: #102c21a8; }
.experience-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
}
.experience-dialog-head h2 { margin: 0; font-size: 1.45rem; }

.experience-primary, .experience-secondary, .recording-controls select {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #bdcdbb;
  border-radius: .52rem;
  min-height: 44px;
  padding: .45rem .8rem;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  background: #f6f8ed;
  color: #174638;
  cursor: pointer;
}
.experience-primary {
  background: #174638;
  color: #fffdf5;
  border-color: #174638;
}
.experience-primary:disabled { opacity: .55; cursor: default; }
.experience-link, .photo-reference a, .photo-answer a {
  background: transparent;
  border: 0;
  color: #245b48;
  padding: .4rem 0;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.photo-guide { margin: .6rem 0 .85rem; line-height: 1.6; }
.photo-sample-bar { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .45rem; }
.photo-preview { margin: .8rem 0; }
.photo-preview img {
  display: block;
  width: min(100%, 280px);
  max-height: 230px;
  object-fit: contain;
  object-position: left center;
  border-radius: .5rem;
}
.photo-candidates { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 .85rem; }
.photo-preview[hidden], .photo-candidates[hidden], .photo-reference[hidden], .photo-answer[hidden] { display: none; }
.experience-status { color: #496457; font-size: .875rem; margin: .45rem 0; }
.experience-status:empty { display: none; }
.photo-reference, .photo-answer {
  background: #eef3e8;
  border-radius: .7rem;
  padding: .75rem 1rem;
  margin: .7rem 0;
  line-height: 1.65;
}
.photo-reference h3 { margin: 0; font-size: 1.08rem; }
.photo-reference p, .photo-answer p { margin: .25rem 0 .4rem; white-space: pre-wrap; }
.photo-question { margin-top: .9rem; }
.photo-question input {
  flex: 1 1 13rem;
  min-width: 0;
  height: 44px;
  padding: .45rem .65rem;
  border: 1px solid #bdcdbb;
  border-radius: .52rem;
  background: #fffdf7;
  color: #183d31;
  font: inherit;
}
.home-composer-tools { margin-top: .6rem; }
.chat-voice {
  flex: 0 0 auto;
  padding: 10px clamp(13px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
}

.chat-voice__row, .chat-voice__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.chat-voice__row {
  justify-content: space-between;
}

.chat-voice .recording-controls {
  margin: 0;
}

.chat-voice__links a {
  color: var(--green);
  font-size: .85rem;
  text-underline-offset: .18em;
}

.chat-voice__links a:hover {
  text-decoration: underline;
}

.chat-voice .experience-status {
  margin-bottom: 0;
}

.recording-controls { margin: .65rem 0; }
.recording-transcript { margin: .7rem 0 0; line-height: 1.6; }
.story-jump { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: .75rem; }
.story-jump a { color: #fff2c8; text-decoration: underline; text-underline-offset: .18em; }
.recipe-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.1rem 1.75rem; align-items: center; }
.recipe-layout p, .recipe-layout li { line-height: 1.7; }
.recipe-layout li + li { margin-top: .4rem; }
.recipe-layout figure { margin: 0; }
.recipe-layout img { display: block; width: 100%; border-radius: .7rem; }
.recipe-layout figcaption { margin-top: .45rem; font-size: .875rem; color: #496457; }
@media (max-width: 630px) { .recipe-layout { grid-template-columns: minmax(0, 1fr); } }

.experience-tool {
  --tool-ink: #285246;
  --tool-icon-bg: #eaf0e8;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
  min-height: 44px;
  max-width: 100%;
  padding: .3rem .82rem .3rem .35rem;
  border: 1px solid #d3ded3;
  border-radius: .78rem;
  background: #fffefa;
  color: var(--tool-ink);
  cursor: pointer;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25;
  transition: background-color .18s ease, border-color .18s ease;
}
.experience-tool--featured {
  --tool-ink: #174c3d;
  --tool-icon-bg: #d6e9de;
  background: #f0f7ef;
  border-color: #c8dbcd;
}
.experience-tool:hover { background: #eaf4ec; border-color: #a9c4b2; }
.experience-tool:focus-visible { outline: 2px solid #336e5b; outline-offset: 2px; }
.experience-tool[aria-pressed="true"] {
  --tool-ink: #813f33;
  --tool-icon-bg: #f4ded4;
  background: #fff5ee;
  border-color: #e0bdb0;
}
.experience-tool-icon {
  display: grid;
  place-items: center;
  flex: 0 0 1.95rem;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: .55rem;
  background: var(--tool-icon-bg);
}
.experience-tool-icon svg { display: block; width: 1.17rem; height: 1.17rem; }
@media (prefers-reduced-motion: reduce) {
  .experience-tool { transition: none; }
}
