/* Full-height search workspace. Shared brand primitives continue to come from style.css. */
.personal-search-page {
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: #fff;
}

.personal-search-page > header {
  flex: 0 0 auto;
}

.personal-navbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 64px;
  padding: 1rem 2rem;
}

.personal-navbar .nav-back {
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  transform: none;
}

.personal-navbar .nav-brand {
  grid-column: 2;
  grid-row: 1;
}

.personal-nav-actions {
  position: static;
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

.personal-nav-actions .nav-logout-right {
  position: static;
  display: inline-flex;
  height: 32px;
  align-items: center;
  line-height: 1;
  transform: none;
}

.whatsapp-channel-button {
  display: inline-flex;
  min-height: 32px;
  padding: 5px 10px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(31, 143, 82, .3);
  border-radius: 999px;
  background: rgba(37, 211, 102, .08);
  color: #16733c;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
}

.whatsapp-channel-button[hidden] {
  display: none;
}

.whatsapp-channel-button > span:first-child {
  color: #25d366;
  font-size: .75rem;
}

.whatsapp-channel-button.is-connected {
  background: rgba(37, 211, 102, .16);
}

.preference-settings-button {
  display: inline-flex;
  min-height: 32px;
  padding: 5px 9px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(189, 114, 108, .28);
  border-radius: 999px;
  background: rgba(189, 114, 108, .07);
  color: #9a5c57;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
}

.preference-settings-button:hover,
.preference-settings-button:focus-visible {
  background: rgba(189, 114, 108, .14);
  outline: 2px solid rgba(189, 114, 108, .25);
  outline-offset: 2px;
}

.whatsapp-channel-dialog {
  width: min(92vw, 470px);
  padding: 34px;
  border: 1px solid rgba(89, 72, 62, .14);
  border-radius: 22px;
  background: #fffdfb;
  box-shadow: 0 28px 80px rgba(50, 40, 34, .28);
  color: #423630;
  text-align: center;
}

.whatsapp-channel-dialog::backdrop {
  background: rgba(34, 27, 24, .48);
  backdrop-filter: blur(3px);
}

.whatsapp-channel-dialog h2 {
  margin: 14px 0 10px;
  font-size: 1.45rem;
}

.whatsapp-channel-dialog p {
  margin: 0;
  line-height: 1.55;
}

.whatsapp-channel-close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  color: #756861;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.whatsapp-channel-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: white;
  font-size: .88rem;
  font-weight: 800;
}

.whatsapp-channel-status {
  min-height: 24px;
  margin-top: 18px !important;
  color: #16733c;
  font-weight: 650;
}

.whatsapp-channel-status.is-error {
  color: #a83c39;
}

.whatsapp-channel-actions {
  display: flex;
  margin-top: 18px;
  justify-content: center;
  gap: 10px;
}

.whatsapp-channel-primary,
.whatsapp-channel-secondary {
  min-height: 42px;
  padding: 9px 17px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.whatsapp-channel-primary {
  border: 1px solid #19994b;
  background: #25d366;
  color: #12391f;
}

.whatsapp-channel-secondary {
  border: 1px solid #ccbdb5;
  background: transparent;
  color: #6b5550;
}

.whatsapp-channel-primary[hidden],
.whatsapp-channel-secondary[hidden] {
  display: none;
}

.whatsapp-channel-primary:disabled,
.whatsapp-channel-secondary:disabled {
  cursor: wait;
  opacity: .6;
}

.whatsapp-channel-privacy {
  margin-top: 20px !important;
  color: #7c6e67;
  font-size: .78rem;
}

.preference-settings-dialog {
  text-align: left;
}

.preference-settings-dialog h2,
.preference-settings-dialog > p {
  text-align: center;
}

.preference-settings-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #f5dfc7;
  color: #8d514c;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.preference-settings-form {
  display: grid;
  margin-top: 24px;
  gap: 9px;
}

.preference-settings-form label {
  margin-top: 8px;
  color: #5b4b45;
  font-size: .86rem;
  font-weight: 700;
}

.preference-settings-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d7c9c1;
  border-radius: 12px;
  background: #fff;
  color: #423630;
  font: inherit;
}

.preference-settings-form select:focus {
  border-color: #bd726c;
  box-shadow: 0 0 0 3px rgba(189, 114, 108, .14);
  outline: 0;
}

.preference-settings-status {
  min-height: 20px;
  color: #397250;
  font-size: .85rem;
  text-align: center;
}

.preference-settings-status.is-error {
  color: #a83c39;
}

.language-selector {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  display: inline-flex;
  height: 32px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #bd726c;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  transform: none;
}

.language-selector:hover,
.language-selector:focus-within {
  outline: 0;
  box-shadow: 0 2px 0 #bd726c;
}

.language-selector-flag {
  font-size: .95rem;
  line-height: 1;
}

