/* Selected concept 2: a quiet food journal, with the existing responsive meal tool. */
:root{--column:560px;--paper:#fcfbf9;--ink:#374244}
body{background:var(--paper);color:var(--ink);font-family:'Noto Sans JP',sans-serif}
.food-sky,.floating-food,.side-brand>.food-art{display:none!important}
body>main,body>footer{background:var(--paper);box-shadow:none}
body>main{border-left:1px solid #e5e5df;border-right:1px solid #e5e5df;min-height:100svh}
body>header{padding:40px 36px;background:transparent}
.side-brand{position:fixed;left:0;top:0;bottom:0;transform:none;width:calc((100vw - var(--column))/2);padding:0 36px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left}
.side-brand strong{font-family:'Noto Serif JP',serif;font-weight:400;font-size:clamp(24px,2.65vw,40px);letter-spacing:.03em;line-height:1.65;white-space:nowrap;color:#374244}
.side-brand strong:after{content:'';display:block;width:28px;height:2px;background:#94bac8;margin-top:25px}
.side-brand>span{font-family:'Noto Sans JP',sans-serif;display:block;font-size:13px;font-weight:400;line-height:2;letter-spacing:.08em;margin-top:26px;max-width:230px}
.side-nav{position:fixed;top:0;bottom:0;right:0;left:auto;transform:none;display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:36px;width:calc((100vw - var(--column))/2)}
.side-note{background:#e8ece1;padding:30px 24px;margin:0 0 46px;font-size:14px;line-height:2;letter-spacing:.06em}
.side-nav nav{display:flex;flex-direction:column;gap:26px;max-width:none;width:100%}
.side-nav a,.side-nav a:nth-child(n){display:flex;align-items:center;gap:18px;font-family:'Noto Sans JP',sans-serif;font-size:14px;line-height:1.6;padding:0;border:0;background:none;box-shadow:none;transform:none;color:#374244}
.side-nav a:hover{color:#547888}
.nav-icon{display:flex;width:56px;height:56px;flex:none;align-items:center;justify-content:center;border-radius:50%;background:#f3e9e9}
.nav-icon img{width:22px;height:22px;opacity:.72}
.side-nav a:nth-child(2) .nav-icon{background:#e7ebe0}.side-nav a:nth-child(3) .nav-icon{background:#efe5de}.side-nav a:nth-child(4) .nav-icon{background:#f1eee3}
.intro{padding:24px 24px 18px}
.intro .eyebrow{font-family:'Noto Sans JP',sans-serif;font-size:12px;letter-spacing:.13em;font-weight:400;margin-bottom:22px}
.intro .eyebrow:after{width:28px;height:1px;background:#b9c1bc;transform:none;margin-top:12px}
.intro h1{font-family:'Noto Serif JP',serif;font-weight:400;font-size:30px;line-height:1.6;letter-spacing:.02em}
.workspace{padding:0 32px}
.quick-controls{gap:12px;margin-bottom:12px}.quick-controls select,.quick-condition{min-height:42px;font-size:13px;border-color:#d3d7d2}
.meal-tray{max-width:min(100%,calc(100svh - 450px));min-width:240px}
.card{padding:10px 0;grid-template-columns:48px 1fr auto;gap:0 12px;border-color:#dedfd9}
.card .dish-thumb{width:48px;height:48px}.card h3{font-size:14px;font-weight:500;line-height:1.6}.card .kcal{font-size:11px;color:#66716e}.card .recipe{font-size:11px;color:#465653}.card details summary{font-size:10px;color:#697570}
#result{padding-top:10px}.result-heading{margin-top:14px}#rice-result{font-size:10px}
.spin-row{background:#fcfbf9f5;box-shadow:none;border-color:#e5e5df;padding:14px 32px}
.spin-row .primary{background:#37484b;font-family:'Noto Sans JP',sans-serif;font-size:15px;min-height:50px}.dock-condition{min-height:50px}
.notes{color:#6d7772}.notes>p{line-height:1.9}
@media(min-width:901px) and (max-width:1150px){:root{--column:480px}.side-brand,.side-nav{padding-left:24px;padding-right:24px}.side-brand strong{font-size:25px}.side-nav a{font-size:12px;gap:12px}.nav-icon{width:42px;height:42px}.side-note{padding:22px 16px;font-size:12px}}
@media(max-width:900px){:root{--column:480px}.side-brand,.side-nav{display:none}body>header{position:relative;padding:16px 18px;background:var(--paper)}body>main{border:0}.intro{padding:8px 14px 14px}.intro h1{font-size:25px}.intro .eyebrow{font-size:11px;margin-bottom:13px}.workspace{padding:0 18px}.quick-controls{gap:8px;margin-bottom:8px}.quick-controls select,.quick-condition{min-height:38px;font-size:12px}.meal-tray{max-width:min(100%,calc(100svh - 435px));min-width:220px}.card{padding:7px 0;grid-template-columns:42px 1fr auto;column-gap:8px}.card .dish-thumb{width:42px;height:42px}.card h3{font-size:12px}.card .kcal{font-size:10px}.card .recipe{font-size:10px}.spin-row{padding:10px 18px calc(10px + env(safe-area-inset-bottom))}.spin-row .primary,.dock-condition{min-height:46px}.notes{padding:16px 18px}}
@media(max-width:360px){.intro h1{font-size:22px}.workspace{padding:0 12px}.card .recipe{font-size:9px}.card h3{font-size:11px}}
@media(max-height:740px) and (max-width:900px){.intro{padding-top:2px}.intro .eyebrow{margin-bottom:5px;font-size:10px}.intro .eyebrow:after{display:none}.intro h1{font-size:22px}.meal-tray{max-width:min(100%,calc(100svh - 430px));min-width:200px}.card{padding:4px 0}}

.side-brand,.side-nav{translate:none}.side-nav nav{margin:0}.side-brand strong{margin:0}.side-brand>span{margin-top:26px}

/* Keep the result and total above the fixed action bar. */
.meal-tray{max-width:min(100%,calc(100svh - 620px));margin-left:auto;margin-right:auto}
@media(max-width:900px){.intro .eyebrow{margin-bottom:8px}.intro{padding-bottom:10px}.meal-tray{max-width:min(100%,calc(100svh - 570px));min-width:220px}.card{padding:5px 0}}

/* Generated cotton tablecloth behind the product title. */
.side-brand{background:#f3f1e6 url("gingham-tablecloth.png") center center / cover no-repeat}
.side-brand>span{color:#46534b}

/* Pale oak table behind the right navigation column. */
.side-nav{background:#eee5d2 url("oak-table-background.png") center / cover no-repeat}

/* Four real ceramic plates form the navigation. */
.side-nav nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 8px;width:100%;max-width:420px;margin:0 auto}
.side-nav .side-note{margin-bottom:26px}
.side-nav nav a,.side-nav nav a:nth-child(n){position:relative;display:grid;place-items:center;aspect-ratio:1;gap:0;text-align:center;font-size:13px;font-weight:500;color:#303b3a;isolation:isolate}
.side-nav nav .nav-icon{position:absolute;inset:0;width:100%;height:100%;border-radius:0;background:none!important;z-index:-1;transition:transform .25s ease}
.side-nav nav .nav-icon img{width:100%;height:100%;object-fit:contain;opacity:1;filter:drop-shadow(0 4px 3px #493c2520)}
.side-nav nav a>span:last-child{max-width:70%;line-height:1.8}
.side-nav nav a:after{display:none}
.side-nav nav a:hover .nav-icon{transform:translateY(-4px) rotate(-3deg)}
.side-nav nav a:focus-visible{outline:2px solid #455d60;outline-offset:2px;border-radius:40%}
@media(min-width:901px) and (max-width:1150px){.side-nav nav a,.side-nav nav a:nth-child(n){font-size:11px}.side-nav nav{gap:12px 4px}}
@media(prefers-reduced-motion:reduce){.side-nav nav .nav-icon{transition:none}.side-nav nav a:hover .nav-icon{transform:none}}

.side-nav nav a,.side-nav nav a:nth-child(n){grid-template-columns:1fr;justify-content:center}.side-nav nav a>span:last-child{width:74%;max-width:none;justify-self:center}

/* Embroidered white cloth logo, with transparent outer edges. */
.side-brand{align-items:center}.side-brand .cloth-logo{display:block;width:100%;max-width:460px;line-height:0}.side-brand .cloth-logo img{display:block;width:100%;height:auto;filter:drop-shadow(0 3px 3px #4d50331a)}.side-brand .cloth-logo:after{display:none}.side-brand>span{text-align:center;max-width:none;margin-top:18px}

/* Three illustrated eggs replace the heading rule. */
.intro .eyebrow:after{display:none}.intro .eyebrow{margin-bottom:4px}.egg-divider{display:block;width:70px;height:35px;object-fit:contain;margin:0 auto 10px}
@media(max-width:900px){.intro .eyebrow{margin-bottom:2px}.egg-divider{width:58px;height:29px;margin-bottom:5px}}

/* Small eggs above the combination count. */
.egg-divider{width:48px;height:24px;margin:0 auto 5px}.intro .eyebrow{margin-bottom:14px}
@media(max-width:900px){.egg-divider{width:42px;height:21px;margin-bottom:4px}.intro .eyebrow{margin-bottom:10px}}

/* Reuse the loader lid sprite as the small heading ornament. */
.lid-divider{display:block;position:relative;overflow:hidden;width:64px;height:32px;margin:0 auto 5px}.lid-divider img{position:absolute;left:0;top:0;width:64px;height:64px;max-width:none}
.spin-row .primary,.secondary-spin{background:#6b7e62;color:#fff}.spin-row .primary:hover,.secondary-spin:hover{background:#64775d}.primary:after{content:"";display:inline-block;vertical-align:middle;width:22px;height:22px;margin-left:10px;background:currentColor;mask:url("icons/spatula.svg") center/contain no-repeat;-webkit-mask:url("icons/spatula.svg") center/contain no-repeat}
@media(max-width:900px){.lid-divider{width:56px;height:28px;margin-bottom:4px}.lid-divider img{width:56px;height:56px}}

.lid-divider{transform:rotate(-18deg)}

/* The visible labels are piped ketchup in the image; keep text for screen readers. */
.side-nav nav a>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Keep reset intact beside the explanatory copy on narrow screens. */
#advanced .section-title{display:flex;flex-wrap:nowrap;align-items:center;gap:12px}#advanced .section-title .hint{flex:1;min-width:0}#advanced button[type="reset"]{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:8px 4px}

/* Kitchen objects and readable paper labels. */
.side-nav nav{gap:32px 14px}.side-nav nav a,.side-nav nav a:nth-child(n){display:flex;flex-direction:column;aspect-ratio:auto;gap:6px;justify-content:flex-start}
.side-nav nav .nav-icon{position:relative;inset:auto;z-index:auto;width:100%;height:auto;aspect-ratio:1}
.side-nav nav a>span:last-child{position:relative;width:auto;max-width:100%;height:auto;overflow:visible;clip-path:none;white-space:nowrap;background:#faf4e7;padding:6px 10px;box-shadow:0 2px 4px #594b3220;color:#465049;font-size:12px;line-height:1.7}
.side-nav nav a:nth-child(odd)>span:last-child{transform:rotate(-2deg)}.side-nav nav a:nth-child(even)>span:last-child{transform:rotate(2deg)}
@media(min-width:901px) and (max-width:1150px){.side-nav nav{gap:24px 8px}.side-nav nav a>span:last-child{font-size:10px;padding:6px}}

/* Square kitchen navigation buttons, with image and label inside. */
.side-nav nav{gap:18px 14px}
.side-nav nav a,.side-nav nav a:nth-child(n){display:flex;flex-direction:column;justify-content:center;align-items:center;aspect-ratio:1;padding:10px 8px;gap:4px;background:#fcf8efed;border:1px solid #dfd5c4;border-radius:5px;box-shadow:0 3px 8px #64533a12;transition:background .2s,box-shadow .2s}
.side-nav nav .nav-icon{width:75%;height:70%;aspect-ratio:auto;flex:0 1 auto}
.side-nav nav .nav-icon img{object-fit:contain}
.side-nav nav a>span:last-child,.side-nav nav a:nth-child(n)>span:last-child{position:static;width:auto;max-width:100%;height:auto;padding:0;background:none;box-shadow:none;transform:none;font-size:12px;line-height:1.6;white-space:nowrap}
.side-nav nav a:hover{background:#fffdf7;box-shadow:0 5px 12px #64533a20}
.side-nav nav a:focus-visible{border-radius:5px}
@media(min-width:901px) and (max-width:1150px){.side-nav nav{gap:12px 8px}.side-nav nav a,.side-nav nav a:nth-child(n){padding:7px 4px}.side-nav nav a>span:last-child,.side-nav nav a:nth-child(n)>span:last-child{font-size:10px}}

/* A small original cutlery animation at the left edge. */
.edge-cutlery{position:fixed;left:8px;bottom:24px;width:72px;z-index:4;pointer-events:none}.edge-cutlery img{display:block;width:100%;height:auto}.edge-cutlery .cutlery-still{display:none}
@media(max-width:900px){.edge-cutlery{width:36px;left:2px;bottom:88px;z-index:1}}
@media(prefers-reduced-motion:reduce){.edge-cutlery .cutlery-motion{display:none}.edge-cutlery .cutlery-still{display:block}}

.lid-divider{display:flex;align-items:center;justify-content:center;overflow:visible}.lid-divider img{position:static;width:46px;height:auto;max-width:100%}.edge-cutlery{width:80px}@media(max-width:900px){.lid-divider img{width:40px}.edge-cutlery{width:40px}}

/* Readable controls and consistent pill buttons. */
button,.primary,.quick-controls select,.rice-row select,.share-actions a,.share-actions button{border-radius:999px!important}
.quick-controls select,.quick-condition,.dock-condition{min-height:44px;font-size:14px}
.card{grid-template-columns:48px minmax(0,1fr);gap:4px 10px;padding:14px 0}
.card .dish-thumb{grid-column:1;grid-row:1/3;width:48px;height:48px}
.card h3{grid-column:2;font-size:15px}.card .kcal{grid-column:2;font-size:12px;color:#53615b}
.card .dish-preview{grid-column:1/-1;font-size:13px;line-height:1.8;color:#53615b;margin:4px 0}
.card .recipe{grid-column:1/-1;grid-row:auto;justify-self:start;display:inline-flex;align-items:center;min-height:44px;font-size:14px;padding:4px 12px;border:1px solid #cbd3c7;border-radius:999px}
.card .keep-dish{grid-column:1/-1;justify-self:end;margin-top:-48px;min-height:44px;font-size:13px;padding:6px 14px;background:#faf9f6;border:1px solid #bac7b5;color:#44523e}
.card .keep-dish[aria-pressed=true]{background:#e3ebdb;border-color:#6b7e62;font-weight:600}
.card details{grid-column:1/-1;font-size:14px}.card details summary{display:flex;align-items:center;min-height:44px;font-size:13px;color:#53615b}.card details summary:before{content:'＋';margin-right:8px}.card details[open] summary:before{content:'−'}
#result-status{position:static;width:auto;height:auto;margin:8px 0;clip-path:none;overflow:visible;font-size:13px;line-height:1.8;color:#53615b}
.calorie-note{font-size:12px;line-height:1.8;color:#53615b;text-align:center;margin:8px 0}#result:not(.has-result) .calorie-note{display:none}
#rice-result,.notes>p{font-size:13px;line-height:1.8}
.filter-heading{font-size:15px;margin:16px 0}#advanced .hint{font-size:13px;line-height:1.8}#advanced .chips label,#advanced .checks label{font-size:14px;min-height:44px}#advanced input[type=search]{font-size:16px;border-radius:16px}#advanced .detail-grid{margin-bottom:8px}
.more-conditions{border-top:1px solid #d8ded9;margin:20px 0;padding:8px 0}.more-conditions>summary{font-size:14px!important;min-height:48px;padding:10px 0;cursor:pointer}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #728a72;outline-offset:3px}
@media(max-width:900px){.edge-cutlery{display:none}.card h3{font-size:15px}.card .recipe{font-size:14px}.card .kcal{font-size:12px}}

.card .dish-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between}.card .dish-actions .keep-dish{margin:0}.card .dish-actions .recipe{margin:0}.card details{margin:0}.card .dish-preview{margin:2px 0}

.side-nav nav a,.side-nav nav a:nth-child(n),.side-nav nav a:focus-visible{border-radius:999px}.side-nav nav a,.side-nav nav a:nth-child(n){padding:16px 10px}.side-nav nav .nav-icon{height:60%;width:65%}

/* Supplied chopsticks occupy 800 of the original 1024px canvas. */
.meal-tray .tray-cutlery .utensil-chopsticks{width:128%;max-width:none}

/* Compact keep control; common result notes share one typographic style. */
.card .dish-actions .keep-dish{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:10px;border-radius:999px;box-sizing:border-box}.keep-dish:before{content:'';display:block;width:22px;height:22px;background:url('icons/heart.svg') center/contain no-repeat}.keep-dish[aria-pressed=true]:before{background-image:url('icons/heart-filled.svg')}
.calorie-note,#rice-result{font-family:'Noto Sans JP',sans-serif;font-size:12px;font-weight:400;line-height:1.8;letter-spacing:normal;color:#53615b;text-align:center;margin:8px 0;padding:0}

/* Compact overview: lock belongs to the dish name, details stay expandable. */
.intro{padding:8px 14px 8px}.intro .eyebrow{margin-bottom:4px}.intro h1{font-size:25px;line-height:1.5}.lid-divider{height:24px;margin-bottom:2px}
.meal-tray{width:100%;max-width:min(100%,clamp(120px,calc(100svh - 560px),280px));min-width:0}
#result-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.card{grid-template-columns:minmax(0,1fr) auto;gap:0 8px;padding:5px 0}.card .dish-thumb{display:none}.card h3{grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:flex-start;gap:3px;font-size:14px;line-height:1.45;margin:0}.card .kcal{grid-column:1/-1;grid-row:2;font-size:12px;margin:0;line-height:1.6}
.card h3 .keep-dish{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:28px;min-height:28px;padding:6px;margin:0;background:transparent;border:0;box-shadow:none}.card h3 .keep-dish:before{width:15px;height:15px;background-image:url('icons/lock-open.svg')}.card h3 .keep-dish[aria-pressed=true]:before{background-image:url('icons/lock-closed.svg')}.card h3 .keep-dish[aria-pressed=true]{background:#e3ebdb}
.card .dish-actions{grid-column:2;grid-row:3;display:flex;align-items:start}.card .dish-actions .recipe{min-height:28px;font-size:12px;padding:2px 10px;line-height:1.6}
.card details{grid-column:1/-1;grid-row:3;min-width:0}.card details summary{width:max-content;max-width:calc(100% - 125px);min-height:28px;font-size:12px;padding:0;line-height:1.6}.card details[open]{padding-top:0}.card details p{font-size:13px;line-height:1.8}.card .dish-preview{grid-column:auto}
.result-heading{margin-top:8px;padding:2px 0}#sharing{margin-top:6px}.calorie-note,#rice-result{margin:5px 0}.share-actions{margin-top:12px}
body>footer{gap:14px;flex-wrap:wrap}
@media(max-height:740px){.intro{padding-top:4px}.intro h1{font-size:22px}.intro .eyebrow{margin-bottom:3px}.card{padding:3px 0}.lid-divider{height:20px}}

.card .dish-actions{position:relative;z-index:1;align-self:start}
