:root{--ink:#24392d;--muted:#747b70;--paper:#f7f7f1;--line:#e0e4d9;--green:#344d3b;--lime:#d7e7a5;--rust:#b96d4b;--white:#fff;--shadow:0 5px 22px #253b2e06;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #af7a40;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}button{border:1px solid var(--line);background:white;border-radius:9px;padding:10px 15px;color:var(--ink);font-weight:600;font-size:13px}button:hover{background:#eff3e9}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#46624d}button.soft{background:#eaf0dc;border:0}button.danger{color:#a44338}button.small{padding:7px 10px;font-size:12px}button.icon{padding:7px;line-height:0}svg{vertical-align:middle}a{color:inherit;text-decoration:none}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:#eef0e6;border-right:1px solid var(--line);padding:32px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:0 12px 35px}.brand img{width:37px;height:37px}.brand strong{font-family:Georgia,serif;font-size:23px;letter-spacing:-1px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:700;color:var(--muted)}.navlabel{padding:0 14px;margin:10px 0 12px}.nav{display:flex;flex-direction:column;gap:5px}.nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;font-size:13px;color:#63705f;border-radius:8px}.nav a:hover{background:#e3e9d8}.nav a.active{background:var(--green);color:white;font-weight:600}.sidebar-foot{margin-top:auto;padding:24px 12px 0;font-size:11px;line-height:1.7;color:var(--muted)}.dot{display:inline-block;width:6px;height:6px;background:#749458;border-radius:50%;margin-right:5px}.main{min-width:0;padding:0 40px 45px;max-width:1600px;width:100%;margin:auto}.topbar{height:80px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.topbar .location{font-size:12px;color:var(--muted)}.topbar .date{display:flex;align-items:center;gap:12px;font-size:12px}.topbar input{width:145px;border:0;background:transparent;padding:7px}.avatar{height:32px;width:32px;border-radius:50%;background:#e3e9d8;display:grid;place-items:center;font-family:Georgia,serif}.page-head{display:flex;align-items:center;justify-content:space-between;margin:32px 0 25px;gap:20px}.page-head h1{font-family:Georgia,serif;font-weight:400;font-size:37px;letter-spacing:-1.2px;margin:5px 0 8px}.page-head p{margin:0;font-size:13px;color:var(--muted);line-height:1.6}.actions,.inline{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:1.35fr 1fr}.grid.equal{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}.grid.four{grid-template-columns:repeat(4,1fr)}.card{background:white;border:1px solid var(--line);border-radius:15px;padding:23px;box-shadow:var(--shadow);min-width:0}.card h2{font-family:Georgia,serif;font-size:22px;font-weight:400;margin:0}.card h3{font-size:14px;margin:0 0 8px}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.card-head a{font-size:12px;color:#69804b}.muted{color:var(--muted);font-size:12px;line-height:1.6}.caption{font-size:11px;color:var(--muted)}.hero{background:#e9eddd;border-color:#e0e6d0;position:relative;overflow:hidden}.hero h2{font-size:27px;margin-bottom:12px}.hero p{font-size:13px;line-height:1.7;max-width:390px}.hero .leaf{position:absolute;right:-25px;bottom:-48px;width:180px;height:180px;opacity:.16;transform:rotate(-20deg)}.pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:20px;background:#edf2e3;color:#5c7048;font-size:10px;font-weight:600;gap:4px}.pill.warm{background:#f8eee3;color:#a66d43}.nutrition{display:flex;align-items:center;gap:30px}.ring{height:156px;width:156px;flex-shrink:0;position:relative}.ring svg{width:100%;height:100%;transform:rotate(-90deg)}.ring .center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.ring strong{font:34px Georgia,serif}.ring span{font-size:10px;color:var(--muted);margin-top:5px}.macros{flex:1;display:grid;gap:17px}.macro-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:7px}.bar{height:6px;border-radius:6px;background:#eff1e9;overflow:hidden}.bar i{height:100%;display:block;border-radius:6px;background:#728961}.bar i.rust{background:#c28d73}.bar i.gold{background:#d1b26b}.stat-value{font:32px Georgia,serif;margin:10px 0}.stat-value small{font:12px Segoe UI,sans-serif;color:var(--muted)}.metric-strip{display:flex;border-top:1px solid var(--line);margin-top:24px;padding-top:17px;justify-content:space-around;font-size:11px;text-align:center;color:var(--muted)}.metric-strip strong{display:block;color:var(--ink);font-size:14px;margin-bottom:5px}.row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #edf0e7;gap:13px}.row:last-child{border-bottom:0}.row-title{font-size:13px;font-weight:600;line-height:1.5}.row-sub{font-size:11px;color:var(--muted);margin-top:4px}.meal-icon{width:42px;height:42px;border-radius:12px;background:#f0e8dc;display:grid;place-items:center;flex-shrink:0;color:#9a7951}.row-main{flex:1;min-width:0}.tick{border-radius:50%;width:26px;height:26px;padding:0;display:grid;place-items:center;flex-shrink:0}.tick.done{background:var(--green);color:white;border-color:var(--green)}.empty{padding:27px 12px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.empty strong{display:block;color:var(--ink);font:20px Georgia,serif;margin-bottom:8px}.empty button{margin-top:12px}.water{display:flex;align-items:center;justify-content:space-between;gap:15px}.water-drops{display:flex;gap:6px;margin-top:14px;flex-wrap:wrap}.water-drops i{width:18px;height:24px;border:1px solid #bfd5d0;border-radius:5px;background:#f3f8f6}.water-drops i.filled{background:#94b7ac}.section-space{margin-top:20px}.notice{padding:13px 16px;background:#faf1e6;border:1px solid #ecddc8;border-radius:9px;font-size:12px;line-height:1.6;color:#88633b;margin-bottom:20px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}input,select,textarea{color:var(--ink);border:1px solid #d9dfd1;background:white;border-radius:8px;padding:10px 12px;font-size:13px;max-width:100%}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}label.check{flex-direction:row;align-items:center;font-weight:400}.fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.fields .full{grid-column:1/-1}textarea{width:100%;min-height:90px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #c4d6a2;outline-offset:1px}.planner{display:grid;grid-template-columns:repeat(7,minmax(140px,1fr));gap:10px;overflow-x:auto;padding-bottom:10px}.day-col{background:#eff1e8;padding:12px;border-radius:12px;min-width:140px}.day-col.today{background:#e5ebd7}.day-label{font-size:11px;display:flex;justify-content:space-between;margin:2px 0 16px}.day-label strong{font-size:17px}.plan-meal{background:#fff;padding:12px;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;min-height:135px;display:flex;flex-direction:column;gap:10px}.plan-meal .meal-type{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.plan-meal strong{font-size:12px;line-height:1.55;font-weight:600}.plan-meal .plan-buttons{margin-top:auto;display:flex;gap:4px}.plan-buttons button{padding:5px 7px;font-size:10px}.plan-empty{width:100%;background:transparent;border-style:dashed;margin-bottom:10px;font-size:11px}.recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.recipe-card{padding:0;overflow:hidden}.recipe-art{height:100px;background:#e7edda;position:relative;padding:20px;display:flex;align-items:center;justify-content:space-between}.recipe-art.tone1{background:#f1e8d9}.recipe-art.tone2{background:#e3ece7}.recipe-art .art-icon{opacity:.35}.recipe-body{padding:18px}.recipe-body h3{font:20px Georgia,serif;line-height:1.25;min-height:48px}.recipe-body .actions{margin-top:15px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);padding:12px 10px;border-bottom:1px solid var(--line)}td{padding:14px 10px;border-bottom:1px solid #edf0e7}td.num{text-align:right;font-variant-numeric:tabular-nums}.week-checks{display:flex;gap:9px}.week-checks button{height:34px;width:34px;border-radius:50%;padding:0}.week-checks button.checked{background:#536e45;color:white}.week-checks small{font-size:9px;display:block;text-align:center;margin-bottom:6px;color:var(--muted)}.goal-card .big{font:30px Georgia,serif;margin:18px 0 12px}.goal-card .big small{font:12px Segoe UI;color:var(--muted)}.chart{width:100%;height:190px}.legend{display:flex;gap:15px;font-size:11px;color:var(--muted)}.login{max-width:430px;margin:15vh auto;padding:35px}.login h1{font:35px Georgia,serif}.login input{width:100%;margin:15px 0}.loading{padding:15vh 20px;text-align:center;font:24px Georgia,serif}dialog{border:1px solid var(--line);border-radius:17px;max-width:min(650px,94vw);width:650px;padding:28px;color:var(--ink);box-shadow:0 30px 100px #172b2940}dialog::backdrop{background:#24372a66;backdrop-filter:blur(3px)}dialog h2{font:27px Georgia,serif;margin:0 0 20px}.modal-head{display:flex;align-items:center;justify-content:space-between}.modal-head h2{margin:0 0 20px}.modal-head button{margin-top:-18px}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}.error{color:#a33e33;font-size:12px;line-height:1.6}.save-error{background:#a33e33;color:white;padding:12px;text-align:center;font-size:12px;position:sticky;top:0;z-index:9}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#293f31;color:white;border-radius:9px;padding:13px 20px;font-size:13px;box-shadow:0 5px 25px #0002;z-index:99;display:none}#toast.show{display:block}.ingredients{font-size:13px;line-height:2}.instructions{white-space:pre-wrap;line-height:1.8;font-size:13px}.photo{max-width:100%;max-height:220px;object-fit:contain;border-radius:10px}.progress-list{display:grid;gap:15px}.print-title{display:none}.filter-search{width:270px}.phone-label{display:none}
@media(min-width:1500px){.main{padding-left:55px;padding-right:55px}.nutrition{gap:45px}.ring{width:175px;height:175px}}@media(max-width:1150px){.main{padding:0 25px 30px}.shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:28px 12px}.brand strong{font-size:20px}.nutrition{gap:15px}.ring{width:125px;height:125px}.grid.four{grid-template-columns:repeat(2,1fr)}.recipe-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.shell{display:block}.sidebar{position:relative;height:auto;padding:15px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 0 12px}.navlabel,.sidebar-foot{display:none}.nav{flex-direction:row;overflow-x:auto;gap:5px}.nav a{white-space:nowrap;padding:9px 11px;font-size:12px}.nav a svg{display:none}.main{padding:0 18px 25px}.topbar{height:58px}.page-head{margin:24px 0 20px;align-items:flex-start}.page-head h1{font-size:31px}.grid.two,.grid.equal{grid-template-columns:1fr}.grid.three{grid-template-columns:1fr}.page-head .actions{justify-content:flex-end}.page-head button{font-size:11px;padding:9px}.nutrition{gap:35px}.card{padding:20px}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fields{gap:12px}.week-checks{gap:5px}.week-checks button{width:28px;height:28px}}@media(max-width:470px){.recipe-grid{grid-template-columns:1fr}.fields{grid-template-columns:1fr}.page-head{flex-direction:column;gap:13px}.topbar .location{display:none}.topbar{justify-content:flex-end}.grid.four{gap:10px}.grid.four .card{padding:15px}.nutrition{gap:18px}.week-checks{gap:3px}.week-checks button{width:25px;height:25px}.row{gap:8px}}@media print{.sidebar,.topbar,.actions,.toolbar,button,.notice,#toast{display:none!important}.shell{display:block}.main{padding:0}.card{break-inside:avoid;box-shadow:none}.page-head{margin:0 0 20px}.planner{display:block}.day-col{display:inline-block;width:30%;vertical-align:top;margin:1%}.grid.two,.grid.equal{grid-template-columns:1fr 1fr}.print-title{display:block}}
:root .food-suggestions{margin-top:-5px}
.food-suggestions [role=listbox]{border:1px solid var(--line);border-radius:9px;max-height:260px;overflow:auto;background:white}
.food-suggestions [role=option]{display:block;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;padding:11px 13px}
.food-suggestions [role=option] strong,.food-suggestions [role=option] span{display:block}
.food-suggestions [role=option] span{font-size:11px;color:var(--muted);margin-top:4px}
.food-suggestions [role=option][aria-selected=true]{background:#eaf0dc}
.food-suggestions a{text-decoration:underline}
.compact-planner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 4px;color:var(--muted);font-size:13px}
.portion-editor{background:#f4f6ef;padding:14px;border-radius:10px}
.recipe-search-link{display:inline-block;padding:12px;background:#eaf0dc;border-radius:8px;text-decoration:underline}
#modal{padding:0;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:hidden}
#modal[open]{display:flex;flex-direction:column}
#modal .modal-head{flex:none;gap:16px;padding:18px 24px;border-bottom:1px solid var(--line);background:white;z-index:1}
#modal .modal-head h2{margin:0;min-width:0;overflow-wrap:anywhere}
#modal .modal-head button{margin:0;flex:none;min-width:44px;min-height:44px;display:grid;place-items:center}
#modal #modal-form{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 24px;scroll-padding:16px}
@media(max-width:470px){#modal .modal-head{padding:12px 16px}#modal .modal-head h2{font-size:22px}#modal #modal-form{padding:18px 16px}}

/* Responsive sizing: shrink the content, never conceal overflowing controls. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Give nested layout containers a definite available width. WebKit's intrinsic
   sizing of selects, dates and flex children must not widen the whole page. */
html,body,#app{width:100%;min-width:0}
.shell,.sidebar,.main{min-width:0;max-width:100%}
.topbar,.topbar .date,.brand,.nav,.nav a,.row,.row>*,.toolbar>*,.nutrition>*,.recipe-body,.food-suggestions{min-width:0}
.card,.day-col,.plan-meal,.recipe-body,#modal-form{overflow-wrap:anywhere}
img,video,canvas,svg{max-width:100%}
input[type=date],input[type=datetime-local],input[type=time]{min-width:0;max-width:100%}
input[type=date]::-webkit-date-and-time-value{text-align:left}
select{width:100%;text-overflow:ellipsis}
.table-wrap{width:100%}
.grid>* ,.fields>* ,.actions>* ,.inline>* ,.card-head>* ,.page-head>*{min-width:0}
.fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.two{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three,.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
label,input,select,textarea,.macros,.table-wrap{min-width:0}
button{max-width:100%;overflow-wrap:anywhere}
.goal-card .big{overflow-wrap:anywhere}
.fields input:not([type=checkbox]),.fields select{width:100%}
.row-title,.row-sub,.card h2,.card h3,.instructions,.ingredients,.muted,.caption,.pill,.row-main,.plan-meal strong{overflow-wrap:anywhere}
.table-wrap{max-width:100%;overscroll-behavior-x:contain}
.form-actions,.card-head,.compact-planner,.water,.legend{flex-wrap:wrap}
.row>.actions{flex-shrink:0;max-width:100%}
.week-checks>div{min-width:0}
.week-checks small{overflow-wrap:anywhere}
#toast{max-width:calc(100vw - 32px);overflow-wrap:anywhere}
@media(min-width:801px) and (max-width:1150px){
 .grid.four,.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .nutrition{flex-wrap:wrap}.macros{flex-basis:130px}
}
@media(max-width:800px){
 .main{width:100%;padding:0 max(16px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
 .grid.two,.grid.equal,.grid.three{grid-template-columns:minmax(0,1fr)}
 .grid.four,.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sidebar{padding:12px max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px))}.brand{padding-bottom:10px}
 .nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:4px}
 .nav a{white-space:normal;justify-content:center;text-align:center;min-height:44px;padding:8px 5px;font-size:12px}
 input,select,textarea{font-size:16px}
 button,button.small,button.icon,.page-head button,.plan-buttons button{min-height:44px;font-size:13px}
 button.icon,.tick{min-width:44px;min-height:44px}
 label.check{min-height:44px}input[type=checkbox]{flex-shrink:0;width:20px;height:20px}
 .card{padding:18px}.card-head{align-items:flex-start}
 .page-head .actions{justify-content:flex-start}
 .planner{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
 .day-col{min-width:0}.plan-meal{min-height:0}
 .plan-buttons{flex-wrap:wrap}.plan-buttons button{flex:1}
 .plan-empty{min-height:44px}
 .week-checks{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
 .week-checks button{width:100%;min-height:44px;height:44px;border-radius:10px}
 .week-checks small{font-size:11px}
 .row{flex-wrap:wrap}.row-main{flex:1 1 120px}
 .row>.actions{flex-wrap:wrap}
 .nutrition{flex-wrap:wrap;gap:20px}.macros{flex:1 1 140px}
 .macro-label{gap:8px;flex-wrap:wrap}
 .filter-search{width:100%}
 .topbar{height:auto;min-height:58px;flex-wrap:wrap;padding:8px 0}
 .topbar .date{max-width:100%;flex-wrap:wrap;gap:8px}
 .topbar input[type=date]{width:145px;flex:0 1 145px}
 .toolbar>input,.toolbar>select{flex:1 1 180px}
 .row>.actions{flex:1 1 auto}
 .row>.inline{flex-wrap:wrap;max-width:100%}
 .recipe-art{gap:10px}
 .recipe-art>svg{flex-shrink:0}
 .food-suggestions [role=option]{white-space:normal;overflow-wrap:anywhere}
 .login{width:calc(100% - 32px);margin:32px auto;padding:24px}
 #modal{width:calc(100% - 24px);max-width:650px;max-height:calc(100dvh - 24px)}
 #modal .form-actions{position:sticky;bottom:-18px;background:white;padding-bottom:12px;z-index:1}
}
@media(max-width:470px){
 .fields,.recipe-grid,.planner{grid-template-columns:minmax(0,1fr)}
 .card{padding:16px}.grid{gap:14px}
 .page-head h1{font-size:29px}.page-head .actions{width:100%}
 .page-head .actions>button{flex:1}
 .week-checks{grid-template-columns:repeat(4,minmax(0,1fr))}
 .compact-planner>button{width:100%}
 .stat-value{font-size:28px;overflow-wrap:anywhere}
 .form-actions>button{flex:1}
 .metric-strip{gap:8px;flex-wrap:wrap}
 .nutrition{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch}
 .nutrition .ring{justify-self:center}
 .macros{width:100%}
 .grid.four{grid-template-columns:minmax(0,1fr)}
 .brand strong{overflow-wrap:anywhere}
 .actions,.inline{max-width:100%}
 .form-actions{flex-wrap:wrap}
}
/* Ingredient entry shares the food controls, with a fixed close header. */
.ingredient-dialog{padding:0;width:650px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
.ingredient-dialog[open]{display:flex;flex-direction:column}
.ingredient-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;flex:none;border-bottom:1px solid var(--line)}
.ingredient-head h2{margin:0;min-width:0;font-size:24px}.ingredient-head button{flex:none;min-width:44px;min-height:44px}
.ingredient-form{overflow-y:auto;min-height:0;padding:20px;overscroll-behavior:contain;overflow-wrap:anywhere}
.ingredient-form .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.ingredient-form label{min-width:0}
@media(max-width:470px){.ingredient-form{padding:16px}.ingredient-form .fields{grid-template-columns:minmax(0,1fr)}.ingredient-form input,.ingredient-form select{font-size:16px;width:100%}.ingredient-form input[type=checkbox]{width:16px}}
[hidden]{display:none!important}
/* Daily workflows and phone navigation */
.picker-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.picker-tabs [aria-selected=true]{background:var(--green);color:white}
.ingredient-card{border:1px solid var(--line);border-radius:12px;padding:14px;margin:12px 0;background:white}.ingredient-card p{font-size:13px;color:var(--muted)}.ingredient-card .actions{flex-wrap:wrap}
.nutrition-details{border:1px solid var(--line);border-radius:10px;padding:12px}.nutrition-details summary{cursor:pointer;font-weight:600;font-size:13px}.nutrition-details[open] .fields{margin-top:16px}.food-nutrition-summary{font-size:14px;line-height:1.6;background:#eef3e5;padding:12px;border-radius:10px}
.period-chart{display:flex;gap:3px;align-items:flex-end;height:160px;margin-top:15px}.period-chart>div{flex:1;min-width:0;height:140px;display:flex;align-items:flex-end}.period-chart i{display:block;width:100%;background:var(--green);border-radius:3px 3px 0 0}
.more-links{display:grid;gap:10px}.more-links a{display:block;padding:15px;border:1px solid var(--line);border-radius:10px}.mobile-nav{display:none}
@media(max-width:700px){
 .sidebar{display:none!important}.shell{display:block}.main{padding:0 14px 100px;max-width:100%;min-width:0}.mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);padding:8px 6px calc(8px + env(safe-area-inset-bottom));z-index:30}.mobile-nav>a,.mobile-nav>button{font-size:12px;text-align:center;padding:12px 2px;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:9px}.mobile-nav button{border:0}.card-head{flex-wrap:wrap;gap:10px}.card-head .actions{flex-wrap:wrap}.picker-tabs button{min-height:44px}.page-head h1{font-size:29px}.row{flex-wrap:wrap}.row-main{min-width:0;overflow-wrap:anywhere}#toast{bottom:85px;max-width:calc(100vw - 24px)}
}
@media print{.mobile-nav{display:none!important}}
.diary-day-nav h2{margin:6px 0 12px;overflow-wrap:anywhere}.diary-day-nav .actions{align-items:end;flex-wrap:wrap}.diary-day-nav label{min-width:0;max-width:100%}.diary-day-nav input{max-width:100%;min-width:0}.plan-buttons{flex-wrap:wrap}
@media(max-width:600px){.diary-day-nav .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.diary-day-nav label{grid-column:1/-1;grid-row:1}.diary-day-nav button{min-width:0;white-space:normal}}