.language-selector-code {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.language-selector-chevron {
  margin-left: 1px;
  font-size: .66rem;
  line-height: 1;
}

.language-selector select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.unit-selector .language-selector-code {
  min-width: 2.8rem;
  text-align: center;
}

.personal-navbar #unit-system-select {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.personal-navbar #language-select {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.personal-search-main {
  display: grid;
  grid-template-columns: var(--chat-pane-width, 390px) 8px minmax(0, 1fr);
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.chat-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #fff;
}

.chat-resizer {
  position: relative;
  z-index: 2;
  width: 8px;
  min-height: 0;
  cursor: col-resize;
  touch-action: none;
  background: #fff;
}

.chat-resizer::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 1px;
  background: var(--border-color);
  content: '';
  transition: width .12s ease, left .12s ease, background-color .12s ease;
}

.chat-resizer:hover::after,
.chat-resizer:focus-visible::after,
.is-resizing-chat .chat-resizer::after {
  left: 2px;
  width: 3px;
  background: #bd726c;
}

.chat-resizer:focus-visible {
  outline: 0;
}

.is-resizing-chat {
  cursor: col-resize;
  user-select: none;
}

.chat-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border-color);
}

.collection-kicker {
  margin: 0 0 3px;
  color: #bd726c;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.chat-pane-header h1 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.chat-new-button {
  display: block;
  margin: 7px 2px 0 auto;
  padding: 3px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a8605b;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
}

.chat-new-button:hover {
  background: transparent;
  color: #8f4f4a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-new-button:disabled {
  cursor: wait;
  opacity: .5;
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  overscroll-behavior: contain;
}

.chat-intro {
  color: var(--text-light);
  font-size: .86rem;
  line-height: 1.5;
}

.chat-intro > p {
  margin-bottom: 12px;
  color: var(--text-dark);
  font-weight: 500;
}

.chat-pane .search-suggestions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
  margin: 0;
}

.chat-pane .search-suggestions button {
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--background-light);
  font-size: .74rem;
  font-weight: 500;
  text-align: left;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-message {
  max-width: 94%;
  color: var(--text-dark);
  font-size: .84rem;
  line-height: 1.48;
}

.chat-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.chat-message-header .chat-message-label {
  margin-bottom: 0;
}

.chat-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6d817a;
  cursor: pointer;
  font: inherit;
  font-size: .66rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color .16s ease, color .16s ease;
}

.chat-copy-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.chat-copy-button:hover,
.chat-copy-button:focus-visible {
  background: #edf3ef;
  color: #4f7065;
}

.chat-copy-button:focus-visible {
  outline: 2px solid #adc3b7;
  outline-offset: 2px;
}

.chat-copy-button.is-copied {
  color: #4f7065;
}

.chat-copy-button:disabled {
  cursor: default;
  opacity: 1;
}

.chat-message-content > :first-child {
  margin-top: 0;
}

.chat-message-content > :last-child {
  margin-bottom: 0;
}

.chat-message-content p {
  margin: 0 0 .72em;
}

.chat-message-content ul,
.chat-message-content ol {
  margin: .45em 0 .75em;
  padding-left: 1.35em;
}

.chat-message-content li + li {
  margin-top: .3em;
}

.chat-message-content > ul > li + li,
.chat-message-content > ol > li + li {
  margin-top: .7em;
}

.chat-message-content li > ul,
.chat-message-content li > ol {
  margin: .3em 0 .15em;
  padding-left: 1.25em;
  color: var(--text-light);
}

.chat-message-content li > ul strong,
.chat-message-content li > ol strong {
  color: var(--text-dark);
}

.chat-message-content h3,
.chat-message-content h4,
.chat-message-content h5,
.chat-message-content h6 {
  margin: .8em 0 .35em;
  color: var(--text-dark);
  font-size: 1em;
  font-weight: 700;
}

.chat-message-content strong {
  font-weight: 700;
}

.chat-message-content a {
  color: #a8605b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-recipe-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4f7065;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  text-align: inherit;
  text-decoration: underline;
  text-decoration-color: #adc3b7;
  text-underline-offset: 3px;
}

.chat-recipe-link:hover,
.chat-recipe-link:focus-visible {
  color: #31584c;
  outline: 0;
  text-decoration-color: currentColor;
}

.chat-message-content code {
  padding: .08em .3em;
  border-radius: 4px;
  background: #eeeae7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
}

.chat-message-content pre {
  max-width: 100%;
  margin: .6em 0;
  padding: 9px;
  overflow-x: auto;
  border-radius: 6px;
  background: #2c2c2c;
  color: #fff;
}

.chat-message-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.chat-message-content blockquote {
  margin: .6em 0;
  padding-left: .8em;
  border-left: 2px solid #d9ccc5;
  color: var(--text-light);
}

.chat-message-content .markdown-table-wrap {
  max-width: 100%;
  margin: .65em 0;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: #fff;
}

