:root { --bg:#f6f7f9; --card:#fff; --text:#1d2330; --muted:#677084; --accent:#3b6cf6; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); }
header { position:sticky; top:0; z-index:5; background:var(--card); box-shadow:0 1px 4px #0001; padding:8px 12px 0; }
h1 { font-size:18px; margin:0 0 6px; }
nav { display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; }
nav button { flex:1 0 auto; padding:10px 12px; border:0; background:none; font:inherit; font-weight:600; color:var(--muted); border-bottom:3px solid transparent; cursor:pointer; white-space:nowrap; }
nav button.active { color:var(--accent); border-bottom-color:var(--accent); }
main { max-width:960px; margin:0 auto; padding:12px; }
.card { background:var(--card); border-radius:14px; box-shadow:0 1px 4px #0001; overflow:hidden; margin-bottom:14px; }
.card h2 { margin:0; padding:12px 14px 10px; font-size:19px; }
.card h2 small, .weekhead small { color:var(--muted); font-weight:500; font-size:14px; }
.rows { padding:10px; display:grid; gap:6px; }
.row { border-radius:10px; padding:8px 10px; }
.row .hd { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.row b { font-size:12px; text-transform:uppercase; letter-spacing:.04em; opacity:.75; }
.row time { flex:none; font-size:12px; font-weight:600; opacity:.75; }
.c-fruit { background:#fbd5e4; } .c-green { background:#c9ecc4; } .c-meat { background:#c8dfec; } /* = photo background */
.c-veg { background:#e4f5d3; } .c-spicy { background:#fff0a8; } .c-soup { background:#c5eee8; } .c-snack { background:#f8cfe0; }
.note { font-size:13px; color:var(--muted); padding:0 14px 12px; margin:0; }
.empty { text-align:center; padding:28px 16px; }
.empty p { font-size:20px; margin:0 0 12px; }
.link { color:var(--accent); cursor:pointer; background:none; border:0; font:inherit; font-weight:600; text-decoration:underline; padding:0; }
#dislike-slot:empty { display:none; }
#dislike-slot { padding:0 14px 14px; }
.dislike { display:grid; gap:8px; border-top:1px solid #0001; padding-top:12px; }
.dislike textarea { width:100%; font:inherit; padding:8px 10px; border:1px solid #d5d9e2; border-radius:10px; resize:vertical; }
.btn { font:inherit; font-weight:600; padding:11px 14px; border:0; border-radius:10px; background:#ffe3e0; color:#9b2c1f; cursor:pointer; }
.btn:disabled { opacity:.6; }
.dislike-status { margin:0; font-weight:600; }
.dislike-status.ok { color:#1d7a35; }
.dislike-note, .dislike-msg { margin:0; color:var(--muted); font-size:14px; }
.weekhead { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0 2px 10px; flex-wrap:wrap; }
.weekhead h2 { margin:0; font-size:19px; }
.weekhead a { color:var(--accent); font-weight:600; }
.week { display:grid; gap:10px; grid-template-columns:1fr; }
.mini h3 { margin:0 0 4px; font-size:15px; }
.mini ul { margin:0; padding:0; list-style:none; font-size:13px; color:var(--muted); }
.mini li { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.daycard { max-width:640px; margin-left:auto; margin-right:auto; }
.txt { min-width:0; }
.row.has-photo .bd, .mini-meat { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.row.has-photo .txt, .mini-meat .txt { flex:1; }
/* Dish photo: native size at most (2x asset ~300x250 shown at ~130px), blends into the blue block. */
.dish { flex:none; width:130px; max-width:40%; height:auto; border-radius:10px; display:block; }
.mini { padding:10px; margin:0; cursor:pointer; }
.mini h3 { margin:0 0 6px; font-size:15px; }
.mini-meat { border-radius:10px; padding:8px 10px; margin-bottom:6px; font-size:14px; }
.mini-meat b { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.04em; opacity:.75; }
.mini-meat img { flex:none; width:96px; height:auto; border-radius:8px; }
.mini ul { margin:0; padding:0 2px; list-style:none; font-size:13px; color:var(--muted); }
.mini li { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (min-width:700px) {
  .week { grid-template-columns:1fr 1fr; }
  .dish { width:140px; }
}
