:root{--bg:#f8f7f5;--surface:#ffffff;--surface2:#efeae4;--forest:#242220;--sage:#776d63;--sage-pale:#e9e4dc;--ink:#272421;--muted:#77716a;--border:#e6e0d9;--warning:#946b46;--danger:#a04f4c;--radius:20px;--shadow:0 7px 22px rgba(42,34,28,.045)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",system-ui,sans-serif;font-size:15px;-webkit-tap-highlight-color:transparent}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}input,textarea,select{outline-color:var(--sage);max-width:100%}input[type=date]{min-height:44px}a{color:var(--forest)}.app-shell{margin:auto;width:100%;max-width:860px;min-height:100dvh;padding-bottom:94px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 23px}.brand{display:flex;align-items:center;gap:8px;letter-spacing:.17em;color:var(--forest);font-size:12px}.brand strong{font-weight:750}.brand-symbol{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:var(--forest);color:#fff;font-size:25px;font-weight:300;line-height:1}.icon-button{width:42px;height:42px;border:1px solid var(--border);background:white;border-radius:14px;color:var(--forest);font-size:23px;line-height:1}.page{padding:4px 22px 24px}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:10px;font-weight:750;color:var(--sage);margin:0 0 10px}.page h1,.modal h2{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.04em;color:var(--forest);font-size:35px;font-weight:400;line-height:1.14;margin:0 0 8px}.modal h2{font-size:29px}.subtitle{color:var(--muted);line-height:1.6;margin:0 0 22px}.space-top{margin-top:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:26px 0 13px}.section-heading h2{font-family:Georgia,serif;font-weight:400;color:var(--forest);font-size:24px;letter-spacing:-.03em;margin:0}.small-link{border:0;background:transparent;color:var(--forest);font-weight:700;font-size:12px;padding:8px 1px}.hero{background:#d7d0c5;color:var(--ink);padding:25px;border-radius:24px;position:relative;overflow:hidden;box-shadow:var(--shadow)}.hero:after{content:'⌂';position:absolute;right:12px;bottom:-94px;font:230px Georgia,serif;opacity:.07}.hero .eyebrow{color:#625b53}.hero h2{font:400 30px Georgia,serif;letter-spacing:-.035em;margin:0 0 11px}.hero p{font-size:13px;opacity:.84;line-height:1.5;margin:0}.pill{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(36,34,32,.19);color:#302c28;border-radius:20px;font-size:11px;padding:5px 11px;margin:12px 0 0}.pill.offline{background:#eee5d9;border:1px solid #d8cebf;color:#5d534a}.pill.online{background:#e6dfd6;color:#38312c;border:1px solid #cbbfb1}.hero .pill.offline{background:rgba(255,255,255,.36);color:#332e29}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metric{border:1px solid var(--border);border-radius:20px;background:white;padding:17px;min-height:137px;text-align:left;display:flex;flex-direction:column;gap:10px;color:inherit}.metric .metric-icon{display:grid;place-items:center;background:var(--surface2);width:39px;height:39px;border-radius:12px;font-size:21px}.metric strong{font-size:15px}.metric span:not(.metric-icon){font-size:12px;color:var(--muted)}.metric em{font-style:normal;color:var(--forest);font-size:14px;font-weight:700}.panel{border:1px solid var(--border);border-radius:20px;background:#fff;padding:17px;box-shadow:var(--shadow)}.panel + .panel{margin-top:10px}.empty{padding:34px 16px;text-align:center;background:#fff;border:1px dashed #d5c9bb;border-radius:20px;color:var(--muted);line-height:1.6}.empty-symbol{display:block;font-size:32px;margin-bottom:9px}.empty strong{display:block;font-size:16px;color:var(--forest);margin-bottom:6px}.empty p{max-width:320px;margin:0 auto 16px;font-size:13px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border:0;border-radius:13px;padding:10px 17px;font-weight:720;font-size:13px;white-space:nowrap}.btn.primary{background:var(--forest);color:white}.btn.secondary{background:var(--surface2);color:var(--forest)}.btn.ghost{background:#fff;border:1px solid var(--border);color:var(--forest)}.btn.danger{background:#f9eded;color:var(--danger)}.btn.block{width:100%}.btn.small{min-height:36px;padding:7px 12px;font-size:12px}.btn.square{min-width:40px;padding:5px}.btn-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.page-tools{display:flex;gap:10px;justify-content:space-between;align-items:center;margin:20px 0}.search{height:44px;border:1px solid var(--border);border-radius:14px;padding:0 14px;background:#fff;flex:1;min-width:80px}.select{border:1px solid var(--border);border-radius:14px;padding:10px 10px;background:#fff;color:var(--ink);min-height:43px}.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.recipe-card{overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:19px;cursor:pointer;text-align:left;padding:0;color:var(--ink);box-shadow:var(--shadow)}.recipe-thumb{height:124px;display:grid;place-items:center;background:linear-gradient(140deg,#e6e0d7,#f6f2ee);overflow:hidden;font-size:44px}.recipe-thumb img{width:100%;height:100%;object-fit:cover}.recipe-info{padding:13px}.recipe-info strong{display:block;font-size:14px;line-height:1.4;min-height:38px}.recipe-info span{color:var(--muted);font-size:11px}.week-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border:1px solid var(--border);padding:11px;border-radius:17px;margin:17px 0}.week-title{text-align:center}.week-title strong{display:block;font-size:13px;color:var(--forest)}.week-title small{font-size:11px;color:var(--muted)}.nav-arrow{border:0;background:var(--surface2);border-radius:11px;width:38px;height:38px;color:var(--forest);font-size:19px}.day-card{border-radius:19px;border:1px solid var(--border);background:#fff;overflow:hidden;margin-bottom:12px}.day-card.today{border-color:#aea397;box-shadow:0 0 0 2px #eee8e2}.day-head{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:12px 15px;background:#faf9f7}.day-number{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:var(--surface2);font:23px Georgia,serif;color:var(--forest)}.day-head strong{font-size:14px}.day-head small{display:block;color:var(--muted);font-size:11px}.meal-row{display:flex;align-items:center;gap:8px;padding:11px 14px;border-bottom:1px solid #f2efeb}.meal-row:last-child{border-bottom:0}.meal-name{width:72px;flex-shrink:0;font-size:11px;color:var(--muted)}.meal-title{flex:1;text-align:left;background:transparent;border:0;color:var(--forest);font-size:13px;font-weight:700;padding:3px;white-space:normal;overflow-wrap:anywhere}.meal-title.placeholder{font-weight:400;color:#a39a90}.mini-action{color:#7f7369;background:var(--surface2);border:0;width:28px;height:28px;border-radius:9px}.shopping-item{display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid var(--border)}.shopping-item:last-child{border-bottom:0}.round-check{width:23px;height:23px;flex-shrink:0;border:1.5px solid #aaa096;border-radius:8px;background:white;color:white;display:grid;place-items:center;font-size:14px}.round-check.checked{background:var(--forest);border-color:var(--forest)}.shopping-label{flex:1;font-size:14px;overflow-wrap:anywhere}.shopping-label.done{text-decoration:line-through;color:#a69d94}.item-meta{font-size:11px;color:var(--muted)}.item-delete{background:transparent;border:0;color:#a79d93;font-size:18px;padding:8px}.progress{background:#e9e3db;border-radius:6px;height:6px;overflow:hidden;margin:15px 0}.progress>div{height:100%;background:#38332f;border-radius:6px}.task{display:flex;align-items:center;gap:12px;padding:14px;border-bottom:1px solid var(--border)}.task:last-child{border-bottom:0}.task .round-check{width:26px;height:26px}.task-body{flex:1;min-width:0}.task-body strong{display:block;font-size:13px;line-height:1.4}.task-body small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.task-body .late{color:#b0694d}.tag{display:inline-block;border-radius:9px;padding:5px 8px;font-size:10px;font-weight:720;color:var(--forest);background:var(--surface2)}.category-scroller{display:flex;gap:8px;overflow-x:auto;margin:18px 0 12px;padding-bottom:3px}.chip{border:1px solid var(--border);background:#fff;color:var(--muted);padding:9px 13px;border-radius:22px;white-space:nowrap;font-size:12px}.chip.selected{background:var(--forest);color:white;border-color:var(--forest)}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;justify-content:space-around;background:rgba(255,255,255,.98);border-top:1px solid var(--border);padding:10px max(10px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom));box-shadow:0 -8px 25px rgba(35,30,25,.045)}.bottom-nav button{border:0;background:none;min-width:55px;color:#8f8880;display:flex;align-items:center;flex-direction:column;gap:4px;font-size:10px;padding:2px 6px}.bottom-nav button.active{color:var(--forest);font-weight:750}.nav-icon{font-size:23px;line-height:1}.modal{border:none;border-radius:23px;padding:0;width:min(540px,calc(100vw - 20px));max-height:min(90dvh,900px);overflow:hidden;box-shadow:0 20px 80px #2c251e44;color:var(--ink)}.modal::backdrop{background:rgba(29,27,24,.53)}.modal-head{padding:21px 22px 15px;display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border-bottom:1px solid var(--border)}.modal-head h2{margin-bottom:0}.modal-body{overflow:auto;max-height:calc(90dvh - 125px);padding:20px 22px 26px}.close{border:0;background:var(--surface2);border-radius:50%;width:32px;height:32px;color:var(--forest);font-size:22px;flex-shrink:0}.field{display:flex;flex-direction:column;gap:7px;margin:0 0 14px}.field label{font-size:12px;color:var(--forest);font-weight:720}.field input,.field select,.field textarea{background:#fff;border:1px solid #ded7cf;border-radius:12px;width:100%;padding:12px 13px;font-size:14px}.field textarea{min-height:98px;resize:vertical;line-height:1.5}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.help{font-size:12px;line-height:1.55;color:var(--muted);margin:5px 0 13px}.recipe-hero{height:210px;background:#e7e0d7;display:grid;place-items:center;font-size:75px;border-radius:16px;overflow:hidden;margin-bottom:17px}.recipe-hero img{width:100%;height:100%;object-fit:cover}.ingredient{padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}.instructions{white-space:pre-wrap;line-height:1.65;font-size:14px}.inline-notice{background:#f0ebe3;color:#4c433b;border-radius:13px;padding:12px 14px;font-size:12px;line-height:1.6;margin:12px 0}.inline-notice.warn{background:#fcf3e6;color:#986b39}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;word-break:break-all;border-radius:11px;background:var(--surface2);padding:12px}.settings-group{padding:12px 0 18px;border-bottom:1px solid var(--border)}.settings-group:last-child{border-bottom:0}.settings-group h3{font-size:15px;color:var(--forest);margin:0 0 9px}.settings-group p{font-size:12px;color:var(--muted);line-height:1.65}.notice-bubble{display:inline-flex;align-items:center;gap:6px;background:var(--surface2);border-radius:13px;padding:9px 12px;color:var(--forest);font-size:12px}.quick-add{display:flex;gap:8px;margin:16px 0}.quick-add input{flex:1;min-width:0;min-height:44px;padding:0 13px;border:1px solid var(--border);border-radius:13px}.loading{opacity:.6;pointer-events:none}#toast{position:fixed;bottom:91px;left:50%;transform:translate(-50%,20px);min-width:210px;max-width:calc(100vw - 28px);background:var(--forest);color:#fff;border-radius:12px;padding:12px 17px;box-shadow:var(--shadow);z-index:99;font-size:13px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.topbar .icon-button:hover,.btn:hover,.small-link:hover{filter:brightness(.97)}.subtle-note{font-size:11px;color:var(--muted);line-height:1.6}.week-stat{background:#fff;border:1px solid var(--border);border-radius:17px;padding:16px;margin:12px 0}.pillset{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:13px 0}.auth-panel{background:#f4f0eb;border-radius:15px;padding:14px}.error{color:var(--danger);font-size:12px}.photo-preview{width:100%;max-height:180px;object-fit:cover;border-radius:12px}.hide{display:none!important}@media(min-width:640px){.app-shell{padding-bottom:105px}.page{padding-left:36px;padding-right:36px}.topbar{padding-left:36px;padding-right:36px}.bottom-nav{max-width:860px;margin:auto;border-left:1px solid var(--border);border-right:1px solid var(--border)}.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-thumb{height:156px}.hero{padding:32px}.grid-two{grid-template-columns:repeat(4,1fr)}.day-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.day-card{margin-bottom:0}}@media(max-width:355px){.page{padding-left:14px;padding-right:14px}.topbar{padding:0 14px}.page h1{font-size:31px}.metric{padding:13px}.meal-name{width:60px}}
/* Rodinný kalendář – verze 3, paleta bílá / HAVSTORP greige / černá. */
.cal-action-bar{display:flex;gap:9px;margin:17px 0;flex-wrap:wrap}
.cal-month-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:17px 12px 13px;box-shadow:var(--shadow)}
.cal-month-head{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0 5px 16px;text-align:center}
.cal-month-head h2{font:400 25px Georgia,serif;letter-spacing:-.035em;text-transform:capitalize;margin:0 0 4px;color:var(--forest)}
.cal-month-head small{display:block;font-size:11px;color:var(--muted)}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-days-head{padding:5px 0 9px;text-align:center;border-bottom:1px solid var(--border)}
.calendar-days-head span{font-size:11px;color:var(--muted);font-weight:700}
.calendar-month-days{margin-top:6px;gap:3px 0}
.cal-day{border:1px solid transparent;background:none;min-width:0;min-height:60px;border-radius:13px;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;padding:7px 2px 4px;gap:4px;color:var(--ink)}
.cal-day>span:first-child{font-size:14px;line-height:21px}
.cal-day.other-month{opacity:.35}
.cal-day.current>span:first-child{font-weight:800;text-decoration:underline;text-underline-offset:4px}
.cal-day.selected{background:var(--forest);color:white}
.cal-day.selected .dot{background:#fff}
.cal-dots{display:flex;gap:2px;justify-content:center;height:5px}
.dot{width:5px;height:5px;border-radius:50%;background:#b8a68f}
.dot-birthday{background:#a6797c}.dot-nameday{background:#74685e}
.calendar-entry{width:100%;background:none;border:0;display:flex;gap:10px;align-items:center;text-align:left;padding:12px 0;min-width:0;color:var(--ink)}
.event-list .calendar-entry+.calendar-entry{border-top:1px solid var(--border)}
.event-pictogram{background:var(--surface2);height:38px;width:38px;display:grid;place-items:center;border-radius:12px;font-size:18px;flex:0 0 38px}
.event-main{flex:1;min-width:0}.event-main strong{display:block;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.event-main small{display:block;font-size:11px;color:var(--muted);padding-top:3px;line-height:1.5}
.entry-arrow{color:#8f8378;font-size:19px;padding:0 5px}
.upcoming-date{font-size:11px;font-weight:750;color:#87786a;text-transform:capitalize;padding:10px 0 0}
.upcoming-list .calendar-entry{border-bottom:1px solid var(--border)}
.upcoming-list .calendar-entry:last-child{border:0}
.weekday-picks{display:flex;gap:5px;justify-content:space-between;flex-wrap:wrap}
.weekday-pick{position:relative;display:inline-flex;flex:1;min-width:30px;cursor:pointer}
.weekday-pick input{position:absolute;opacity:0;width:0;height:0}
.weekday-pick span{width:100%;text-align:center;padding:9px 4px;font-size:12px;border:1px solid var(--border);border-radius:11px;background:#fff}
.weekday-pick input:checked+span{background:var(--forest);border-color:var(--forest);color:#fff}
.weekday-pick input:focus-visible+span{outline:2px solid #aea397;outline-offset:2px}
.bottom-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;justify-content:stretch}
.bottom-nav button{min-width:0;padding:2px 1px;font-size:10px}
@media(max-width:370px){.bottom-nav button{font-size:9px}.nav-icon{font-size:20px}.cal-day{min-height:49px}.cal-month-card{padding:13px 8px 9px}.cal-month-head h2{font-size:23px}}

/* v3.2 – čistá úvodní obrazovka: dnešní program namísto dekorativního banneru */
.today-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--border);border-radius:17px;padding:12px 15px;margin:4px 0 16px}
.today-strip>div{display:flex;align-items:center;gap:9px}
.today-strip strong{font-size:13px;font-weight:650;text-transform:capitalize}
.today-strip .pill{margin:0;max-width:100%;font-size:10px}
.today-dot{width:8px;height:8px;border-radius:50%;background:#9a8b79;display:inline-block}
.home-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.home-summary button{min-width:0;display:flex;flex-direction:column;text-align:left;gap:6px;padding:15px 12px;background:#eeeae5;border:1px solid #e2dbd3;border-radius:17px;color:var(--ink)}
.home-summary button strong{font:400 28px Georgia,serif;color:var(--forest);line-height:1}
.home-summary button span{font-size:11px;line-height:1.35;color:#655e56}
.home-empty-inline{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px dashed var(--border);border-radius:18px;background:#fff;padding:12px 16px}
.home-empty-inline span{font-size:13px;color:var(--muted)}
.home-meal-list{padding:4px 15px}
.home-meal{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;min-height:48px}
.home-meal+.home-meal{border-top:1px solid var(--border)}
.home-meal>span{color:var(--muted);font-size:12px;flex:0 0 77px}
.home-meal-edit{font-size:13px;font-weight:650;border:0;background:transparent;color:var(--ink);text-align:right;padding:7px 0;flex:1}
.home-meal-edit.placeholder{font-weight:500;color:#8c8074}
.home-shopping strong{font-size:14px}.home-shopping p{font-size:12px;color:var(--muted);line-height:1.6;margin:7px 0 12px}
.shopping-body{flex:1;min-width:0}
.shopping-edit{border:0;background:#f2efeb;color:var(--ink);border-radius:10px;width:36px;height:36px;display:grid;place-items:center;font-size:17px;flex:0 0 36px}
.shopping-edit:focus-visible,.home-summary button:focus-visible,.home-meal-edit:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.shopping-help{font-size:12px;line-height:1.5;color:var(--muted);margin:13px 3px 0}
@media(max-width:385px){.today-strip .pill{font-size:9px}.home-summary button{padding:12px 9px}.home-summary button span{font-size:10px}.home-meal>span{flex-basis:68px}}

/* Srozumitelné a trvalé potvrzení / chyba přímo v otevřeném nastavení. */
.modal-feedback{padding:13px 15px;border:1px solid #d1c5b7;background:#f5f0e9;color:#282420;border-radius:12px;font-size:13px;line-height:1.5;margin:0 0 16px;overflow-wrap:anywhere}
.modal-feedback.error{background:#fff0ed;border-color:#d6a7a0;color:#7c2b25}