.chat-message-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .76rem;
  line-height: 1.4;
}

.chat-message-content th,
.chat-message-content td {
  min-width: 88px;
  padding: 7px 8px;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.chat-message-content th:last-child,
.chat-message-content td:last-child {
  border-right: 0;
}

.chat-message-content tbody tr:last-child td {
  border-bottom: 0;
}

.chat-message-content th {
  background: #fff4f2;
  color: var(--text-dark);
  font-size: .76rem;
  font-weight: 700;
}

.chat-message-content [data-align='center'] { text-align: center; }
.chat-message-content [data-align='right'] { text-align: right; }

.chat-message-content .profile-filter-row {
  transition: background-color .15s ease;
}

.chat-message-content .profile-filter-row:hover {
  background: #f2f6f3;
}

.profile-filter-link {
  position: relative;
  padding: 0 16px 0 0;
  border: 0;
  background: transparent;
  color: #4f7065;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #adc3b7;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.profile-filter-link:hover,
.profile-filter-link:focus-visible,
.profile-filter-link.is-active {
  color: #31584c;
  outline: 0;
  text-decoration-color: currentColor;
}

.profile-filter-link.is-active::before {
  color: #58766d;
  content: '✓ ';
}

.profile-filter-link.is-loading::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border: 1.5px solid #c7d7ce;
  border-top-color: #58766d;
  border-radius: 50%;
  animation: card-image-spin .7s linear infinite;
  content: '';
}

.profile-filter-link:disabled {
  cursor: wait;
  opacity: .72;
}

.chat-message-label {
  display: block;
  margin-bottom: 4px;
  color: #bd726c;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.chat-message-user {
  align-self: flex-end;
  padding: 11px 13px;
  border: 1px solid #d8e3dc;
  border-radius: 10px 10px 2px 10px;
  background: #eef4f0;
}

.chat-message-user .chat-message-label {
  color: #58766d;
}

.chat-message-assistant {
  align-self: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 2px 12px 12px 12px;
  background: var(--background-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .035);
}

.chat-pane .search-status {
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 18px;
  font-size: .76rem;
}

.chat-pane .search-spinner {
  width: 16px;
  height: 16px;
}

.chat-pane .search-error {
  margin: 0 12px 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: .76rem;
}

.chat-compose {
  flex: 0 0 auto;
  padding: 10px 12px 8px;
  border-top: 1px solid var(--border-color);
  background: #fff;
}

.chat-pane .recipe-search-form {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.chat-pane .recipe-search-form:focus-within {
  border-color: var(--border-color);
  box-shadow: none;
}

.chat-pane .recipe-search-form textarea {
  width: auto;
  min-height: 40px;
  max-height: 112px;
  padding: 9px 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  font-size: .84rem;
}

.chat-pane .recipe-search-form textarea:focus {
  border-color: #bd726c;
  box-shadow: 0 0 0 2px rgba(189, 114, 108, .1);
}

.chat-pane .search-submit {
  flex: 0 0 40px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 8px;
}

.results-pane {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 46px);
  background: #fff;
  overscroll-behavior: contain;
}

.results-pane.has-landing-placeholder {
  overflow: hidden;
  padding: clamp(8px, 1.2vw, 16px);
}

.recipe-detail-view {
  --recipe-app-card: #f3ece7;
  --recipe-app-accent: #dfc8b5;
  --recipe-app-ink: #191715;
  --recipe-app-muted: #786b61;
  container-name: recipe-detail;
  container-type: inline-size;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding-bottom: 40px;
  color: var(--recipe-app-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
}

.recipe-detail-back {
  margin: 0 0 16px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--recipe-app-muted);
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  text-align: left;
}

.recipe-detail-back:hover,
.recipe-detail-back:focus-visible {
  color: var(--recipe-app-ink);
  outline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recipe-detail-loading {
  display: grid;
  min-height: 50vh;
  place-content: center;
  place-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: .84rem;
}

.recipe-detail-error {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #eadfdd;
  border-radius: 10px;
  background: #faf8f7;
  color: #913c34;
}

.recipe-detail-overview {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(280px, 1fr);
  align-items: stretch;
  gap: clamp(22px, 3vw, 40px);
  margin-bottom: 38px;
}

.recipe-detail-media-column {
  display: flex;
  min-width: 0;
  align-items: center;
}

.recipe-detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--recipe-app-card);
}

.recipe-detail-hero .recipe-image-placeholder {
  position: absolute;
  inset: 0;
}

.recipe-detail-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity .2s ease;
}

.recipe-detail-image.is-loaded {
  opacity: 1;
}

.recipe-detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(176px, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  min-width: 0;
  padding-top: 6px;
}

.recipe-detail-header {
  position: relative;
  z-index: auto;
  grid-column: 1 / -1;
  width: auto;
  padding: 0 2px 24px;
  border: 0;
  background: transparent;
}

