/* Carnet, Huguette and voluntary cooking mode. Shared cards inherit the site recipe component. */
[hidden] { display: none !important; }
.notebook-page { padding: 48px 0 72px; background: #fffaf3; color: #3a1f33; }
.notebook-heading { max-width: 760px; margin-bottom: 36px; }
.notebook-heading h1 { font: 400 clamp(34px,4vw,48px)/1.12 Georgia,serif; letter-spacing: -.035em; margin: 16px 0 20px; }
.notebook-heading > p { color: #655a60; line-height: 1.65; margin: 0 0 16px; }
.notebook-local-note { font-size: 13px; max-width: 65ch; }
.notebook-tabs { display: flex; gap: 32px; border-bottom: 1px solid #d9ccbf; margin-bottom: 36px; }
.notebook-tabs button { min-height: 48px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #655a60; padding: 12px 0; font: 600 15px/1.4 var(--font-sans); cursor: pointer; }
.notebook-tabs button[aria-selected=true] { border-bottom-color: #c6382b; color: #3a1f33; }
.notebook-section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.notebook-section-head h2 { margin: 0 0 10px; font: 400 clamp(26px,2.5vw,32px)/1.2 Georgia,serif; letter-spacing: -.025em; }
.notebook-section-head p { margin: 0; color: #655A60; max-width: 65ch; }
.notebook-search { display: grid; gap: 8px; font-size: 13px; font-weight: 600; max-width: 440px; margin-bottom: 32px; }
.notebook-search input { min-height: 48px; border: 1px solid #877a72; border-radius: 12px; padding: 12px 16px; font: inherit; background: white; font-size: 16px; color: #3a1f33; }
.personal-recipe-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.personal-recipe-card.recipe-card { padding: 0; position: relative; display: block; border: 1px solid #E8DFD5; border-radius: 16px; background: white; overflow: hidden; }
.personal-recipe-card .recipe-card-media { display: block; aspect-ratio: 4/3; padding: 0; }
.personal-recipe-card .recipe-card-media img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.personal-recipe-card .card-pad { padding: 16px; }
.personal-recipe-card .card-title { margin: 0 0 12px; font-size: 20px; }
.personal-recipe-card .meta-row { display: flex; flex-wrap: wrap; font-size: 14px; }
.personal-recipe-card .bookmark { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; }
.recipe-image-placeholder { display: grid; place-items: center; background: #f2ece4; color: #655A60; width: 100%; height: 100%; font-size: 14px; }
.history-remove { margin: 0 16px 16px; min-height: 44px; border: 0; text-decoration: underline; color: #655A60; background: transparent; font: inherit; }
.notebook-history { margin-top: 48px; padding-top: 24px; border-top: 1px solid #d9ccbf; }
.notebook-history > summary { font: 400 24px/1.3 Georgia,serif; padding: 8px 0; cursor: pointer; min-height: 44px; }
.notebook-history[open] > summary { margin-bottom: 16px; }
.week-menu-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 32px; }
.week-day-card { min-width: 0; padding: 20px 0 24px; background: transparent; border: 0; border-top: 1px solid #d9ccbf; border-radius: 0; }
.week-day-card h3 { margin: 0 0 20px; color: #a5261d; font: 700 12px/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.week-day-card [data-menu-day-content] { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.week-day-card select { max-width: 100%; min-height: 44px; width: 100%; font-size: 15px; padding: 10px; border: 1px solid #877a72; border-radius: 8px; background: white; color: #3a1f33; }
.menu-portions { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.menu-portions input { width: 72px; min-height: 44px; padding: 8px; border: 1px solid #9a8a91; border-radius: 8px; font: inherit; }
.menu-clear { padding: 8px 0; min-height: 44px; color: #a32b21; background: transparent; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.shopping-panel { margin-top: 40px; padding-top: 32px; border-top: 1px solid #E8DFD5; }
.shopping-list { padding: 0; list-style: none; max-width: 800px; }
.shopping-list li { padding: 16px 0; border-bottom: 1px solid #E8DFD5; }
.shopping-list label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 18px; }
.shopping-list input[type=checkbox],.cooking-dialog input[type=checkbox] { width: 24px; height: 24px; accent-color: #35634A; flex-shrink: 0; }
.shopping-list input:checked + span { text-decoration: line-through; color: #655A60; }
.shopping-list small { display: block; padding-left: 36px; margin-top: 4px; color: #655A60; }
.shopping-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.personal-note-item { padding: 24px; border: 1px solid #E8DFD5; border-radius: 16px; background: white; }
.personal-note-item > a { font: 400 25px/1.3 Georgia,serif; text-decoration-color: #bcae9e; text-underline-offset: 4px; }
.personal-note-item p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.personal-notes-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.cookbook-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1300; background: #3A1F33; color: white; border-radius: 12px; box-shadow: 0 8px 32px #3A1F3320; padding: 12px 16px; width: max-content; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 16px; font-size: 14px; }
.cookbook-toast .btn { color: white; border-color: #fff8; min-height: 44px; }
.cookbook-toast-close { background: transparent; border: 0; color: white; text-decoration: underline; min-height: 44px; cursor: pointer; }
.assistant-drawer { max-width: 440px; background: #FFFAF3; }
.assistant-drawer .assistant-head-title small { font-size: 13px; }
.assistant-drawer .assistant-head { position: sticky; top: 0; background: #FFFAF3; z-index: 1; }
.assistant-drawer .assistant-choice { grid-template-columns: minmax(0, 1fr); min-height: 64px; background: white; border: 1px solid #E8DFD5; border-radius: 12px; }
.assistant-drawer .assistant-choice > span { min-width: 0; }
.assistant-drawer .assistant-choice br { display: none; }
.assistant-drawer .assistant-choice small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; }
.assistant-drawer .assistant-choice.is-active { border-color: #C6382B; background: #fff3ed; }
.assistant-drawer .assistant-input { display: flex; flex-wrap: nowrap; }
.assistant-drawer .assistant-input input { min-width: 0; width: 100%; font-size: 16px; }
.assistant-drawer .assistant-input button { width: auto; min-width: 82px; font-size: 14px; padding: 8px; background: #C6382B; color: white; }
.assistant-drawer .assistant-context { max-width: 100%; }
.assistant-drawer .assistant-context > p { font-size: 14px; }
.assistant-drawer .assistant-result-card { background: white; box-shadow: none; border-radius: 12px; }
.assistant-recipe-context { font-size: 14px; color: #35634A; }
.assistant-recipe-context:empty { display: none; }
.text-input-focused [data-assistant-fab],.navigation-panel-open [data-assistant-fab],.assistant-drawer-open [data-assistant-fab],.cooking-open [data-assistant-fab] { display: none !important; }
.cooking-dialog { width: min(800px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: #FFFAF3; color: #3A1F33; border: 1px solid #E8DFD5; border-radius: 16px; padding: 32px; }
.cooking-dialog::backdrop { background: #241522aa; }
.cooking-header { display: flex; gap: 24px; justify-content: space-between; align-items: center; border-bottom: 1px solid #E8DFD5; padding-bottom: 16px; }
.cooking-header strong { font-size: 18px; }
.cooking-progress { color: #35634A; font-weight: 700; margin-top: 24px; }
.cooking-step-text { font-size: clamp(20px,2.5vw,28px); line-height: 1.65; margin: 16px 0 24px; white-space: pre-line; }
.cooking-speech { margin: 0 0 20px; padding: 16px; border: 1px solid #E8DFD5; border-radius: 12px; background: #fff; }
.cooking-speech > strong { display: block; margin-bottom: 12px; font-size: 16px; }
.cooking-speech-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cooking-speech-buttons .btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.cooking-speech-buttons .btn:disabled { opacity: .5; cursor: default; }
.cooking-speech-status { margin: 12px 0 0; color: #655a60; font-size: 14px; line-height: 1.5; }
.cooking-speech-settings { margin-top: 8px; }
.cooking-speech-settings summary { display: list-item; width: fit-content; min-height: 44px; padding-block: 12px; cursor: pointer; font-size: 14px; }
.cooking-speech-options { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 12px; margin-block: 8px; }
.cooking-speech-options label { display: grid; gap: 6px; min-width: 0; font-size: 14px; }
.cooking-speech-options select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #9a8a91; border-radius: 8px; padding: 8px; font: inherit; font-size: 16px; color: #3A1F33; background: #FFFAF3; }
.cooking-speech-auto { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-block: 12px; font-size: 14px; }
.cooking-speech-auto input { flex-shrink: 0; width: 20px; height: 20px; accent-color: #C6382B; }
.cooking-speech-settings small { display: block; color: #655a60; font-size: 13px; line-height: 1.5; }
.cooking-speech [hidden] { display: none !important; }
.cooking-step-check { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.cooking-controls { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0; }
.cooking-controls .btn { min-height: 52px; }
.cooking-ingredients { padding: 16px; border: 1px solid #E8DFD5; background: white; border-radius: 12px; }
.cooking-ingredients summary { min-height: 44px; cursor: pointer; font-weight: 700; }
.cooking-ingredients li { margin: 12px 0; }
.cooking-timer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 24px 0; }
.cooking-timer input { width: 90px; min-height: 44px; font-size: 16px; padding: 8px; border-radius: 8px; border: 1px solid #9a8a91; }
.cooking-timer output { flex: 1 0 100%; font-size: 24px; font-variant-numeric: tabular-nums; }
.cooking-wake { display: flex; align-items: center; gap: 8px; min-height: 44px; }
@media (max-width:1023px) {
  .personal-recipe-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .week-menu-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:639px) {
  .notebook-page { padding-top: 24px; }
  .notebook-heading { margin-bottom: 24px; }
  .notebook-tabs { gap: 0; justify-content: space-between; }
  .notebook-tabs button { padding-inline: 0; }
  .notebook-section-head { display: block; }
  .notebook-section-head > a,.notebook-section-head > button { display: inline-flex; margin-top: 12px; }
  .personal-recipe-grid,.week-menu-grid,.personal-notes-list { grid-template-columns: minmax(0,1fr); }
  .personal-recipe-card.recipe-card { display: grid; grid-template-columns: 112px minmax(0,1fr); min-height: 132px; }
  .personal-recipe-card .recipe-card-media { height: 100%; aspect-ratio: auto; }
  .personal-recipe-card .recipe-card-media img { height: 100%; aspect-ratio: auto; }
  .personal-recipe-card .card-pad { padding: 12px 12px 52px; }
  .personal-recipe-card .card-title { font-size: 18px; }
  .personal-recipe-card .bookmark { top: auto; bottom: 8px; right: 8px; }
  .personal-recipe-card .history-remove { grid-column: 2; margin: -44px 12px 0; justify-self: start; }
  .week-day-card { padding: 20px 0; }
  .cookbook-toast { flex-wrap: wrap; gap: 8px 12px; bottom: 12px; }
  .cookbook-toast > span { flex: 1 0 100%; }
  .assistant-drawer { width: 100%; max-width: none; height: 100dvh; border-radius: 0; }
  .assistant-drawer .assistant-body { padding-bottom: 40px; }
  .cooking-dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: 20px; }
  .cooking-header { align-items: start; gap: 12px; }
  .cooking-header .btn { padding: 8px; font-size: 14px; }
  .cooking-controls .btn { font-size: 14px; padding: 12px; }
  .cooking-speech-buttons .btn { flex: 1 1 auto; }
  .cooking-speech-buttons .btn:first-child { flex-basis: 100%; }
}
/* Notebook-only composition; assistant cards and cooking controls keep their own styles. */
.notebook-heading > p:first-of-type { font-size: 18px; max-width: 54ch; }
.notebook-page .notebook-section-head > a { color: #a5261d; font-size: 14px; text-underline-offset: 4px; }
.notebook-page .personal-recipe-card.recipe-card { background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.notebook-page .personal-recipe-card .recipe-card-media { border-radius: 16px; overflow: hidden; }
.notebook-page .personal-recipe-card .card-pad { padding: 14px 0 0; }
.notebook-page .personal-recipe-card .card-title { font: 600 18px/1.4 var(--font-sans); margin-bottom: 8px; }
.notebook-page .personal-recipe-card .meta-row { font-size: 13px; }
.notebook-page .personal-recipe-card .bookmark { background: #fffaf3; }
.notebook-page .menu-recipe-link { font: 400 25px/1.3 Georgia,serif; text-decoration-color: #bcae9e; text-underline-offset: 4px; }
.notebook-page .week-day-card small { color: #655a60; line-height: 1.5; }
.notebook-page [data-favorites-empty] { padding: 32px 0; border: 0; border-top: 1px solid #d9ccbf; border-radius: 0; background: transparent; text-align: left; }
.notebook-page [data-favorites-empty] h3 { margin: 0 0 12px; font: 400 30px/1.2 Georgia,serif; }
.notebook-page [data-favorites-empty] p { max-width: 48ch; margin-bottom: 20px; color: #655a60; }
@media (max-width:639px) {
  .notebook-page .personal-recipe-card.recipe-card { grid-template-columns: 112px minmax(0,1fr); gap: 16px; }
  .notebook-page .personal-recipe-card .card-pad { padding: 8px 0 48px; }
  .notebook-page .personal-recipe-card .card-title { font-size: 16px; }
  .notebook-page .personal-recipe-card .history-remove { margin-left: 0; }
}

@media print {
  .cookbook-toast,.cooking-dialog,.assistant-drawer,.notebook-tabs,.notebook-history { display: none !important; }
  body.printing-shopping .site-header,body.printing-shopping .site-footer,body.printing-shopping .notebook-heading,body.printing-shopping .week-menu-grid,body.printing-shopping [data-notebook-panel] > .notebook-section-head,body.printing-shopping [data-shopping-generate],body.printing-shopping .shopping-actions { display: none !important; }
  body.printing-shopping [data-notebook-panel="semaine"] { display: block !important; }
  body.printing-shopping .shopping-panel { margin: 0; border: 0; padding: 0; }
  body.printing-shopping .shopping-list { max-width: none; }
}
.assistant-drawer .assistant-result-card.recipe-card { position: relative; display: grid; grid-template-columns: 104px minmax(0,1fr); padding: 0; gap: 0; }
.assistant-drawer .assistant-result-card .recipe-card-media { height: 100%; aspect-ratio: auto; }
.assistant-drawer .assistant-result-card .recipe-card-media img { height: 100%; width: 100%; object-fit: cover; }
.assistant-drawer .assistant-result-card .card-pad { padding: 12px 12px 52px; min-width: 0; }
.assistant-drawer .assistant-result-card .card-title { font-size: 17px; margin-bottom: 8px; }
.assistant-drawer .assistant-result-card .card-pad > small { display: block; line-height: 1.45; font-size: 13px; margin-top: 8px; }
.assistant-drawer .assistant-result-card .bookmark { top: auto; bottom: 8px; right: 8px; }
.listing-network-error { margin-top: 16px; padding: 16px; border: 1px solid #C6382B; border-radius: 12px; background: #fff; }
.listing-network-error p { margin: 0 0 12px; }

/* Keep the launcher rectangle measurable while making overlapping controls accessible. */
.assistant-fab[data-assistant-fab].is-control-overlap { visibility: hidden; pointer-events: none; }
