*{box-sizing:border-box}html{scroll-behavior:smooth}body.recipe-page{margin:0;background:var(--page-bg,#f3f4f6);color:var(--text-primary,#253248);font:14px/1.5 'Segoe UI',system-ui,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{text-decoration:none;color:inherit}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}.recipe-top{min-height:68px;background:var(--surface,#fff);border-bottom:1px solid var(--line,#d9dfe7);display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px max(3%,calc((100vw - 1370px)/2));position:sticky;top:0;z-index:30}.recipe-logo{display:flex;align-items:center;gap:10px;color:var(--text-primary);font-weight:750;line-height:1.3;white-space:nowrap}.recipe-logo small{display:block;font-size:8px;letter-spacing:1.7px;color:var(--text-secondary);font-weight:650}.recipe-logo-icon{width:36px;height:36px;border-radius:9px;background:#0065ff;color:#fff;display:grid;place-items:center;font-size:25px}.recipe-top-nav{display:flex;gap:28px;align-self:stretch;align-items:center}.recipe-top-nav a{padding:9px 0;font-size:13px;color:var(--text-secondary);font-weight:600}.recipe-top-nav a.selected{color:var(--accent,#0065ff);border-bottom:2px solid #0065ff}.recipe-top-actions{display:flex;align-items:center;gap:12px}.recipe-top-actions a{font-size:12px;font-weight:650}.recipe-create{padding:11px 16px;background:#0065ff;color:#fff!important;border-radius:7px}.language-selector{max-width:133px;padding:8px 9px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text-primary)}.recipe-wrap{max-width:1390px;margin:auto;padding:18px 28px 55px}.recipe-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);gap:10px;position:relative;overflow:hidden;border-radius:16px;background:linear-gradient(115deg,#0c233d,#142c4b 78%);color:#fff;padding:34px 35px 25px;min-height:292px}.recipe-hero-copy{position:relative;z-index:2}.recipe-kicker{color:#86bdff;font-size:11px;letter-spacing:1.7px;font-weight:750}.recipe-hero h1{font-size:clamp(30px,3.8vw,52px);letter-spacing:-1.9px;line-height:1.09;max-width:590px;margin:11px 0 10px}.recipe-hero em{font-style:normal;color:#85baff}.recipe-hero p{max-width:545px;margin:0;color:#d0dfef;font-size:14px;line-height:1.65}.recipe-hero-art{display:flex;align-items:center;justify-content:center;position:relative;min-height:165px}.recipe-hero-art:before{content:'';position:absolute;width:380px;height:380px;border-radius:50%;border:1px solid #ffffff1b;right:5%;top:-140px}.recipe-hero-art img{position:absolute;width:min(95%,395px);height:230px;object-fit:cover;right:0;top:-25px;border-radius:120px 20px 120px 40px;transform:rotate(-7deg);box-shadow:0 12px 35px #0006}.recipe-hero-art span{position:absolute;z-index:2;bottom:4px;right:5px;font-style:italic;font-weight:650;color:#fff;text-shadow:0 2px 7px #000}.recipe-hero-controls{grid-column:1/-1;display:flex;gap:12px;align-items:stretch;position:relative;z-index:3;margin-top:12px}.recipe-search{background:#fff;display:flex;align-items:center;border-radius:8px;padding:5px 5px 5px 13px;min-width:0;flex:1;color:#1b2e45}.recipe-search .search-mark{font-size:26px;color:#0065ff;margin-right:10px}.recipe-search input{border:0;outline:0;min-width:0;width:100%;height:34px;background:transparent;color:#253248}.recipe-search button,.recipe-side-card form button{border:0;border-radius:6px;background:#0065ff;color:white;padding:10px 24px;font-weight:700}.recipe-select select,.recipe-counter{border:0;border-radius:8px;background:#fff;color:#1b2e45;height:46px;padding:0 12px}.recipe-select select{min-width:170px;width:100%}.recipe-counter{display:flex;align-items:center;gap:5px;white-space:nowrap}.recipe-counter input{max-width:43px;width:43px;text-align:center;border:0;background:#fff;color:#142c4b;font-weight:750;appearance:textfield}.recipe-counter input::-webkit-inner-spin-button{appearance:none}.recipe-counter button{border:0;background:#e9f1ff;color:#0065ff;border-radius:5px;min-width:25px;height:28px;font-weight:750}.recipe-counter span{font-size:12px}.recipe-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:25px 8px 12px}.recipe-eyebrow{display:block;font-size:10px;letter-spacing:1.3px;font-weight:750;color:var(--accent,#0065ff)}.recipe-section-head h2{font-size:23px;line-height:1.2;letter-spacing:-.4px;margin:3px 0}.recipe-section-head p{font-size:12px;margin:0;color:var(--text-secondary)}.recipe-tabs{display:flex;align-items:center;gap:8px;margin:15px 3px}.recipe-tabs button{background:transparent;border:1px solid var(--line);color:var(--text-secondary);padding:8px 12px;border-radius:7px;font-size:12px;font-weight:650}.recipe-tabs button.is-active{color:#0065ff;border-color:#b9d4ff;background:var(--accent-soft,#e9f1ff)}.recipe-tabs span{background:#0065ff;color:#fff;padding:2px 6px;border-radius:30px}.recipe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.recipe-card{min-width:0;position:relative;background:var(--surface,#fff);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 4px 13px #0c234409;transition:transform .16s,box-shadow .16s}.recipe-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #0c23441b}.recipe-card-main{display:block;width:100%;border:0;text-align:left;background:transparent;color:var(--text-primary);padding:0}.recipe-card-image{height:160px;overflow:hidden;background:var(--accent-soft)}.recipe-card-image img{width:100%;height:100%;object-fit:cover}.recipe-card-info{padding:12px}.recipe-card-tags{color:var(--accent,#0065ff);font-size:11px;display:flex;gap:7px}.recipe-card-tags span{font-weight:650}.recipe-card-tags small{color:var(--text-secondary)}.recipe-card h3{font-size:15px;margin:6px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recipe-card p{font-size:11px;color:var(--text-secondary);margin:4px 0 8px}.recipe-card strong{color:#0065ff;font-size:12px}.recipe-save{position:absolute;right:10px;top:10px;border:0;border-radius:50%;background:#fffdf1e8;color:#29374d;display:grid;place-items:center;width:34px;height:34px;font-size:23px;z-index:2}.recipe-save.active{color:#e54867}.recipe-main-lower{margin-top:22px;display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,.9fr);gap:18px;align-items:start}.recipe-detail-shell,.recipe-side-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 17px #1022380a}.recipe-detail-shell{min-height:425px;overflow:hidden}.recipe-detail-placeholder{padding:85px 25px;text-align:center}.recipe-detail-placeholder h2{font-size:26px;margin:8px 0}.recipe-detail-placeholder p{color:var(--text-secondary)}.recipe-detail-hero{display:grid;grid-template-columns:205px minmax(0,1fr);gap:18px;padding:18px;border-bottom:1px solid var(--line)}.recipe-detail-hero>img{width:100%;height:180px;object-fit:cover;border-radius:10px}.recipe-detail-intro h2{font-size:22px;margin:8px 0}.recipe-detail-intro p{color:var(--text-secondary);font-size:12px}.recipe-detail-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.recipe-detail-actions button,#detail-print{border:1px solid var(--line);background:var(--surface-subtle);border-radius:7px;padding:8px 11px;color:var(--text-primary)}.recipe-serving-note{padding:11px 18px;border-bottom:1px solid var(--line);display:flex;gap:15px;align-items:center;font-size:11px;color:var(--text-secondary)}.recipe-serving-note strong{color:var(--text-primary);white-space:nowrap}.recipe-detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:14px 18px 22px}.recipe-detail-columns h3{font-size:15px;margin:6px 0 16px}.recipe-detail-columns h3 small{font-size:11px;color:var(--text-secondary);font-weight:400}.ingredient-list,.recipe-step-list{list-style:none;margin:0;padding:0}.ingredient-list li{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:9px 0;font-size:12px}.ingredient-list li span:nth-child(2){flex:1}.ingredient-list li strong{margin-left:auto;font-size:11px;font-weight:650;text-align:right}.ingredient-dot{color:#0065ff;border:1px solid #a9caff;border-radius:4px;width:18px;height:18px;text-align:center;font-size:12px}.recipe-step-list li{display:flex;align-items:flex-start;gap:10px;margin-bottom:13px;font-size:12px;line-height:1.6}.step-number{flex:none;width:22px;height:22px;border-radius:100%;background:#0065ff;color:#fff;font-size:11px;display:grid;place-items:center;font-weight:700}.recipe-source{padding:0 18px 17px;display:flex;gap:20px;color:#0065ff;font-size:12px}.recipe-side{display:grid;gap:14px}.recipe-side-card{padding:18px}.recipe-side-title,.recipe-side-heading{display:flex;gap:9px;align-items:start}.recipe-side-title h3,.recipe-side-heading h3{font-size:15px;margin:0}.recipe-side-title h3 small{color:#0065ff;background:var(--accent-soft);border-radius:5px;padding:3px 6px;font-size:10px}.recipe-side-title p,.recipe-side-heading p{font-size:11px;color:var(--text-secondary);margin:6px 0 12px}.side-symbol{color:#0065ff;background:var(--accent-soft);padding:7px;border-radius:7px}.recipe-side-card form{display:flex;gap:6px}.recipe-side-card form input{width:100%;min-width:0;border:1px solid var(--line);border-radius:6px;padding:10px;background:var(--surface);color:var(--text-primary);font-size:12px}.recipe-side-card form button{padding:8px 12px}.recipe-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.recipe-suggestions button{border:0;border-radius:20px;padding:7px 10px;background:var(--accent-soft);color:var(--accent);font-size:11px}.recipe-ai-notice{font-size:10px;color:var(--text-secondary)}.recipe-side-heading{justify-content:space-between}.recipe-side-heading button{border:0;background:transparent;color:var(--accent);font-weight:700;font-size:11px;white-space:nowrap}.recipe-saved-preview .saved-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid var(--line);width:100%;background:transparent;color:var(--text-primary);text-align:left;border-left:0;border-right:0;border-top:0}.saved-row img{width:48px;height:45px;border-radius:6px;object-fit:cover}.saved-row span{font-size:12px;font-weight:650}.recipe-saved-preview p{font-size:12px;color:var(--text-secondary)}.recipe-empty{padding:30px;text-align:center;border:1px dashed var(--line);border-radius:12px}.recipe-foot{margin:30px 0 0;padding:15px 0;border-top:1px solid var(--line);font-size:11px;color:var(--text-secondary)}.recipe-dialog{border:0;border-radius:12px;background:var(--surface);color:var(--text-primary);padding:25px;width:min(620px,95vw)}.recipe-dialog::backdrop{background:#0c21389c}.recipe-dialog-close,#recipe-close{position:absolute;right:12px;top:8px;border:0;background:transparent;font-size:28px;color:var(--text-primary)}.recipe-mobile-nav{display:none}.recipe-loading{grid-column:1/-1;padding:40px;text-align:center;color:var(--text-secondary)}
@media(max-width:1100px){.recipe-top-nav{gap:12px}.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-main-lower{grid-template-columns:minmax(0,1.5fr) minmax(230px,.8fr)}.recipe-hero-art img{width:90%}}@media(max-width:800px){.recipe-top{padding:12px 18px}.recipe-top-nav{display:none}.recipe-sign-in,.recipe-create{display:none}.recipe-wrap{padding:15px 15px 85px}.recipe-hero{grid-template-columns:1fr;padding:24px 22px}.recipe-hero-art{display:none}.recipe-hero-controls{flex-wrap:wrap}.recipe-search{flex:1 1 100%}.recipe-select{flex:1}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-main-lower{grid-template-columns:1fr}.recipe-side{grid-template-columns:1fr 1fr}.recipe-mobile-nav{display:flex;position:fixed;z-index:25;bottom:0;left:0;right:0;justify-content:space-around;padding:10px 5px max(10px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}.recipe-mobile-nav a{display:grid;justify-items:center;color:var(--text-secondary);font-size:18px}.recipe-mobile-nav a span{font-size:10px}.recipe-mobile-nav a.active{color:#0065ff}}@media(max-width:540px){.recipe-logo{font-size:12px}.recipe-logo small{font-size:6px}.recipe-logo-icon{width:30px;height:30px}.recipe-top-actions{gap:5px}.language-selector{max-width:110px;font-size:11px}.recipe-top .theme-toggle{width:30px;height:30px}.recipe-hero h1{font-size:34px;letter-spacing:-1px}.recipe-hero p{font-size:12px}.recipe-search input{font-size:11px}.recipe-search button{padding:10px 12px}.recipe-select select,.recipe-counter{height:40px}.recipe-counter{justify-content:center}.recipe-section-head h2{font-size:21px}.recipe-section-head>p{display:none}.recipe-tabs{overflow-x:auto;white-space:nowrap;padding-bottom:5px}.recipe-tabs button{flex:none}.recipe-grid{gap:10px}.recipe-card-image{height:115px}.recipe-card-info{padding:9px}.recipe-card h3{font-size:12px}.recipe-card p{font-size:10px}.recipe-card-tags{font-size:10px}.recipe-side{grid-template-columns:1fr}.recipe-detail-hero{grid-template-columns:1fr}.recipe-detail-hero>img{height:190px}.recipe-detail-columns{grid-template-columns:1fr}.recipe-serving-note{display:block}.recipe-serving-note span{display:block;margin-top:4px}.recipe-hero-controls{gap:9px}}@media print{.recipe-top,.recipe-hero,.recipe-tabs,.recipe-grid,.recipe-section-head,.recipe-side,.recipe-foot,.recipe-mobile-nav{display:none!important}.recipe-main-lower{display:block}.recipe-detail-shell{border:0}}
.recipe-translation-warning{margin:14px 18px;padding:12px;border:1px solid #dfbf7e;border-radius:8px;background:#fff7e7;color:#69480b;font-size:12px}

#recipe-generate-missing,#retry-ai{cursor:pointer;display:inline-flex;align-items:center;gap:9px;padding:13px 20px;margin:14px 0;background:#0065ff;border:0;border-radius:8px;color:#fff;font-weight:650;max-width:100%;white-space:normal;text-align:center}#recipe-generate-missing:hover,#retry-ai:hover{background:#0051d0}.recipe-empty{padding:25px;max-width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.recipe-empty h3{font-size:18px}.recipe-empty p{line-height:1.6;max-width:65ch}@media(max-width:600px){#recipe-generate-missing,#retry-ai{width:100%;justify-content:center}}

/* AI request status: time-based activity, not fabricated completion %. */
.recipe-ai-progress,.recipe-ai-error{margin:20px;padding:26px;border-radius:14px;background:var(--surface);border:1px solid var(--line);box-shadow:0 5px 22px #1022380b}
.recipe-progress-head{display:flex;align-items:center;gap:18px}.recipe-progress-head h2{font-size:22px;margin:4px 0 6px;overflow-wrap:anywhere}.recipe-progress-head p{margin:0;color:var(--text-secondary)}
.recipe-spinner{width:46px;height:46px;flex:none;border:4px solid var(--accent-soft,#e9f1ff);border-top-color:#0065ff;border-radius:50%;animation:recipe-spin .8s linear infinite}@keyframes recipe-spin{to{transform:rotate(360deg)}}
.recipe-progress-track{height:7px;position:relative;overflow:hidden;background:var(--accent-soft,#e9f1ff);border-radius:10px;margin:25px 0 12px}.recipe-progress-indeterminate{height:100%;width:35%;position:absolute;background:#0065ff;border-radius:10px;animation:recipe-progress 1.8s ease-in-out infinite alternate}@keyframes recipe-progress{from{left:0}to{left:65%}}
.recipe-progress-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;font-weight:600;color:var(--text-secondary)}.recipe-progress-note{font-size:12px;color:var(--text-secondary);margin:18px 0 0}.recipe-ai-error h3{color:var(--danger-text,#b63245)}.recipe-ai-error p{overflow-wrap:anywhere}@media(max-width:600px){.recipe-ai-progress,.recipe-ai-error{padding:17px;margin:12px 0}.recipe-progress-head{align-items:flex-start;gap:12px}.recipe-progress-head h2{font-size:18px}.recipe-spinner{width:34px;height:34px}}@media(prefers-reduced-motion:reduce){.recipe-spinner,.recipe-progress-indeterminate{animation:none}.recipe-progress-indeterminate{width:100%}}

/* Logo only header and compact mobile navigation. */
.recipe-logo .ribbon-logo{display:block;width:108px;height:47px;object-fit:contain;object-position:left center}.recipe-top{min-width:0}.recipe-top-actions{min-width:0}@media(max-width:800px){.recipe-top{gap:8px}.recipe-logo .ribbon-logo{width:80px;height:38px}.recipe-top-actions{margin-left:auto}.recipe-wrap{width:100%;max-width:100%;overflow-x:clip}.recipe-hero-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%}.recipe-search{grid-column:1/-1;min-width:0;width:100%}.recipe-select{min-width:0}.recipe-select select,.recipe-counter{width:100%}}@media(max-width:440px){.recipe-top{padding:9px 10px}.recipe-logo .ribbon-logo{width:64px;height:35px}.recipe-top-actions{gap:5px}.language-selector{max-width:100px}.recipe-hero{padding:23px 14px}.recipe-hero h1{font-size:30px}.recipe-wrap{padding-left:9px;padding-right:9px}.recipe-hero-controls{grid-template-columns:1fr}.recipe-select{width:100%}.recipe-search input{min-width:0;width:100%}.recipe-tabs{max-width:100%}}