.recipe-detail-header .collection-kicker {
  margin-bottom: 8px;
  color: var(--recipe-app-muted);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.diagnostics-copy-button {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 5000;
  padding: 9px 13px;
  border: 1px solid #d7ccc6;
  border-radius: 999px;
  background: #fff;
  color: #58766d;
  box-shadow: 0 3px 14px rgba(34, 29, 26, .12);
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
}

.diagnostics-copy-field {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.recipe-detail-header h1 {
  max-width: 820px;
  margin: 0;
  color: var(--recipe-app-ink);
  font-size: clamp(1.4rem, 3.6cqi, 1.8rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.recipe-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.recipe-detail-title-row h1 {
  min-width: 0;
}

.recipe-share-button {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 1px;
  padding: 8px 13px;
  border: 1px solid #d9c8bd;
  border-radius: 999px;
  background: #fff;
  color: #b5655e;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.recipe-share-button:hover,
.recipe-share-button:focus-visible {
  border-color: #c67972;
  background: #fbf4f1;
  color: #9f514b;
}

.recipe-share-button:focus-visible {
  outline: 2px solid #77978a;
  outline-offset: 2px;
}

.recipe-share-button:disabled {
  cursor: wait;
  opacity: .7;
}

.recipe-share-copied {
  border-color: #98afa6;
  background: #edf4f1;
  color: #55776b;
}

.recipe-share-error {
  border-color: #cc7b73;
}

.recipe-share-icon,
.recipe-share-icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

.recipe-detail-source {
  margin-top: 10px;
  color: var(--recipe-app-muted);
  font-size: .9rem;
  line-height: 1.4;
}

.recipe-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 470px;
}

.recipe-detail-meta-item {
  display: flex;
  min-width: 0;
  min-height: 118px;
  padding: 12px 9px;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  background-color: #f3ece7;
  text-align: center;
}

.recipe-detail-meta-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin: 0 auto 5px;
  place-items: center;
  color: var(--recipe-app-accent);
}

.recipe-detail-meta-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.recipe-detail-meta-item strong,
.recipe-detail-meta-label {
  display: block;
}

.recipe-detail-meta-label {
  margin-bottom: 4px;
  color: var(--recipe-app-muted);
  font-size: .84rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.recipe-detail-meta-item strong {
  color: var(--recipe-app-ink);
  font-size: .96rem;
  font-weight: 500;
}

.recipe-detail-body {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(340px, 1.4fr);
  align-items: start;
  gap: 24px;
}

.recipe-detail-section {
  min-width: 0;
}

.recipe-detail-section h2 {
  margin: 0 0 14px;
  color: var(--recipe-app-ink);
  font-size: clamp(1.3rem, 3cqi, 1.5rem);
  font-weight: 500;
  letter-spacing: -.025em;
}

.recipe-detail-ingredients,
.recipe-detail-instructions {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.recipe-detail-ingredients {
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.recipe-detail-ingredients li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 0;
  color: var(--recipe-app-ink);
  font-size: .94rem;
  line-height: 1.48;
}

.recipe-detail-ingredients li:last-child {
  border-bottom: 0;
}

.recipe-detail-ingredients input {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 6px;
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--recipe-app-accent);
  border-radius: 50%;
  background: var(--recipe-app-accent);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.recipe-detail-ingredients input:checked {
  border-color: #9f8a78;
  background: #9f8a78;
}

.recipe-detail-ingredients input:checked + label {
  color: var(--text-muted);
  text-decoration: line-through;
}

.recipe-detail-instructions {
  padding: 0 0 0 30px;
}

.recipe-detail-instructions li {
  padding: 7px 4px 7px 6px;
  border-bottom: 0;
  color: var(--recipe-app-ink);
  font-size: .94rem;
  line-height: 1.55;
}

.recipe-detail-instructions li:last-child {
  border-bottom: 0;
}

.recipe-detail-instructions li::marker {
  color: #bda895;
  font-weight: 600;
}

.recipe-detail-story {
  position: relative;
  width: min(100%, 780px);
  margin: clamp(38px, 6vw, 64px) auto 0;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid #e5ded9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(62, 48, 40, .06);
}

.recipe-detail-story::before {
  position: absolute;
  top: 0;
  left: clamp(26px, 4vw, 42px);
  width: 48px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--recipe-app-accent);
  content: '';
}

.recipe-detail-story h2 {
  margin: 0 0 20px;
  color: #1f1c1a;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.recipe-detail-story p {
  margin: 0;
  color: #302c29;
  font-size: clamp(.96rem, 1.15vw, 1.04rem);
  line-height: 1.78;
}

.recipe-detail-story p + p {
  margin-top: 1.15em;
}

.recipe-souschef {
  position: static;
  z-index: 2;
  display: flex;
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  align-self: end;
  justify-self: end;
  gap: 8px;
  margin: 0 4px 18px 0;
}

.recipe-souschef-toggle,
.recipe-souschef-mute {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  padding: 0;
  place-items: center;
  border: 1px solid #eadfd7;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 20px rgba(67, 55, 46, .13);
  cursor: pointer;
  font: inherit;
  transition: box-shadow .16s ease, transform .16s ease;
}

.recipe-souschef-toggle {
  order: 2;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.recipe-souschef-mute {
  order: 1;
  border: 0;
  background: var(--recipe-app-card);
  box-shadow: none;
  color: var(--recipe-app-muted);
}

.recipe-souschef-toggle:hover,
.recipe-souschef-mute:hover {
  box-shadow: 0 9px 24px rgba(67, 55, 46, .19);
  transform: translateY(-1px);
}

.recipe-souschef-toggle:hover {
  box-shadow: none;
}

.recipe-souschef-mute:hover {
  background: #eee4dc;
  box-shadow: none;
}

.recipe-souschef-toggle:focus-visible,
.recipe-souschef-mute:focus-visible {
  outline: 2px solid #77978a;
  outline-offset: 3px;
}

.recipe-souschef-avatar {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: var(--recipe-app-card);
  font-size: 2.7rem;
  line-height: 1;
}

.recipe-souschef-listening .recipe-souschef-toggle::after,
.recipe-souschef-speaking .recipe-souschef-toggle::after,
.recipe-souschef-connecting .recipe-souschef-toggle::after {
  position: absolute;
  inset: -3px;
  border: 2px solid #77978a;
  border-radius: 50%;
  content: '';
  animation: recipe-souschef-pulse 1.7s ease-in-out infinite;
}

.recipe-souschef-speaking .recipe-souschef-toggle::after {
  border-color: #c4a574;
}

.recipe-souschef-error .recipe-souschef-toggle::after {
  position: absolute;
  inset: -3px;
  border: 2px solid #bd726c;
  border-radius: 50%;
  content: '';
}

.recipe-souschef-muted .recipe-souschef-avatar {
  filter: grayscale(.7);
  opacity: .72;
}

.recipe-souschef-mute {
  width: 84px;
  height: 84px;
}

.recipe-souschef-mic-icon,
.recipe-souschef-mic-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.recipe-souschef-muted .recipe-souschef-mute {
  background: #f1e4df;
  color: #b96f68;
}

@keyframes recipe-souschef-pulse {
  0%, 100% { opacity: .9; transform: scale(1); }
  50% { opacity: .35; transform: scale(1.08); }
}

.results-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  place-items: stretch;
  text-align: center;
}

.results-placeholder-hero {
  position: relative;
  container-name: landing-wall;
  container-type: inline-size;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(143, 117, 93, .16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, .9), transparent 28%),
    linear-gradient(112deg, rgba(225, 205, 185, .12), transparent 42%),
    #f3eee7;
  box-shadow: 0 22px 60px rgba(93, 72, 55, .12);
}

.landing-wall,
.landing-wall-loading {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: clamp(10px, 1.2cqi, 18px);
  padding: clamp(22px, 3.2cqi, 48px);
}

.landing-wall::before {
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(134, 111, 92, .035) 28px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(134, 111, 92, .025) 40px);
  content: '';
  pointer-events: none;
}

.landing-recipe-card,
.landing-paper-skeleton {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(117, 93, 72, .12);
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(79, 60, 45, .16);
}

.landing-recipe-card {
  display: grid;
  overflow: hidden;
  padding: clamp(7px, .8cqi, 11px);
  color: #302b27;
  transition: box-shadow .18s ease, transform .18s ease;
}

.landing-recipe-open-link {
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  color: inherit;
  text-decoration: none;
}

.landing-recipe-card:hover,
.landing-recipe-card:focus-visible {
  z-index: 3;
  outline: 0;
  box-shadow: 0 17px 34px rgba(79, 60, 45, .23);
}

.landing-recipe-card-1 {
  grid-column: 5 / 9;
  grid-row: 1 / 6;
  transform: rotate(1.2deg);
}

.landing-recipe-card-1:hover,
.landing-recipe-card-1:focus-visible {
  transform: rotate(.3deg) translateY(-3px);
}

.landing-recipe-card-2 {
  grid-column: 6 / 10;
  grid-row: 6 / 11;
  transform: rotate(-1.4deg);
}

.landing-recipe-card-2:hover,
.landing-recipe-card-2:focus-visible {
  transform: rotate(-.3deg) translateY(-3px);
}

.landing-recipe-card-3 {
  grid-column: 10 / 13;
  grid-row: 6 / 10;
  transform: rotate(1.8deg);
}

.landing-recipe-card-3:hover,
.landing-recipe-card-3:focus-visible {
  transform: rotate(.5deg) translateY(-3px);
}

.landing-recipe-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #f7f4ef;
}

.landing-recipe-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity .2s ease;
}

