:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#eaf4f7;background:#0e1c27}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 0%,#193848 0%,transparent 42%),#0e1c27;min-height:100vh}header{height:78px;padding:0 clamp(18px,4vw,65px);border-bottom:1px solid #2a4350;display:flex;align-items:center;justify-content:space-between;background:#142733e8;gap:12px}.brand{display:flex;align-items:center;gap:13px}.brand strong{font-size:1.15rem;letter-spacing:-.03em}.brand em{color:#50d1d8;font-style:normal}.brand small{display:block;font-size:.6rem;letter-spacing:.19em;color:#9eb8c3;margin-top:5px}.logo{width:46px;height:46px;border:1px solid #2d6c77;background:#203f4d;border-radius:13px;display:grid;place-items:center;font-weight:850;letter-spacing:-.08em}.logo span{color:#51d3d8}.header-right{display:flex;align-items:center;gap:14px}.sync{color:#83e2c6;font-size:.78rem}main{max-width:1580px;margin:auto;padding:35px clamp(16px,3.6vw,55px)}h1{font-size:clamp(1.7rem,2.7vw,2.6rem);letter-spacing:-.045em;margin:8px 0}h2{font-size:1.08rem;letter-spacing:-.02em;margin:0}.muted,.hint{color:#a8bdc8}.hint{font-size:.73rem;margin-bottom:0}.eyebrow{font-size:.68rem;letter-spacing:.19em;font-weight:750;color:#65cbd3}.top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.top p{margin:5px 0}.top-actions{display:flex;gap:10px;align-items:center}.tag{font-size:.72rem;border:1px solid #365361;color:#a6c5ce;border-radius:999px;padding:7px 10px;white-space:nowrap}.dashboard{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:17px}.card{border:1px solid #34515e;border-radius:20px;background:#1b3442;padding:22px;box-shadow:0 9px 25px #00000014;min-width:0}.hero{grid-column:span 4;background:linear-gradient(145deg,#234a59,#193443);position:relative;min-height:275px;display:flex;flex-direction:column;justify-content:space-between}.hero #clock{font-size:clamp(3.8rem,6vw,6.8rem);font-weight:780;letter-spacing:-.07em;line-height:1.1;margin-top:17px}.hero-symbol{position:absolute;right:23px;top:25px;color:#f6c46d;font-size:2.8rem}.hero-bottom{font-size:.85rem;color:#b4d8dd;border-top:1px solid #456673;padding-top:14px}.calendar,.grocery{grid-column:span 4}.recipes{grid-column:span 5}.payments{grid-column:span 4}.budget{grid-column:span 7}.photos{grid-column:span 8}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.items{min-height:65px;max-height:235px;overflow:auto}.item{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #35505b;font-size:.89rem}.item .content{flex:1;min-width:0;overflow-wrap:anywhere}.item small{display:block;color:#9db6c2;margin-top:4px}.item.done .content{text-decoration:line-through;opacity:.55}.empty{color:#9eb8c3;font-size:.88rem;padding:13px 0}.inline{display:flex;gap:8px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.form-grid button{grid-column:1/-1}.edit{margin-top:16px}input,select,button{font:inherit;border-radius:10px;min-width:0}input,select{background:#112a37;border:1px solid #41606c;color:#f1f8fa;padding:11px;width:100%;font-size:.84rem}input::placeholder{color:#8da8b5}input[type=checkbox]{width:17px;accent-color:#43cbd1}input[type=file]{font-size:.72rem}button{background:#2eb4c4;color:#06212a;border:0;font-size:.83rem;font-weight:750;padding:11px 15px;cursor:pointer}button:hover{filter:brightness(1.13)}button.subtle,button.icon{background:#2c4b59;color:#e3f1f5}.icon{padding:6px 10px}.meal-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.meal{background:#254554;border:1px solid #3a6170;border-radius:13px;padding:15px}.meal .num{color:#73d8dd;font-size:.72rem;letter-spacing:.1em}.meal h3{font-size:1.02rem;margin:8px 0}.meal p{font-size:.77rem;color:#b7ccd5;min-height:38px}.meal button{width:100%;font-size:.74rem}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:14px}.stat-grid div{background:#254553;border-radius:12px;padding:12px}.stat-grid small{display:block;color:#a9c1ca;font-size:.69rem}.stat-grid b{display:block;font-size:1.4rem;margin-top:7px}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.photo{position:relative;aspect-ratio:4/3;background:#254553;border-radius:12px;overflow:hidden}.photo img{width:100%;height:100%;object-fit:cover}.photo button{position:absolute;right:5px;top:5px}.login{max-width:440px;margin:7vh auto;padding:30px}.login form{display:grid;gap:14px}.login label{font-size:.8rem;color:#bdd1d8}.login input{margin-top:6px}.error{color:#ffb6b6}footer{padding:30px 0;color:#8ea9b6;font-size:.75rem}#message{display:block;color:#9fe5c9;margin-top:8px}.hidden{display:none!important}
@media(max-width:1050px){.hero,.calendar,.grocery,.recipes,.payments,.budget,.photos{grid-column:span 6}.photos{grid-column:span 12}}@media(max-width:650px){header{padding:0 15px;height:70px}.brand strong{font-size:.95rem}.logo{width:38px;height:38px}.sync{font-size:.65rem}.top{align-items:flex-start;flex-direction:column}.dashboard{gap:13px}.hero,.calendar,.grocery,.recipes,.payments,.budget,.photos{grid-column:span 12}.card{padding:18px}.hero{min-height:240px}.meal-grid{grid-template-columns:1fr 1fr}.stat-grid{grid-template-columns:1fr 1fr}.stat-grid div:last-child{grid-column:span 2}.header-right{gap:7px}}
body.tv main{max-width:1920px;padding:26px 35px}body.tv .edit,body.tv .private,body.tv #logout,body.tv #tvToggle,body.tv .item button,body.tv .photo button,body.tv .meal button{display:none!important}body.tv .hero{grid-column:span 4}body.tv .calendar,body.tv .grocery{grid-column:span 4}body.tv .recipes{grid-column:span 5}body.tv .payments{grid-column:span 3}body.tv .photos{grid-column:span 4}body.tv .card{min-height:220px}body.tv .hero #clock{font-size:6rem}body.tv .item{font-size:1.08rem}body.tv .meal-grid{grid-template-columns:1fr 1fr}body.tv .photo-grid{grid-template-columns:1fr 1fr}body.tv .photo:nth-child(n+3){display:none}body.tv .top-actions{display:none}@media(max-width:900px){body.tv .hero,body.tv .calendar,body.tv .grocery,body.tv .recipes,body.tv .payments,body.tv .photos{grid-column:span 6}}

