:root {
  --ink: #282c25;
  --muted: #898b82;
  --green: #405b3c;
  --green-dark: #32482f;
  --cream: #fbf8f2;
  --paper: #fffefa;
  --line: #ece9e1;
  --orange: #e48250;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.app-shell { display: grid; grid-template-columns: 244px minmax(500px, 1fr) 318px; min-height: 100vh; max-width: 1800px; margin: auto; }
.sidebar { background: #f5f2ea; border-right: 1px solid #eeebe4; padding: 28px 17px 20px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: var(--ink); margin-bottom: 48px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--green); color: #fff9ed; font: 700 25px var(--serif); letter-spacing: -4px; padding-right: 4px; transform: rotate(-5deg); }
.brand-mark span { color: #f2bb82; }
.brand-copy { font-size: 16px; font-weight: 500; letter-spacing: -.6px; line-height: 1.05; }
.brand-copy strong { font-weight: 700; }
.brand-copy small { display: block; color: #9d9a8e; font: 700 7px var(--sans); letter-spacing: 1.2px; margin-top: 6px; }
.sidebar-label, .rail-label { padding: 0 11px; color: #a2a094; font-size: 9px; letter-spacing: 1.2px; font-weight: 700; }
.side-nav { display: grid; gap: 4px; margin-top: 12px; }
.side-link { border: 0; width: 100%; background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 12px; border-radius: 8px; font-size: 12px; color: #64675e; cursor: pointer; transition: .18s ease; }
.side-link:hover, .side-link.active { color: var(--green); background: #e9ece2; }
.side-link.active { font-weight: 700; }
.nav-icon { width: 17px; text-align: center; font-size: 17px; line-height: 1; }
.nav-count { margin-left: auto; border-radius: 10px; background: #fff; padding: 2px 7px; font-size: 10px; color: var(--green); }
.cuisines-label { margin-top: 35px; }
.cuisine-nav { margin-top: 10px; }
.cuisine-link { padding-top: 8px; padding-bottom: 8px; }
.cuisine-emoji { font-size: 15px; width: 18px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.chef-card { background: #ebe8de; border-radius: 10px; display: flex; align-items: center; padding: 12px 9px; gap: 8px; margin: 0 1px 15px; }
.chef-avatar { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; background: #d8dfce; border-radius: 50%; font-size: 17px; }
.chef-card strong, .chef-card span, .profile-row strong, .profile-row span { display: block; }
.chef-card strong { font-size: 10px; margin-bottom: 3px; }
.chef-card span { font-size: 9px; color: #85877f; }
.arrow-button, .more-button { margin-left: auto; border: 0; background: transparent; color: var(--green); cursor: pointer; }
.chef-switch { background: #fffefa; border: 1px solid var(--line); border-radius: 8px; width: 100%; padding: 10px; text-align: left; color: #606258; cursor: pointer; font-size: 11px; margin-bottom: 18px; }
.chef-switch>span:first-child { color: var(--orange); margin-right: 7px; font-size: 16px; vertical-align: -1px; }
.switch-arrow { float: right; color: #8d9385; }
.profile-row { display: flex; align-items: center; gap: 9px; padding: 4px 5px; }
.profile-avatar { width: 32px; height: 32px; display: grid; place-items: center; background: #d7ae8d; color: #fff; font-weight: 700; border-radius: 50%; }
.profile-row strong { font-size: 10px; margin-bottom: 3px; }
.profile-row span { color: #939388; font-size: 9px; }
.more-button { color: #787a70; font-size: 19px; letter-spacing: 2px; }
.main-content { min-width: 0; padding: 0 43px 25px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 75px; border-bottom: 1px solid #eeeae2; }
.breadcrumbs { color: #99988f; font-size: 10px; }
.breadcrumbs span { margin: 0 8px; color: #c2bfb5; }
.breadcrumbs strong { color: #585b52; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 21px; }
.today-label { color: #949388; font-size: 10px; }
.sun-dot { color: #e5a75e; font-size: 14px; margin-right: 4px; }
.icon-button { position: relative; border: 0; background: none; color: #74766c; font-size: 19px; cursor: pointer; }
.notification-button i { position: absolute; top: 2px; right: 1px; width: 5px; height: 5px; background: #e7895f; border-radius: 50%; border: 1px solid var(--cream); }
.mobile-menu { display: none; border: 0; background: none; font-size: 20px; }
.preview-banner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 16px; padding: 10px 12px; border: 1px solid #e8d8b9; border-radius: 7px; background: #fbf4e6; color: #777260; font-size: 9px; line-height: 1.5; }
.preview-banner strong { color: #80663c; white-space: nowrap; }
.welcome-row { padding: 33px 2px 24px; display: flex; position: relative; align-items: center; justify-content: space-between; min-height: 228px; }
.eyebrow { color: var(--green); font-size: 9px; letter-spacing: 1.45px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.eyebrow>span { width: 6px; height: 6px; border-radius: 50%; background: #de9569; display: inline-block; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 500 41px/1.16 var(--serif); letter-spacing: -.9px; margin: 14px 0 10px; }
h1 em, .assistant-prompt em { color: var(--green); font-weight: 500; }
.welcome-copy { color: #85867d; font-size: 11px; margin: 0; }
.welcome-illustration { position: relative; width: 190px; height: 165px; margin-right: 22px; }
.illustration-bowl { position: absolute; right: 25px; bottom: 12px; width: 132px; height: 108px; display: grid; place-items: center; background: #e6e9d7; border-radius: 49% 51% 44% 46%; transform: rotate(-9deg); }
.illustration-bowl:after { content: ""; position: absolute; width: 153px; height: 41px; bottom: 13px; left: -9px; background: #d4dbc6; border-radius: 50%; z-index: 0; }
.illustration-bowl span { z-index: 1; font-size: 63px; transform: rotate(9deg) translateY(-7px); filter: drop-shadow(0 3px 3px #51603b20); }
.illustration-spark { position: absolute; z-index: 2; color: #d99c55; }
.spark-one { top: 18px; left: 25px; font-size: 22px; }
.spark-two { top: 42px; right: 13px; font-size: 19px; color: #81946f; }
.illustration-leaf { position: absolute; font: 39px var(--serif); color: #81946f; transform: rotate(-52deg); }
.leaf-one { left: 4px; bottom: 7px; }
.leaf-two { right: 0; bottom: 24px; transform: rotate(24deg); }
.search-panel { height: 51px; background: #fffefa; border: 1px solid #ede9df; border-radius: 9px; display: flex; align-items: center; padding: 0 14px; box-shadow: 0 4px 15px #463b1c08; }
.search-box { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.search-icon { font-size: 25px; transform: rotate(-20deg); color: #8f9287; line-height: 1; }
.search-box input { border: 0; outline: none; background: transparent; width: 100%; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #aaa99f; }
kbd { color: #aaa99f; border: 1px solid #e9e6de; border-radius: 4px; white-space: nowrap; padding: 3px 5px; font: 9px var(--sans); }
.search-divider { width: 1px; height: 24px; background: #eae7df; margin: 0 16px; }
.ingredient-search { border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ingredient-search span { color: #d98559; font-size: 15px; margin-right: 4px; vertical-align: -1px; }
.category-section { margin-top: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; }
.muted-eyebrow { color: #a19f94; font-size: 8px; letter-spacing: 1.3px; }
h2 { font: 600 22px/1.2 var(--serif); letter-spacing: -.3px; margin: 7px 0 0; }
.text-button { background: none; border: 0; color: var(--green); font-size: 10px; font-weight: 600; cursor: pointer; padding: 6px 0; }
.text-button span { margin-left: 4px; font-size: 14px; }
.category-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.category-tile { border: 1px solid #eeeae2; border-radius: 9px; background: #fffefa; padding: 12px 5px 10px; display: grid; justify-items: center; gap: 7px; color: #6d6e64; cursor: pointer; font-size: 9px; white-space: nowrap; transition: .18s ease; }
.category-tile:hover { transform: translateY(-2px); border-color: #bdc8b4; }
.category-tile.selected { background: #e9eee4; border-color: #e9eee4; color: var(--green); font-weight: 700; }
.tile-icon { height: 27px; font-size: 22px; display: grid; place-items: center; }
.all-icon { color: #78906d; font-size: 25px; }
.recipes-section { margin-top: 37px; }
.recipe-heading { align-items: end; }
.heading-spark { color: #df9761; font: 13px var(--sans); vertical-align: 4px; margin-left: 2px; }
.recipe-controls { display: flex; align-items: center; gap: 11px; }
.recipe-count { color: #a09f94; font-size: 9px; }
.sort-select select { background: #fffefa; border: 1px solid #eae7df; border-radius: 6px; padding: 7px 23px 7px 9px; color: #73746a; font-size: 9px; outline: none; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 17px; }
.recipe-card { border: 1px solid #edeae2; background: #fffefa; border-radius: 9px; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; min-width: 0; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 9px 20px #4b45210d; }
.recipe-image-wrap { height: 145px; overflow: hidden; position: relative; background: #e8e6db; }
.recipe-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.recipe-card:hover .recipe-image { transform: scale(1.04); }
.recipe-tag { position: absolute; top: 10px; left: 10px; background: #fffefaed; border-radius: 4px; padding: 5px 7px; color: #58674e; font-size: 8px; font-weight: 700; }
.favorite-button { position: absolute; top: 8px; right: 9px; border: 0; border-radius: 50%; width: 29px; height: 29px; background: #fffef2e8; color: #6d7463; font-size: 18px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.favorite-button.saved { color: #dd7558; }
.recipe-card-body { padding: 11px 12px 12px; }
.card-category { font-size: 8px; color: #a0a095; letter-spacing: .5px; text-transform: uppercase; font-weight: 600; }
.recipe-card h3 { font: 600 15px/1.25 var(--serif); margin: 5px 0 6px; letter-spacing: -.1px; }
.recipe-title-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.recipe-title-button:hover { color: var(--green); }
.recipe-subtitle { font-size: 9px; color: #8d8e84; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0ede7; margin-top: 12px; padding-top: 9px; font-size: 8px; color: #83847a; }
.card-meta span:first-child { color: #c88956; }
.rating { color: #d59b4f; font-weight: 700; }
.empty-state { padding: 40px 15px; text-align: center; }
.empty-state>span { font-size: 32px; }
.empty-state h3 { font: 600 20px var(--serif); margin: 10px 0; }
.empty-state p { color: var(--muted); font-size: 11px; }
.primary-button { border: 0; border-radius: 7px; background: var(--green); color: white; padding: 11px 16px; font-weight: 600; font-size: 11px; cursor: pointer; transition: background .2s; }
.primary-button:hover { background: var(--green-dark); }
.page-footer { color: #aaa79a; font-size: 9px; text-align: center; padding: 30px 0 5px; }
.page-footer span { color: #df8867; font-size: 14px; vertical-align: -2px; margin-left: 4px; }
.assistant-rail { background: #fffefa; border-left: 1px solid #eeebe4; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 0 21px 19px; min-width: 0; }
.assistant-header { height: 75px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0ede7; flex: 0 0 auto; }
.assistant-brand { display: flex; align-items: center; gap: 10px; }
.assistant-orb { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e9eee3; color: #66805f; font-size: 17px; }
.assistant-brand strong { display: block; font-size: 11px; margin-bottom: 5px; }
.assistant-brand span { color: #95968d; display: block; font-size: 8px; }
.assistant-brand span i { display: inline-block; width: 5px; height: 5px; background: #79a66a; border-radius: 50%; margin-right: 4px; }
.rail-close { display: none; background: transparent; border: 0; cursor: pointer; font-size: 22px; color: #73766b; }
.assistant-prompt { text-align: center; padding: 33px 7px 25px; }
.prompt-spark { color: #d59564; font-size: 18px; }
.assistant-prompt h3 { font: 500 25px/1.22 var(--serif); margin: 9px 0 8px; }
.assistant-prompt p { color: #919188; font-size: 9px; line-height: 1.7; margin: 0 auto; max-width: 220px; }
.quick-questions { display: grid; gap: 8px; }
.quick-questions .rail-label { padding: 0; margin-bottom: 2px; font-size: 8px; }
.quick-question { background: #fffefa; border: 1px solid #eeebe3; border-radius: 7px; min-height: 42px; display: flex; align-items: center; text-align: left; gap: 8px; padding: 8px; font-size: 8px; line-height: 1.4; color: #6f7067; cursor: pointer; }
.quick-question:hover { border-color: #cad3c3; background: #f7f8f2; }
.quick-question>span { font-size: 13px; }
.quick-question b { color: #9d9f94; font-weight: 400; margin-left: auto; font-size: 12px; }
.chat-messages { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 13px 1px; min-height: 18px; }
.chat-message { border-radius: 9px; padding: 9px 10px; font-size: 9px; line-height: 1.6; max-width: 93%; white-space: pre-wrap; }
.chat-message.user { background: #e9eee3; align-self: flex-end; color: #41523a; }
.chat-message.assistant { background: #f5f2ea; align-self: flex-start; color: #64665c; }
.chat-composer { border: 1px solid #e9e6de; border-radius: 8px; display: grid; grid-template-columns: 1fr 28px; align-items: center; padding: 8px 8px 6px 10px; position: relative; flex: 0 0 auto; }
.chat-composer textarea { resize: none; border: 0; outline: 0; background: none; width: 100%; font-size: 9px; color: var(--ink); max-height: 66px; }
.chat-composer textarea::placeholder { color: #aaa99f; }
.chat-composer button { width: 25px; height: 25px; border: 0; border-radius: 6px; color: white; background: var(--green); cursor: pointer; font-size: 16px; }
.chat-note { grid-column: 1 / -1; color: #aaa99f; font-size: 7px; margin-top: 5px; }
.page-view { padding-bottom: 8px; }
.hidden { display: none !important; }
.chef-welcome { display: flex; justify-content: space-between; align-items: end; padding: 48px 2px 31px; }
.chef-welcome h1 { font-size: 38px; }
.add-recipe-button { margin-bottom: 7px; }
.chef-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chef-stats article { background: #fffefa; border: 1px solid var(--line); border-radius: 9px; padding: 15px 12px; display: flex; align-items: flex-start; gap: 10px; }
.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; color: var(--green); background: #e9eee3; font-size: 17px; }
.stat-icon.peach { color: #ce7958; background: #f7eae1; }
.stat-icon.yellow { color: #bd914c; background: #f8f0dc; }
.chef-stats article span:not(.stat-icon), .chef-stats article small { display: block; color: #8c8d83; font-size: 8px; }
.chef-stats article strong { display: block; font: 600 21px var(--serif); margin: 4px 0; }
.chef-stats article small { font-size: 8px; }
.chef-stats article .positive { color: #6a9663; }
.chef-recipes { margin-top: 37px; }
.chef-table { border: 1px solid var(--line); border-radius: 9px; background: #fffefa; overflow: hidden; margin-top: 15px; }
.chef-table-row { display: grid; grid-template-columns: minmax(150px,2fr) 1fr 70px 105px; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f0ede7; font-size: 9px; color: #6f7067; }
.chef-table-row:last-child { border-bottom: 0; }
.chef-table-head { background: #faf9f4; color: #9a9a8f; text-transform: uppercase; letter-spacing: .7px; font-size: 8px; }
.chef-table-recipe { display: flex; align-items: center; gap: 9px; color: #35382f; font-weight: 600; }
.chef-table-recipe img { width: 35px; height: 32px; object-fit: cover; border-radius: 5px; }
.chef-row-actions { display: flex; align-items: center; gap: 7px; }
.status-pill { background: #e9efe4; color: #66805f; padding: 4px 7px; border-radius: 10px; font-size: 8px; width: fit-content; }
.row-action { background: transparent; border: 0; color: #8a8c81; cursor: pointer; font-size: 12px; }
.chef-tip { margin-top: 18px; border-radius: 8px; background: #f1eee4; padding: 14px; display: flex; gap: 11px; color: #d29158; }
.chef-tip>span { font-size: 17px; }
.chef-tip strong { color: #505448; font-size: 10px; }
.chef-tip p { color: #85867c; font-size: 9px; margin: 5px 0 0; line-height: 1.5; }
.local-demo-notice { margin-top: 22px; border: 1px solid #e8d8b9; border-radius: 8px; background: #fbf4e6; padding: 13px 14px; color: #69634f; }
.local-demo-notice strong { display: block; color: #80663c; font-size: 10px; margin-bottom: 6px; }
.local-demo-notice p { color: #777260; font-size: 9px; line-height: 1.6; margin: 0 0 5px; }
.local-demo-notice p:last-child { margin-bottom: 0; }
.side-link:focus-visible, .category-tile:focus-visible, .recipe-card:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #68835e; outline-offset: 2px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: #1c211bc9; display: grid; place-items: center; padding: 20px; }
.recipe-modal, .form-modal { position: relative; background: var(--paper); border-radius: 12px; width: min(740px, 100%); max-height: min(90vh, 900px); overflow: auto; box-shadow: 0 20px 80px #0003; }
.modal-close { position: sticky; float: right; top: 12px; margin: 12px 12px -46px 0; z-index: 2; border: 0; width: 31px; height: 31px; border-radius: 50%; background: #fffefaed; font-size: 22px; cursor: pointer; color: #53574d; }
.modal-hero { height: 230px; position: relative; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero:after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent,#0008); }
.modal-hero-title { position: absolute; z-index: 1; bottom: 19px; left: 24px; color: white; }
.modal-hero-title span { text-transform: uppercase; letter-spacing: 1px; font-size: 8px; }
.modal-hero-title h2 { font: 600 27px var(--serif); margin-top: 5px; }
.modal-body { padding: 22px 25px 28px; }
.modal-description { color: #83857a; font-size: 11px; line-height: 1.65; }
.modal-stats { display: flex; gap: 22px; border-bottom: 1px solid var(--line); padding: 13px 0 17px; margin-bottom: 19px; color: #686c60; font-size: 9px; }
.modal-stats span b { color: #d08c55; margin-right: 4px; }
.recipe-detail-grid { display: grid; grid-template-columns: .82fr 1.4fr; gap: 28px; }
.recipe-detail-grid h3 { font: 600 18px var(--serif); margin-bottom: 10px; }
.serving-adjust { color: #929388; font-size: 9px; margin-bottom: 12px; }
.serving-adjust button { border: 1px solid var(--line); border-radius: 4px; background: #fff; width: 22px; height: 22px; cursor: pointer; margin-left: 5px; }
.ingredient-list, .instruction-list { padding: 0; margin: 0; list-style: none; }
.ingredient-list li { display: flex; gap: 8px; border-bottom: 1px solid #f0ede7; padding: 8px 0; font-size: 10px; color: #696b61; }
.ingredient-list input { accent-color: var(--green); }
.instruction-list { counter-reset: step; }
.instruction-list li { counter-increment: step; padding: 0 0 13px 32px; position: relative; color: #6c6e64; font-size: 10px; line-height: 1.65; }
.instruction-list li:before { content: counter(step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #e9eee3; color: var(--green); font-weight: 700; }
.food-safety { border-radius: 7px; background: #f8f1e5; color: #77715c; font-size: 9px; line-height: 1.5; padding: 10px; margin-top: 5px; }
.food-safety strong { color: #a2743f; }
.start-cooking { margin-top: 16px; width: 100%; }
.form-modal { width: min(480px, 100%); padding: 27px; }
.form-modal h2 { margin: 0 0 7px; }
.form-intro { color: #85867c; font-size: 10px; margin-bottom: 20px; }
.recipe-form { display: grid; gap: 12px; }
.recipe-form label { display: grid; gap: 6px; color: #66695f; font-size: 9px; font-weight: 600; }
.recipe-form input, .recipe-form select, .recipe-form textarea { border: 1px solid #e7e5dc; background: #fff; border-radius: 6px; padding: 9px; outline-color: #a6b29e; color: var(--ink); font-size: 10px; }
.recipe-form textarea { min-height: 70px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 15px); z-index: 40; opacity: 0; pointer-events: none; background: #34472f; color: white; border-radius: 7px; padding: 11px 16px; font-size: 10px; box-shadow: 0 6px 20px #0002; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mobile-assistant-button { display: none; }

@media (min-width: 1500px) {
  .main-content { padding-left: 55px; padding-right: 55px; }
  .recipe-image-wrap { height: 175px; }
  .welcome-row { min-height: 250px; }
}
@media (max-width: 1250px) {
  .app-shell { grid-template-columns: 218px minmax(430px, 1fr) 280px; }
  .main-content { padding-left: 28px; padding-right: 28px; }
  .assistant-rail { padding-left: 15px; padding-right: 15px; }
  .category-grid { gap: 6px; }
  .category-tile { font-size: 8px; }
  .recipe-grid { gap: 10px; }
  .recipe-image-wrap { height: 125px; }
}
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 215px minmax(430px, 1fr); }
  .assistant-rail { position: fixed; z-index: 12; right: 0; top: 0; width: 318px; box-shadow: -12px 0 35px #00000012; transform: translateX(102%); transition: transform .25s ease; }
  .assistant-rail.open { transform: translateX(0); }
  .rail-close { display: block; }
  .today-label { display: none; }
  .mobile-assistant-button { position: fixed; display: flex; align-items: center; gap: 8px; z-index: 10; right: 18px; bottom: 18px; border: 0; border-radius: 25px; padding: 12px 16px; background: var(--green); box-shadow: 0 6px 20px #34472f38; color: white; font-size: 11px; font-weight: 600; cursor: pointer; }
  .mobile-assistant-button span { color: #f2c48e; font-size: 15px; }
}
@media (max-width: 680px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 16; top: 0; left: 0; width: 255px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 10px 0 35px #00000014; }
  .sidebar.open { transform: translateX(0); }
  .main-content { padding: 0 18px 22px; }
  .topbar { height: 61px; gap: 11px; }
  .preview-banner { margin-top: 10px; font-size: 8px; }
  .mobile-menu { display: block; }
  .breadcrumbs { margin-right: auto; }
  .welcome-row { min-height: 185px; padding-top: 27px; }
  h1 { font-size: 34px; }
  .welcome-illustration { width: 120px; height: 130px; margin-right: 0; transform: scale(.78); transform-origin: center right; }
  .search-panel { padding: 0 10px; }
  .search-box { gap: 5px; }
  .search-box input { font-size: 10px; }
  .search-box kbd { display: none; }
  .search-divider { margin: 0 8px; }
  .ingredient-search { font-size: 0; }
  .ingredient-search span { font-size: 19px; }
  .category-section { margin-top: 27px; }
  .category-grid { display: flex; overflow-x: auto; padding-bottom: 5px; margin-right: -18px; scrollbar-width: none; }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-tile { flex: 0 0 72px; }
  .recipes-section { margin-top: 27px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .recipe-image-wrap { height: 125px; }
  .recipe-card-body { padding: 9px; }
  .recipe-card h3 { font-size: 13px; }
  .recipe-subtitle { font-size: 8px; }
  .card-meta { font-size: 7px; }
  .recipe-count { display: none; }
  .assistant-rail { width: min(340px, 88vw); }
  .mobile-assistant-button { right: 13px; bottom: 13px; }
  .chef-welcome { align-items: flex-start; flex-direction: column; gap: 17px; padding-top: 32px; }
  .chef-welcome h1 { font-size: 33px; }
  .chef-stats { gap: 6px; }
  .chef-stats article { padding: 10px 8px; gap: 6px; }
  .stat-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .chef-stats article strong { font-size: 18px; }
  .chef-stats article span:not(.stat-icon) { font-size: 7px; }
  .chef-table-row { grid-template-columns: minmax(105px,2fr) .8fr 110px; gap: 6px; padding: 10px 8px; }
  .chef-table-row>:nth-child(3) { display: none; }
  .recipe-detail-grid { grid-template-columns: 1fr; gap: 21px; }
  .modal-hero { height: 180px; }
  .modal-body { padding: 17px; }
  .modal-stats { gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 390px) {
  .main-content { padding-left: 13px; padding-right: 13px; }
  .welcome-illustration { margin-left: -20px; transform: scale(.65); }
  .welcome-copy { max-width: 220px; line-height: 1.5; }
  .recipe-grid { gap: 7px; }
  .recipe-image-wrap { height: 105px; }
  .category-grid { margin-right: -13px; }
  .section-heading h2 { font-size: 20px; }
  .text-button { font-size: 9px; }
  .recipe-heading .sort-select select { padding-left: 6px; }
}