.landing-recipe-image.is-loaded {
  opacity: 1;
}

.landing-recipe-visual .recipe-image-placeholder {
  position: absolute;
  inset: 0;
}

.landing-recipe-caption {
  padding: clamp(8px, 1cqi, 13px) 3px 2px;
  text-align: left;
}

.landing-recipe-caption h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #302b27;
  font-size: clamp(.7rem, 1.25cqi, .96rem);
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.landing-recipe-caption p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #8a7b70;
  font-size: clamp(.56rem, .85cqi, .7rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-recipe-card-4 {
  grid-column: 1 / 5;
  grid-row: 1 / 5;
  transform: rotate(-1.8deg);
}

.landing-recipe-card-5 {
  grid-column: 9 / 13;
  grid-row: 1 / 5;
  transform: rotate(1.7deg);
}

.landing-recipe-card-6 {
  grid-column: 2 / 6;
  grid-row: 6 / 10;
  transform: rotate(1.4deg);
}

.landing-recipe-card-4:hover,
.landing-recipe-card-4:focus-visible,
.landing-recipe-card-5:hover,
.landing-recipe-card-5:focus-visible,
.landing-recipe-card-6:hover,
.landing-recipe-card-6:focus-visible {
  transform: rotate(0deg) translateY(-3px);
}

.landing-wall-loading {
  z-index: 2;
}

.landing-paper-skeleton {
  overflow: hidden;
  background: rgba(255, 252, 244, .85);
}

.landing-paper-skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .72) 46%, transparent 67%);
  content: '';
  animation: landing-paper-shimmer 1.35s ease-in-out infinite;
  transform: translateX(-100%);
}