/* v0.3 — living-room optimisations */
.reminders{grid-column:span 4}.weather-line{font-size:1.15rem;color:#e4f5f6;font-weight:650;margin-top:10px}.weather-line small{display:block;font-size:.72rem;color:#b3cbd3;font-weight:400;margin-top:4px}.photo-stage{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:#142d3b;margin-bottom:12px}.photo-stage img{width:100%;height:100%;object-fit:cover;transition:opacity .45s ease}.photo-overlay{position:absolute;bottom:0;left:0;right:0;padding:14px 18px;display:flex;justify-content:space-between;background:linear-gradient(transparent,#07151cbd);font-size:.7rem;letter-spacing:.12em}.reminders .item{font-size:.88rem}body.tv .reminders{grid-column:span 4}body.tv .photos{grid-column:span 8}body.tv .photo-stage{aspect-ratio:16/7;min-height:240px}body.tv .photo-grid{display:none}body.tv .hero{min-height:285px}body.tv .card{padding:22px}body.tv .dashboard{gap:16px}body.tv .top{margin-bottom:17px}body.tv .items{max-height:260px}body.tv .reminders .item{font-size:1.03rem}body.tv .photos .hint{display:none}body.tv .photo-stage{margin:0}body.tv .photo-stage img{object-position:center}body.tv .hero-bottom{font-size:.76rem}body.tv .weather-line{font-size:1.15rem}body.tv .top h1{font-size:2rem}body.tv footer{padding:12px 0}body.tv .photo-stage.hidden{display:none!important}
@media(max-width:1050px){.reminders{grid-column:span 6}}@media(max-width:650px){.reminders{grid-column:span 12}.photo-stage{aspect-ratio:16/10}}@media(max-width:900px){body.tv .reminders,body.tv .photos{grid-column:span 6}}

/* v0.3.1 — editorial dinner cards and true 16:9 TV composition */
.meal-grid{gap:14px}.meal{padding:0;overflow:hidden;background:#203c4b;border-color:#3b6170;display:flex;flex-direction:column;min-width:0}.meal-visual{height:clamp(120px,14vw,205px);position:relative;overflow:hidden;background:linear-gradient(145deg,#45606b,#1c3d4a)}.meal-visual img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.meal:hover .meal-visual img{transform:scale(1.04)}.meal-index{position:absolute;left:13px;top:13px;border:1px solid #ffffff60;background:#10242fc9;backdrop-filter:blur(7px);padding:6px 10px;border-radius:30px;font-size:.65rem;font-weight:800;letter-spacing:.12em;color:white}.meal-details{padding:14px 16px;display:flex;flex-direction:column;flex:1}.meal h3{font-size:clamp(.96rem,1.3vw,1.28rem);line-height:1.15;margin:0 0 6px}.meal p{margin:0 0 12px;min-height:0;line-height:1.45;font-size:.79rem}.meal button{margin-top:auto}.photo-unavailable:after{content:'DINNER INSPIRATION';position:absolute;left:15px;bottom:15px;color:#d2ebef;font-weight:750;letter-spacing:.12em;font-size:.8rem}
@media(max-width:650px){.meal-grid{grid-template-columns:1fr 1fr;gap:9px}.meal-visual{height:120px}.meal-details{padding:12px}.meal h3{font-size:.91rem}.meal p{font-size:.7rem}.meal button{font-size:.68rem;padding:8px 5px}}
@media(min-width:901px){
 body.tv{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
 body.tv header{flex:0 0 52px;height:52px;padding:0 2vw}
 body.tv .logo{width:34px;height:34px;border-radius:9px;font-size:.8rem}
 body.tv .brand strong{font-size:.96rem}body.tv .brand small{font-size:.49rem;margin-top:2px}
 body.tv main{flex:1;min-height:0;max-width:none;width:100%;padding:12px 2vw 14px;display:flex;flex-direction:column}
 body.tv #app{height:100%;min-height:0;display:flex;flex-direction:column}
 body.tv .top{flex:0 0 auto;margin:0 0 10px}body.tv .top .eyebrow{font-size:.53rem}body.tv .top h1{font-size:clamp(1.2rem,2.1vw,2rem);margin:2px 0}body.tv .top p{font-size:.7rem;margin:0}
 body.tv .dashboard{flex:1;min-height:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:minmax(0,1.05fr) minmax(0,1.65fr) minmax(0,.95fr);gap:10px}
 body.tv .dashboard>.card{min-height:0;min-width:0;overflow:hidden;padding:clamp(10px,1.1vw,19px);border-radius:15px}
 body.tv .hero{grid-column:1/span 4;grid-row:1}body.tv .calendar{grid-column:5/span 4;grid-row:1}body.tv .grocery{grid-column:9/span 4;grid-row:1}
 body.tv .recipes{grid-column:1/span 7;grid-row:2}body.tv .photos{grid-column:8/span 5;grid-row:2}
 body.tv .payments{grid-column:1/span 6;grid-row:3}body.tv .reminders{grid-column:7/span 6;grid-row:3}
 body.tv .card-head{margin-bottom:8px}body.tv h2{font-size:clamp(.85rem,1.2vw,1.2rem)}body.tv .tag{padding:4px 8px;font-size:.59rem}
 body.tv .hero #clock{font-size:clamp(2.5rem,5.1vw,5.2rem);margin-top:4px}body.tv .hero-symbol{font-size:1.8rem;top:14px;right:14px}
 body.tv .hero .muted{font-size:.65rem;margin:0}body.tv .weather-line{font-size:clamp(.82rem,1.2vw,1.15rem);margin-top:2px}body.tv .weather-line small{font-size:.65rem;margin-top:2px}body.tv .hero-bottom{font-size:.6rem;padding-top:4px}
 body.tv .items{min-height:0;max-height:100%;overflow:hidden}body.tv .item{padding:5px 0;font-size:clamp(.72rem,1.15vw,1.05rem)}body.tv .item small{font-size:.7em;margin-top:2px}
 body.tv .meal-grid{height:calc(100% - 34px);grid-template-columns:1fr 1fr;gap:10px}
 body.tv .meal{height:100%;min-height:0}body.tv .meal-visual{height:58%;min-height:0;flex:0 0 58%}body.tv .meal-details{padding:clamp(7px,.8vw,14px);min-height:0;overflow:hidden}
 body.tv .meal h3{font-size:clamp(.88rem,1.4vw,1.35rem);margin-bottom:3px}body.tv .meal p{font-size:clamp(.65rem,.9vw,.85rem);margin:0}
 body.tv .photo-stage{height:calc(100% - 33px);min-height:0;aspect-ratio:auto;margin:0;border-radius:11px}body.tv .photo-stage img{object-fit:cover}
 body.tv footer{display:none}body.tv .reminders .item{font-size:clamp(.7rem,1vw,1rem)}
}
@media(max-height:650px) and (min-width:901px){body.tv header{flex-basis:43px;height:43px}body.tv main{padding-top:7px;padding-bottom:7px}body.tv .top{margin-bottom:6px}body.tv .dashboard{gap:7px}body.tv .dashboard>.card{padding:9px}body.tv .card-head{margin-bottom:5px}body.tv .meal-grid{height:calc(100% - 27px)}body.tv .photo-stage{height:calc(100% - 27px)}}
