:root {
  --forest: #315c45;
  --forest-dark: #203f30;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --ink: #23302a;
  --muted: #68746d;
  --sage: #dce8da;
  --orange: #d96d3b;
  --line: #deddd4;
  --shadow: 0 16px 50px rgba(35, 48, 42, .10);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; padding: 0 28px; margin: auto; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px 14px 14px 4px; color: white; background: var(--forest); font: 700 22px Georgia, serif; }
.brand strong, .brand small { display: block; }.brand strong { font-family: Georgia, serif; font-size: 20px; }.brand small { color: var(--muted); font-size: 12px; }
.add-button, .search button, .form-actions button { color: white; background: var(--forest); border: 0; text-decoration: none; border-radius: 999px; padding: 12px 20px; font-weight: 750; cursor: pointer; }
.add-button:hover, .search button:hover, .form-actions button:hover { background: var(--forest-dark); }
.add-label-mobile { display: none; }
.hero { background: var(--forest); color: white; text-align: center; padding: 78px 24px 84px; }
.eyebrow { margin: 0 0 12px; color: #c9dbc7; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1, .recipe-page h1, .form-heading h1 { margin: 0; font: 700 clamp(42px, 7vw, 74px)/1.04 Georgia, serif; letter-spacing: -.025em; }
.hero > p:not(.eyebrow) { margin: 18px auto 30px; color: #e4ede2; font-size: 18px; }
.search { display: flex; align-items: stretch; gap: 10px; max-width: 920px; margin: auto; background: white; border-radius: 18px; padding: 8px; box-shadow: var(--shadow); }
.search-advanced { display: block; }.search-main { display: flex; align-items: stretch; gap: 10px; }.filter-panel { color: var(--ink); text-align: left; border-top: 1px solid var(--line); margin-top: 8px; padding: 2px 8px 5px; }.filter-panel summary { display: inline-flex; align-items: center; gap: 7px; padding: 10px 4px 5px; color: var(--forest); font-weight: 750; cursor: pointer; }.filter-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px 0 4px; }.filter-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }.filter-grid select, .filter-grid input[type="date"] { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px; color: var(--ink); background: white; font: inherit; }.filter-grid .favorite-check { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }.favorite-check input { width: 18px; height: 18px; accent-color: var(--forest); }
.search-field { flex: 1; }.search input { width: 100%; border: 0; outline: none; font: inherit; color: var(--ink); background: transparent; padding: 13px; }
.points-filter { display: flex; align-items: center; border-left: 1px solid var(--line); padding-left: 14px; color: var(--muted); white-space: nowrap; }.points-filter input { width: 52px; text-align: center; padding-inline: 4px; }
.content-section { max-width: 1200px; margin: auto; padding: 52px 28px 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }.section-heading h2, .recipe-columns h2 { font: 700 30px Georgia, serif; margin: 0; }.section-heading a { color: var(--forest); font-weight: 700; }
.filter-actions { display: flex; justify-content: flex-end; padding: 8px 0 4px; border-top: 1px solid var(--line); }
.filter-actions .reset-filter-button { padding: 8px 14px; border: 1px solid var(--forest); border-radius: 999px; color: var(--forest); text-decoration: none; font-size: 13px; font-weight: 750; }
.filter-actions .reset-filter-button:hover { color: white; background: var(--forest); }
.filter-grid .filter-check { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.filter-check input { width: 18px; height: 18px; accent-color: var(--forest); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.recipe-card-wrap { display: flex; min-width: 0; flex-direction: column; }
.recipe-card-wrap .recipe-card { flex: 1; }
.choose-recipe-form { margin-top: -18px; padding: 0 18px 18px; z-index: 1; }
.choose-recipe-form button { width: 100%; border: 0; border-radius: 999px; padding: 11px 15px; color: white; background: var(--orange); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 5px 15px rgba(35,48,42,.15); }
.choose-recipe-form button:hover { background: #bd572d; }
.recipe-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--paper); text-decoration: none; box-shadow: 0 4px 24px rgba(35,48,42,.07); transition: transform .2s, box-shadow .2s; }.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-image { position: relative; aspect-ratio: 4/3; background: var(--sage); overflow: hidden; }.card-image img { width: 100%; height: 100%; object-fit: cover; }.points-badge { position: absolute; left: 16px; bottom: 16px; background: rgba(255,253,248,.94); border-radius: 99px; padding: 8px 12px; font-size: 12px; }.points-badge b { font-size: 18px; margin-right: 3px; }
.favorite-badge { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #e6a11e; font-size: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }.card-body .meta { margin: 0 0 6px; color: var(--orange); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.card-body h3 { margin: 0; font: 700 25px/1.15 Georgia, serif; }.card-body > p:not(.meta) { color: var(--muted); font-size: 14px; }.card-link { margin-top: auto; color: var(--forest); font-weight: 750; }
.card-body .card-history { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 4px 0 14px; color: var(--forest); font-size: 12px; font-weight: 750; }.card-history span:first-child { color: #b87b09; }
.source-tag { display: inline-flex; width: fit-content; margin: 0 0 8px; padding: 4px 9px; border-radius: 999px; color: #315c45; background: #dce8da; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.source-themealdb { color: #7d311f; background: #f6dfd4; }.source-thecocktaildb { color: #35557b; background: #dfeaf7; }.source-eget.recept { color: #584a73; background: #e8e1f2; }
.category-tag { display: inline-flex; width: fit-content; margin: 0 0 8px; padding: 4px 9px; border: 1px solid #e7c7ae; border-radius: 999px; color: #8a4b29; background: #fff4e9; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.recipe-copy > .source-tag, .recipe-copy > .category-tag { margin-right: 6px; }
.empty-state { padding: 70px 20px; text-align: center; background: var(--paper); border-radius: 22px; }.empty-state h3 { font: 700 28px Georgia, serif; margin: 0; }
.recipe-page, .form-page { max-width: 1120px; margin: auto; padding: 36px 28px 80px; }.back { display: inline-block; color: var(--forest); font-weight: 750; margin-bottom: 28px; text-decoration: none; }
.recipe-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; overflow: hidden; background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); }.recipe-copy { padding: 60px; align-self: center; }.recipe-copy .eyebrow, .form-heading .eyebrow { color: var(--orange); }.recipe-copy .lead { font-size: 18px; color: var(--muted); margin: 24px 0; }.recipe-main-image { width: 100%; height: 100%; object-fit: cover; }
.fact-row { display: flex; gap: 12px; margin: 32px 0; }.fact-row div { min-width: 90px; border-top: 2px solid var(--sage); padding-top: 12px; }.fact-row strong, .fact-row span { display: block; }.fact-row strong { font: 700 22px Georgia, serif; }.fact-row span { color: var(--muted); font-size: 12px; }.edit-link { color: var(--forest); font-weight: 750; }
.recipe-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }.recipe-actions form { margin: 0; }.favorite-button { border: 1px solid #d8a037; border-radius: 999px; padding: 10px 16px; color: #8c650d; background: #fff8df; font: inherit; font-weight: 750; cursor: pointer; }.favorite-button span { color: #e6a11e; font-size: 18px; }.favorite-button.active { color: white; background: #d99a19; border-color: #d99a19; }.favorite-button.active span { color: white; }
.recipe-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 64px 48px 30px; }.servings { color: var(--muted); }.ingredients ul, .method ol { padding: 0; margin: 24px 0; list-style: none; }.ingredients li { padding: 11px 0; border-bottom: 1px solid var(--line); }.method ol { counter-reset: step; }.method li { position: relative; padding: 0 0 24px 54px; }.method li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -3px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-weight: 800; }
.tip { margin-top: 18px; padding: 22px; border-radius: 16px; background: var(--sage); }.tip p { margin: 5px 0 0; }.source { margin: 15px 48px 0; color: var(--muted); font-size: 13px; }
.cooking-history { margin: 45px 48px 20px; padding: 38px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }.history-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 28px; }.history-heading .eyebrow { color: var(--orange); }.history-heading h2 { margin: 0; font: 700 32px Georgia, serif; }.average-rating { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; text-align: right; }.average-rating .stars { color: #e6a11e; font-size: 24px; }.average-rating strong { font: 700 28px Georgia, serif; }.average-rating small { grid-column: 1/-1; color: var(--muted); }
.cooking-form { display: grid; grid-template-columns: 180px 1fr auto; gap: 18px; align-items: end; padding: 24px; border-radius: 18px; background: var(--sage); }.cooking-form > label, .rating-field { display: grid; gap: 7px; font-size: 14px; font-weight: 750; }.cooking-form input[type="date"], .cooking-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: white; color: var(--ink); font: inherit; }.cooking-form textarea:focus, .cooking-form input:focus { outline: 3px solid rgba(49,92,69,.15); border-color: var(--forest); }.rating-field { margin: 0; padding: 0; border: 0; }.rating-field legend { margin-bottom: 5px; }.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; }.star-picker input { position: absolute; opacity: 0; pointer-events: none; }.star-picker label { color: #a9b4ad; font-size: 30px; line-height: 42px; cursor: pointer; transition: color .15s, transform .15s; }.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: #e6a11e; }.star-picker label:hover { transform: scale(1.12); }.star-picker input:focus-visible + label { outline: 2px solid var(--forest); border-radius: 4px; }.log-comment { grid-column: 1/3; }.log-comment span { color: var(--muted); font-weight: 400; }.cooking-form button { min-height: 46px; color: white; background: var(--forest); border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 750; cursor: pointer; }.cooking-form button:hover { background: var(--forest-dark); }
.history-list { margin-top: 28px; }.history-entry { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 2px; border-bottom: 1px solid var(--line); }.history-entry:last-child { border-bottom: 0; }.history-date strong, .history-date span { display: block; }.history-date span { color: #e6a11e; letter-spacing: 1px; }.history-entry p { margin: 0; }.history-entry .muted, .no-history { color: var(--muted); }.no-history { margin: 26px 0 0; }
.form-page { max-width: 920px; }.form-heading { margin-bottom: 36px; }.form-heading h1 { font-size: clamp(40px,6vw,64px); }.form-heading > p:last-child { color: var(--muted); }.recipe-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 34px; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); }.recipe-form label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; }.recipe-form input, .recipe-form textarea, .recipe-form select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 12px; color: var(--ink); font: inherit; }.recipe-form textarea { resize: vertical; }.recipe-form input:focus, .recipe-form textarea:focus, .recipe-form select:focus { outline: 3px solid rgba(49,92,69,.15); border-color: var(--forest); }.wide { grid-column: 1/-1; }.image-upload small { color: var(--muted); font-weight: 400; }.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }.form-actions a { color: var(--muted); }
.flash-wrap { position: fixed; z-index: 5; top: 92px; left: 50%; transform: translateX(-50%); }.flash { color: white; background: var(--forest); padding: 12px 20px; border-radius: 99px; box-shadow: var(--shadow); }.flash.error { background: #a83f35; }
.user-nav { display: flex; align-items: center; gap: 14px; font-size: 13px; }.user-nav a:not(.add-button), .text-button { color: var(--forest); font: inherit; font-weight: 750; }.user-nav form { margin: 0; }.text-button { padding: 0; border: 0; background: transparent; cursor: pointer; text-decoration: underline; }
.auth-page { display: grid; min-height: calc(100vh - 180px); place-items: center; padding: 40px 20px 80px; }.auth-card { width: min(440px, 100%); display: grid; gap: 18px; padding: 42px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }.auth-card .eyebrow { color: var(--orange); }.auth-card h1 { margin: 0; font: 700 44px/1.05 Georgia, serif; }.auth-card > p:not(.eyebrow) { margin: 0 0 8px; color: var(--muted); }.auth-card label, .admin-page label { display: grid; gap: 6px; font-size: 13px; font-weight: 750; }.auth-card input, .admin-page input, .admin-page select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--ink); background: white; font: inherit; }.auth-card small, .admin-page small { display: block; color: var(--muted); font-weight: 400; }.auth-card button, .admin-page button { border: 0; border-radius: 999px; padding: 12px 18px; color: white; background: var(--forest); font-weight: 750; cursor: pointer; }
.admin-page { max-width: 1180px; margin: auto; padding: 36px 28px 80px; }.admin-page > .eyebrow { color: var(--orange); }.admin-page > h1 { margin: 0 0 32px; font: 700 clamp(38px,6vw,60px)/1.05 Georgia, serif; }.admin-panel { margin: 24px 0; padding: 28px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }.admin-panel h2 { margin-top: 0; font: 700 27px Georgia, serif; }.admin-create { display: grid; grid-template-columns: 1fr 1fr 180px auto; gap: 14px; align-items: end; }.user-row { display: grid; grid-template-columns: 1.2fr 160px 100px 1.4fr auto; gap: 14px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }.user-row:first-child { border-top: 0; }.check-label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }.check-label input { width: auto; }.activity-table-wrap { overflow-x: auto; }.activity-table { width: 100%; border-collapse: collapse; font-size: 13px; }.activity-table th, .activity-table td { padding: 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }.activity-table th { color: var(--muted); }
.online-status { color: #23823e !important; font-weight: 800 !important; }
.admin-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.admin-panel-heading h2 { margin-bottom: 4px; }
.admin-panel-heading p { margin: 0 0 22px; color: var(--muted); }
.backup-status { flex: none; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.backup-status.ready { color: #176b32; background: #dcefdc; }
.backup-status.unavailable { color: #8a332d; background: #f5d9d5; }
.backup-settings { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 16px; align-items: start; }
.backup-settings > .check-label { grid-column: 1/-1; }
.backup-settings > label:not(.check-label) { grid-template-rows: auto 48px minmax(34px, auto); align-content: start; }
.backup-settings > label:not(.check-label) input { height: 48px; }
.backup-settings input[type="checkbox"] { width: auto; }
.backup-actions { display: flex; grid-column: 1/-1; align-items: center; justify-content: flex-end; }
.backup-target-help { margin-top: 18px; padding: 14px 16px; border-radius: 12px; color: var(--ink); background: #eef3ed; font-size: 13px; }
.backup-target-help p { margin: 4px 0 0; color: var(--muted); }
.backup-target-help code, .backup-note code { padding: 2px 5px; border-radius: 5px; color: var(--forest-dark); background: rgba(255,255,255,.75); }
.backup-summary { display: flex; align-items: center; gap: 24px; margin-top: 24px; padding: 18px; border-radius: 16px; background: var(--sage); }
.backup-summary > div { display: grid; }
.backup-summary strong { font: 700 24px Georgia, serif; }
.backup-summary span { color: var(--muted); font-size: 11px; }
.backup-summary form { margin-left: auto; }
.backup-summary button:disabled { cursor: not-allowed; opacity: .45; }
.backup-history { margin-top: 22px; }
.run-status { padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.run-status.success { color: #176b32; background: #dcefdc; }
.run-status.failed { color: #8a332d; background: #f5d9d5; }
.run-status.running { color: #76580c; background: #fff1bd; }
.backup-note { margin: 20px 0 0; padding: 14px; border-left: 3px solid var(--orange); color: var(--muted); background: #fff8ef; font-size: 13px; }
.weekly-page { max-width: 1440px; margin: auto; padding: 44px 28px 90px; }
.weekly-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.weekly-heading .eyebrow { color: var(--orange); }
.weekly-heading h1 { margin: 0; font: 700 clamp(42px,7vw,70px)/1 Georgia, serif; }
.print-title { display: none; }
.weekly-heading > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 18px; }
.weekly-back { margin-bottom: 16px; }
.print-button { color: white; background: var(--forest); border: 0; border-radius: 999px; padding: 12px 20px; font: inherit; font-weight: 750; cursor: pointer; }
.weekly-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.8); }
.weekly-toolbar a { padding: 8px 12px; border-radius: 10px; color: var(--forest); text-decoration: none; font-size: 13px; font-weight: 750; }
.weekly-toolbar a:hover, .weekly-toolbar .active { background: var(--sage); }
.toolbar-spacer { flex: 1; }
.weekly-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; align-items: start; }
.day-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 5px 22px rgba(35,48,42,.06); }
.day-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.day-heading p { margin: 0; font: 700 20px Georgia, serif; }
.day-heading time { color: var(--muted); font-size: 12px; }
.day-heading > span { padding: 3px 7px; border-radius: 999px; color: var(--forest); background: var(--sage); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.day-recipe { display: block; text-decoration: none; }
.day-image { display: grid; aspect-ratio: 4/3; place-items: center; overflow: hidden; color: var(--forest); background: var(--sage); font-size: 38px; }
.day-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.day-recipe:hover .day-image img { transform: scale(1.025); }
.day-copy { padding: 16px; }
.day-copy h2 { margin: 2px 0 10px; font: 700 19px/1.15 Georgia, serif; overflow-wrap: anywhere; }
.day-copy > p:not(.category-tag) { color: var(--muted); font-size: 13px; }
.open-recipe { color: var(--forest); font-size: 12px; font-weight: 800; }
.empty-meal { display: grid; min-height: 218px; place-items: center; align-content: center; color: var(--muted); background: linear-gradient(135deg, var(--paper), var(--sage)); text-align: center; text-decoration: none; transition: background .2s, color .2s; }
.empty-meal:hover { color: var(--forest); background: var(--sage); }
.empty-meal span { font-size: 35px; }
.empty-meal p { margin: 6px 12px; font-size: 13px; }
.empty-meal small { color: var(--forest); font-weight: 800; }
.planning-banner { display: flex; max-width: 920px; align-items: center; justify-content: center; gap: 12px 20px; flex-wrap: wrap; margin: 0 auto 28px; padding: 13px 18px; border-radius: 14px; color: var(--ink); background: #fff4e9; box-shadow: var(--shadow); }
.planning-banner strong { font-family: Georgia, serif; font-size: 18px; }
.planning-banner span { color: var(--muted); font-size: 13px; }
.planning-banner a { color: var(--forest); font-weight: 800; }
.day-planner { display: grid; gap: 9px; padding: 13px; border-top: 1px solid var(--line); background: #f7f5ee; }
.day-planner label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.day-planner select { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: inherit; font-size: 12px; }
.day-planner button { justify-self: start; padding: 7px 12px; border: 0; border-radius: 999px; color: white; background: var(--forest); font-weight: 750; cursor: pointer; }
.weekly-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.weekly-details .day-card { display: grid; grid-template-columns: 150px 1fr; }
.weekly-details .day-heading, .weekly-details .day-planner { grid-column: 1/-1; }
.weekly-details .day-recipe { display: contents; }
.weekly-details .day-image { aspect-ratio: auto; min-height: 210px; }
.weekly-details .day-copy { padding: 22px; }
.weekly-details .day-copy h2 { font-size: 26px; }
.day-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.day-facts span { padding: 5px 8px; border-radius: 7px; color: var(--forest); background: var(--sage); font-size: 11px; }
footer { text-align: center; padding: 28px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 1100px) { .weekly-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.weekly-details { grid-template-columns: 1fr 1fr; } }
@media (max-width: 850px) { .recipe-grid { grid-template-columns: repeat(2, 1fr); }.filter-grid { grid-template-columns: repeat(2, 1fr); }.recipe-hero { grid-template-columns: 1fr; }.recipe-main-image { grid-row: 1; aspect-ratio: 16/10; }.recipe-copy { padding: 38px; }.recipe-columns { grid-template-columns: 1fr; gap: 42px; padding-inline: 20px; }.cooking-form { grid-template-columns: 1fr 1fr; }.log-comment { grid-column: 1/-1; }.cooking-form button { grid-column: 1/-1; justify-self: start; }.admin-create, .user-row, .backup-settings { grid-template-columns: 1fr 1fr; }.user-nav > span { display: none; } }
@media (max-width: 600px) { .site-header { min-height: 72px; height: auto; padding: 10px 16px; flex-wrap: wrap; }.brand small { display: none; }.user-nav { width: 100%; justify-content: space-between; gap: 9px; padding-top: 8px; border-top: 1px solid var(--line); }.user-nav .add-button { display: inline-flex; }.add-label-full { display: none; }.add-label-mobile { display: inline; }.user-nav > span { display: none; }.add-button { padding: 9px 13px; }.hero { padding: 52px 16px 60px; }.search-main { flex-wrap: wrap; }.search-field { flex-basis: 100%; }.points-filter { flex: 1; }.filter-grid { grid-template-columns: 1fr; }.content-section { padding-inline: 16px; }.recipe-grid { grid-template-columns: 1fr; }.recipe-page, .form-page { padding: 24px 16px 60px; }.recipe-copy { padding: 30px 24px; }.fact-row { flex-wrap: wrap; }.recipe-form { grid-template-columns: 1fr; padding: 22px; }.recipe-form label { grid-column: 1; }.form-actions { grid-column: 1; }.source { margin-inline: 20px; }.cooking-history { margin-inline: 0; padding: 24px 18px; }.history-heading { align-items: flex-start; }.cooking-form { grid-template-columns: 1fr; padding: 18px; }.cooking-form > *, .log-comment, .cooking-form button { grid-column: 1; }.history-entry { grid-template-columns: 1fr; gap: 8px; }.auth-card, .admin-panel { padding: 22px; }.admin-create, .user-row, .backup-settings { grid-template-columns: 1fr; }.admin-panel-heading, .backup-summary { align-items: stretch; flex-direction: column; }.backup-summary form { margin-left: 0; } }
@media (max-width: 850px) { .weekly-grid, .weekly-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .weekly-page { padding: 28px 14px 60px; }.weekly-heading { align-items: flex-start; }.weekly-heading h1 { font-size: 45px; }.weekly-toolbar { flex-wrap: wrap; }.toolbar-spacer { display: none; }.weekly-grid, .weekly-details { grid-template-columns: 1fr; }.weekly-details .day-card { grid-template-columns: 115px 1fr; }.user-nav a:not(.add-button) { font-size: 12px; } }
@media (max-width: 600px) { .points-filter { border-left: 0; border-top: 1px solid var(--line); padding: 8px 0 0 8px; } }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: white; color: #111; }
  .site-header, .weekly-toolbar, .print-button, .day-planner, .weekly-back, footer, .flash-wrap { display: none !important; }
  .weekly-page { max-width: none; padding: 0; }
  .weekly-heading { margin-bottom: 8mm; }
  .screen-title { display: none; }
  .print-title { display: block; }
  .weekly-heading h1 { font-size: 34pt; }
  .weekly-grid, .weekly-details { grid-template-columns: repeat(7, 1fr); gap: 3mm; }
  .weekly-details .day-card { display: block; }
  .day-card { break-inside: avoid; border: 1px solid #aaa; box-shadow: none; }
  .day-heading { padding: 3mm; }
  .day-heading > span { display: none; }
  .day-heading p { font-size: 14pt; }
  .day-image, .weekly-details .day-image { min-height: 0; aspect-ratio: 4/3; }
  .day-copy { padding: 3mm; }
  .day-copy h2, .weekly-details .day-copy h2 { font-size: 13pt; }
  .day-copy .category-tag, .open-recipe, .day-facts { display: none; }
  .day-copy > p:not(.category-tag) { font-size: 8pt; }
  .empty-meal { min-height: 38mm; }
}