.landing-paper-skeleton-1 { grid-column: 1 / 5; grid-row: 1 / 5; transform: rotate(-1.8deg); }
.landing-paper-skeleton-2 { grid-column: 5 / 9; grid-row: 1 / 6; transform: rotate(1.2deg); }
.landing-paper-skeleton-3 { grid-column: 9 / 13; grid-row: 1 / 5; transform: rotate(1.7deg); }
.landing-paper-skeleton-4 { grid-column: 2 / 6; grid-row: 6 / 10; transform: rotate(1.4deg); }
.landing-paper-skeleton-5 { grid-column: 6 / 10; grid-row: 6 / 11; transform: rotate(-1.4deg); }
.landing-paper-skeleton-6 { grid-column: 10 / 13; grid-row: 6 / 10; transform: rotate(1.8deg); }

.landing-wall-unavailable {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(320px, 70%);
  padding: 24px;
  color: #665b52;
  transform: translate(-50%, -50%);
}

.landing-wall-unavailable p {
  margin: 0;
}

@keyframes landing-paper-shimmer {
  to { transform: translateX(100%); }
}

@container landing-wall (max-width: 700px) {
  .landing-wall,
  .landing-wall-loading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
  }

  .landing-recipe-card-1,
  .landing-paper-skeleton-2 {
    grid-column: 1;
    grid-row: 1;
  }

  .landing-recipe-card-4,
  .landing-paper-skeleton-1 {
    grid-column: 2;
    grid-row: 1;
  }

  .landing-recipe-card-5,
  .landing-paper-skeleton-3 {
    grid-column: 1;
    grid-row: 2;
  }

  .landing-recipe-card-2,
  .landing-paper-skeleton-5 {
    grid-column: 2;
    grid-row: 2;
  }

  .landing-recipe-card-3,
  .landing-paper-skeleton-6 {
    grid-column: 1;
    grid-row: 3;
  }

  .landing-recipe-card-6,
  .landing-paper-skeleton-4 {
    grid-column: 2;
    grid-row: 3;
  }
}

.collection-heading {
  margin-bottom: 18px;
}

.results-back-button {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #75685e;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
}

.results-back-button:hover,
.results-back-button:focus-visible {
  color: #4f7065;
  outline: 0;
}

.book-results-section .book-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.book-results-section .search-book-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.book-results-section .search-book-card:hover,
.book-results-section .search-book-card:focus-visible {
  border-color: #b8ccc1;
  box-shadow: 0 6px 16px rgba(64, 91, 80, .1);
  outline: 0;
  transform: translateY(-2px);
}

.book-results-section .search-book-card:disabled {
  cursor: wait;
  opacity: .68;
}

.book-results-section .book-card-visual {
  position: relative;
  height: 128px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--background-light);
}

.book-results-section .book-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  transition: opacity .18s ease;
}

.book-results-section .book-card-image.is-loaded {
  opacity: 1;
}

.book-results-section .book-card-content h3 {
  margin: 2px 0 0;
  color: var(--text-dark);
  font-size: .95rem;
  line-height: 1.35;
}

.book-results-section .recipe-card-source {
  margin-top: 6px;
  font-size: .76rem;
}

