/* Повара: постоянная навигация, прокручиваются карточки и записи. */
.cook-window { box-sizing: border-box; width: min(94vw, 680px); max-width: 680px !important; height: 88vh; height: 88dvh; max-height: 90vh; max-height: 90dvh; padding: 20px !important; display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.cook-window > .reader-heading, .cook-window > .reader-summary, .cook-window > .reader-tabs, .cook-window > #cook-tools, .cook-window > .reader-error { flex-shrink: 0; }
.cook-window [hidden], .cook-editor-window [hidden] { display: none !important; }
.cook-scroll { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cook-editor-overlay { z-index: 500140; }
.cook-editor-window { box-sizing: border-box; width: min(94vw, 590px); max-width: 590px !important; max-height: 90vh; max-height: 90dvh; overflow-y: auto; padding: 20px !important; text-align: left; }
.cook-card, .cook-detail, .cook-week { border-left: 3px solid #6dad78; }
#cook-tools .reader-toolbar { margin-bottom: 10px; }
.cook-search-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }
.cook-search-row input, .cook-search-row select { width: 100%; box-sizing: border-box; min-width: 0; border: 1px solid #575044; border-radius: 6px; background: #111; color: #dfd5bf; font: 16px 'Courier New', monospace; padding: 8px; min-height: 44px; }
.cook-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.cook-tags span { border-radius: 4px; border: 1px solid #475747; padding: 3px 7px; color: #baceb8; font-size: 12px; overflow-wrap: anywhere; }
.cook-detail-note h4 { color: #c4b89e; font-size: 13px; margin: 16px 0 6px; }
.cook-detail-note .reader-note { margin: 6px 0 14px; }
.cook-history-title { font-size: 16px; margin: 22px 0 14px; color: #ffd166; }
.cook-form-title { color: #ffd166; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.cook-map-link { display: inline-flex; align-items: center; text-decoration: none; }
.cook-window a { color: #ffd166; }
#cook-message:empty { display: none; }
.cook-choices { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.cook-choices legend { color: #c4b89e; font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.cook-choices > div { display: flex; flex-wrap: wrap; gap: 7px; }
.cook-choices label { position: relative; cursor: pointer; max-width: 100%; }
.cook-choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cook-choices span { display: flex; align-items: center; box-sizing: border-box; min-height: 44px; border: 1px solid #665335; border-radius: 6px; background: #28241f; color: #dfd5bf; padding: 8px 10px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.cook-choices input:checked + span { background: #493a25; border-color: #d4af37; color: #ffd166; }
.cook-choices input:focus-visible + span { outline: 2px solid #ffd166; outline-offset: 2px; }
.cook-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 12px 0; }
.cook-days button { padding: 6px 1px; font-size: 12px; }
.cook-day-recorded { border-color: #d4af37; color: #ffd166; background: #493a25; }
.cook-habit .reader-button { width: 100%; margin-top: 8px; }
.cook-week .reader-field { margin-top: 16px; }
@media (max-width: 700px) {
    .cook-window, .cook-editor-window { width: calc(100vw - 20px); padding: 16px 12px !important; }
    .cook-window { height: 90vh; height: 90dvh; }
    .cook-window .reader-tabs button { font-size: 12px; }
}
@media (max-height: 500px) { .cook-window { height: 95vh; height: 95dvh; max-height: 95dvh; } .cook-window .reader-summary { margin-bottom: 6px; } .cook-window .reader-heading { margin-bottom: 6px; } }