.book-results-section .recipe-card-preview {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--text-light);
  font-size: .72rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.book-filter-chips {
  display: flex;
  margin: -4px 0 14px;
  padding: 2px 0;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.book-filter-chips[hidden] {
  display: none;
}

.book-filter-chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #d8e3dc;
  border-radius: 999px;
  background: #fff;
  color: #58766d;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
}

.book-filter-chip:hover,
.book-filter-chip:focus-visible,
.book-filter-chip.is-active {
  border-color: #789789;
  outline: 0;
  background: #edf4f0;
  color: #31584c;
}

.chat-recipe-results {
  margin-top: .8em;
  padding-top: .65em;
  border-top: 1px solid #e5e0dc;
}

.chat-recipe-results summary {
  color: #4f7065;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 600;
}

.chat-recipe-results-list {
  display: grid;
  margin-top: .5em;
  gap: .3em;
}

.chat-recipe-results-list .chat-recipe-link {
  width: fit-content;
}

.collection-heading h2,
.personal-search-page .book-results-section h2 {
  margin: 0;
  color: #2c2c2c;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
}

.results-pane .category-filters {
  margin: -4px 0 16px;
}

.results-pane .search-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.results-pane .search-recipe-card {
  position: relative;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

.recipe-card-open-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.recipe-card-open-link:focus-visible,
.landing-recipe-open-link:focus-visible {
  outline: 2px solid #bd726c;
  outline-offset: -2px;
}

.recipe-favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0 0 2px;
  place-items: center;
  border: 1px solid rgba(88, 70, 61, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 12px rgba(45, 34, 29, .16);
  color: #875f5b;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.recipe-favorite-button:hover,
.recipe-favorite-button:focus-visible {
  outline: 0;
  background: #fff;
  color: #ad625d;
  transform: scale(1.06);
}

.recipe-favorite-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(189, 114, 108, .3), 0 3px 12px rgba(45, 34, 29, .16);
}

.recipe-favorite-button.is-favorite {
  color: #b65754;
}

.recipe-favorite-button.is-pending {
  cursor: wait;
  opacity: .62;
}

.recipe-favorite-button:disabled {
  cursor: default;
}

.recipe-detail-favorite {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 31px;
}

.results-pane .search-recipe-card:hover,
.results-pane .search-recipe-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.results-pane .recipe-card-visual {
  height: 160px;
  background: var(--background-light);
}

.results-pane .recipe-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity .18s ease;
}

.results-pane .recipe-card-image.is-loaded {
  opacity: 1;
}

.card-image-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #d8e3dc;
  border-top-color: #58766d;
  border-radius: 50%;
  animation: card-image-spin .75s linear infinite;
}

.card-image-fallback {
  display: none;
}

.recipe-image-placeholder.is-unavailable .card-image-spinner,
.book-image-placeholder.is-unavailable .card-image-spinner {
  display: none;
}

.recipe-image-placeholder.is-unavailable .card-image-fallback,
.book-image-placeholder.is-unavailable .card-image-fallback {
  display: block;
}

@keyframes card-image-spin {
  to { transform: rotate(360deg); }
}

.results-pane .recipe-rank {
  z-index: 1;
}

.results-pane .recipe-card-content {
  padding: 13px;
}

.book-card-action {
  display: block;
  margin-top: 12px;
  color: #58766d;
  font-size: .76rem;
  font-weight: 600;
}

.results-pane .search-empty {
  display: grid;
  min-height: 100%;
  place-content: center;
  border: 0;
  color: var(--text-light);
}

.results-pane .search-empty h2 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  font-weight: 600;
}

html[dir='rtl'] .chat-pane .search-suggestions button,
html[dir='rtl'] .profile-filter-link,
html[dir='rtl'] .recipe-detail-back,
html[dir='rtl'] .landing-recipe-caption,
html[dir='rtl'] .book-results-section .search-book-card {
  text-align: right;
}

html[dir='rtl'] .chat-message-content ul,
html[dir='rtl'] .chat-message-content ol {
  padding-right: 1.35em;
  padding-left: 0;
}

html[dir='rtl'] .chat-message-content li > ul,
html[dir='rtl'] .chat-message-content li > ol {
  padding-right: 1.25em;
  padding-left: 0;
}

html[dir='rtl'] .chat-message-content blockquote {
  padding-right: .8em;
  padding-left: 0;
  border-right: 2px solid #d9ccc5;
  border-left: 0;
}

html[dir='rtl'] .profile-filter-link {
  padding-right: 0;
  padding-left: 16px;
}

@media (max-width: 820px) {
  .personal-search-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .personal-search-main {
    display: block;
    min-height: auto;
  }

  .chat-pane {
    height: min(52vh, 430px);
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .chat-resizer {
    display: none;
  }

  .results-pane {
    min-height: 50vh;
    overflow: visible;
    padding: 24px 18px 48px;
  }

  .results-placeholder-hero {
    width: 100%;
    border-radius: 16px;
  }

  .results-pane.has-landing-placeholder {
    min-height: 720px;
    padding: 10px;
  }

  .results-pane.has-landing-placeholder .results-placeholder {
    min-height: 700px;
  }

  .recipe-detail-body {
    grid-template-columns: 1fr;
  }

  .recipe-detail-overview {
    grid-template-columns: minmax(190px, 280px) minmax(240px, 1fr);
  }

}

/*
 * The recipe sits beside an independently resizable chat pane.
 * Its layout therefore needs to respond to the space it actually receives,
 * not only to the browser viewport width.
 */
@container recipe-detail (max-width: 920px) {
  .recipe-detail-overview {
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: clamp(18px, 3cqi, 28px);
  }

  .recipe-detail-summary {
    display: flex;
    min-width: 0;
    padding-top: 0;
    flex-direction: column;
  }

  .recipe-detail-header {
    min-width: 0;
    padding-right: 0;
  }

  .recipe-detail-header h1,
  .recipe-detail-source {
    overflow-wrap: anywhere;
  }

  .recipe-detail-meta {
    width: 100%;
    max-width: none;
  }

  .recipe-detail-meta-item {
    min-height: 108px;
    padding-inline: 7px;
  }

  .recipe-souschef {
    align-self: flex-end;
    margin: 16px 0 0;
  }
}

@container recipe-detail (max-width: 660px) {
  .recipe-detail-overview,
  .recipe-detail-body {
    grid-template-columns: 1fr;
  }

  .recipe-detail-overview {
    gap: 20px;
  }

  .recipe-detail-media-column {
    justify-content: center;
    min-height: 0;
  }

  .recipe-detail-hero {
    width: min(100%, 340px);
  }
}

@container recipe-detail (max-width: 520px) {
  .recipe-detail-title-row {
    display: block;
  }

  .recipe-share-button {
    margin-top: 14px;
  }
}

@container recipe-detail (max-width: 380px) {
  .recipe-detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .personal-navbar {
    min-height: 58px;
    padding: .8rem 1rem;
  }

  .personal-navbar .brand-name {
    display: none;
  }

  .personal-nav-actions {
    gap: 9px;
  }

  .personal-nav-actions .nav-logout-right {
    font-size: .74rem;
  }

  .whatsapp-channel-button {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-channel-button > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .preference-settings-button {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .preference-settings-button > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .whatsapp-channel-dialog {
    padding: 30px 22px;
  }

  .language-selector {
    gap: 3px;
    padding-block: 3px;
  }

  .language-selector-flag {
    font-size: .86rem;
  }

  .language-selector-code {
    font-size: .72rem;
  }

  .unit-selector .language-selector-code {
    min-width: 2.2rem;
  }

  .chat-pane-header {
    padding: 13px 14px 12px;
  }

  .chat-messages {
    padding: 14px;
  }

  .chat-pane .search-suggestions {
    flex-wrap: wrap;
    overflow: visible;
  }

  .results-pane .search-card-grid {
    grid-template-columns: 1fr;
  }

  .recipe-detail-overview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .recipe-detail-hero {
    width: min(100%, 320px);
  }

  .recipe-detail-media-column {
    min-height: 0;
  }

  .recipe-detail-summary {
    display: block;
    position: relative;
    padding-top: 0;
  }

  .recipe-detail-header {
    padding-right: 164px;
  }

  .recipe-souschef {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }

  .recipe-souschef-toggle {
    width: 72px;
    height: 72px;
  }

  .recipe-souschef-mute {
    width: 72px;
    height: 72px;
  }

  .recipe-souschef-mic-icon,
  .recipe-souschef-mic-icon svg {
    width: 30px;
    height: 30px;
  }

  .recipe-souschef-avatar {
    width: 72px;
    height: 72px;
    font-size: 2.3rem;
  }

  .recipe-detail-meta {
    gap: 10px;
  }

  .recipe-detail-meta-item {
    min-height: 108px;
    padding: 10px 7px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .recipe-souschef-listening .recipe-souschef-toggle::after,
  .recipe-souschef-speaking .recipe-souschef-toggle::after,
  .recipe-souschef-connecting .recipe-souschef-toggle::after {
    animation: none;
  }
}

#whatsapp-verification-form label { display: block; margin: 1rem 0 .5rem; font-weight: 600; }
#whatsapp-verification-form input { box-sizing: border-box; width: 100%; padding: .85rem; border: 1px solid #b8c5be; border-radius: 10px; font: inherit; background: #fff; color: #17251d; }
#whatsapp-code { letter-spacing: .25em; font-size: 1.3rem; }
#whatsapp-verification-form [hidden], #whatsapp-verification-form[hidden] { display: none; }
