:root{--bg:#fff8f3;--surface:#ffffff;--ink:#2f2725;--muted:#8c7a73;--line:#f0dfd6;--accent:#d9576b;--accent-dark:#b93c52;--sage:#8cab8b;--shadow:0 18px 50px rgba(99,61,45,0.12)}*{box-sizing:border-box}body,html{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.66}.center-screen{display:grid;min-height:100dvh;place-items:center}.loading-card{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:18px 20px;color:var(--muted);box-shadow:var(--shadow)}.auth-page{display:grid;min-height:100dvh;grid-template-rows:1fr auto;padding:22px;grid-gap:18px;gap:18px}.auth-hero{display:flex;flex-direction:column;justify-content:flex-end;min-height:46dvh}.brand-pill{width:-moz-fit-content;width:fit-content;border:1px solid rgba(217,87,107,.24);border-radius:999px;background:rgba(255,255,255,.72);padding:7px 12px;color:var(--accent-dark);font-weight:700}.auth-hero h1{max-width:720px;margin:18px 0 12px;font-size:clamp(36px,8vw,68px);line-height:1.04}.auth-hero p{max-width:560px;margin:0;color:var(--muted);font-size:17px;line-height:1.7}.auth-panel,.bottom-nav,.create-card,.recipe-card{border:1px solid var(--line);background:rgba(255,255,255,.86);box-shadow:var(--shadow)}.auth-panel{width:min(100%,460px);border-radius:8px;padding:18px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px;margin-bottom:16px}.auth-tabs button,.filter-row button{border:0;border-radius:999px;background:#f8ebe4;color:var(--muted);padding:11px 14px}.auth-tabs button.active,.filter-row button:first-child{background:var(--ink);color:#fff}.auth-form{display:grid;grid-gap:14px;gap:14px}.auth-form label{display:grid;grid-gap:7px;gap:7px;color:var(--muted);font-size:14px}.auth-form input{min-height:48px;border:1px solid var(--line);border-radius:8px;background:#fffdfa;color:var(--ink);outline:none;padding:0 13px}.auth-form input:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(217,87,107,.12)}.ghost-button,.primary-button,.secondary-button{min-height:46px;border-radius:999px;padding:0 18px;font-weight:700}.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.primary-button{border:0;background:var(--accent);color:#fff}.primary-button:hover{background:var(--accent-dark)}.secondary-button{border:1px solid var(--line);background:#fffdfa;color:var(--accent-dark)}.secondary-button:hover{background:#fff1f3}.primary-button.compact,.secondary-button.compact{min-height:40px;white-space:nowrap}.ghost-button{border:1px solid var(--line);background:rgba(255,255,255,.7);color:var(--muted)}.form-message{margin:13px 0 0;color:var(--accent-dark)}.setup-note{margin:0;border-radius:8px;background:#fff8f3;color:var(--accent-dark);padding:12px;line-height:1.55}.app-shell{width:min(100%,1120px);min-height:100dvh;margin:0 auto;padding:22px 18px 96px}.home-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.eyebrow{margin:0 0 6px;color:var(--sage);font-size:13px;font-weight:800}.home-header h1{margin:0;font-size:30px;line-height:1.18}.create-card{display:flex;align-items:center;justify-content:space-between;gap:18px;border-radius:8px;margin-bottom:18px;padding:18px}.spark{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:#fbe1e6;color:var(--accent);font-size:24px;font-weight:700}.create-card h2{margin:12px 0 6px;font-size:22px}.create-card p{margin:0;color:var(--muted);line-height:1.55}.filter-row{display:flex;gap:9px;margin-bottom:16px;overflow-x:auto;padding-bottom:3px}.filter-row button{flex:0 0 auto}.recipe-grid{column-count:2;column-gap:12px}.recipe-card{display:inline-block;width:100%;overflow:hidden;border-radius:8px;margin:0 0 12px}.recipe-card img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover}.recipe-card:nth-child(2n) img{aspect-ratio:4/4.55}.recipe-meta{padding:11px 12px 13px}.recipe-meta h3{margin:0 0 5px;font-size:16px}.recipe-meta p{margin:0;color:var(--muted);font-size:13px}.bottom-nav{position:fixed;right:14px;bottom:14px;left:14px;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;max-width:560px;margin:0 auto;border-radius:999px;padding:9px}.bottom-nav a{color:var(--muted);text-align:center;text-decoration:none;font-size:13px;font-weight:700}.bottom-nav a.active{color:var(--accent)}.bottom-nav .nav-create{display:grid;width:44px;height:44px;place-items:center;justify-self:center;border-radius:50%;background:var(--ink);color:#fff;font-size:24px}.subpage-header{display:grid;grid-gap:18px;gap:18px;margin-bottom:18px}.back-link{width:-moz-fit-content;width:fit-content;color:var(--muted);font-weight:700;text-decoration:none}.subpage-header h1{margin:0;font-size:34px;line-height:1.12}.create-page{max-width:760px}.editor-section{border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.88);padding:16px;margin-bottom:14px;box-shadow:0 12px 34px rgba(99,61,45,.08)}.field{display:grid;grid-gap:8px;gap:8px;color:var(--muted);font-size:14px;font-weight:700}.field+.field{margin-top:14px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:#fffdfa;color:var(--ink);outline:none;padding:12px 13px}.field textarea{resize:vertical}.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.section-title h2,.voice-box h2{margin:0 0 5px;font-size:20px}.ai-preview p,.section-title p,.voice-box p{margin:0;color:var(--muted);line-height:1.5}.section-title span,.small-action-button{color:var(--accent-dark);font-weight:800}.small-action-button{flex:0 0 auto;min-height:36px;border:1px solid var(--line);border-radius:999px;background:#fffdfa;padding:0 13px}.photo-grid{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:8px;gap:8px}.hidden-file-input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.photo-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}.photo-slot{display:grid;aspect-ratio:1;place-items:center;border:1px dashed #e4c7ba;border-radius:8px;background:#fff8f3;color:var(--accent);font-size:24px;font-weight:800}.photo-studio{display:grid;grid-gap:14px;gap:14px}.photo-preview-frame{position:relative;overflow:hidden;border-radius:8px;background:#efe1d9;aspect-ratio:4/5}.photo-preview-frame img{display:block;width:100%;height:100%;object-fit:cover}.photo-shine{position:absolute;inset:0;background:radial-gradient(circle at 32% 18%,rgba(255,255,255,.28),transparent 28%),linear-gradient(180deg,rgba(255,248,243,.08),rgba(47,39,37,.12));pointer-events:none}.preset-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:8px;gap:8px}.preset-row button{min-height:88px;border:1px solid var(--line);border-radius:8px;background:#fffdfa;color:var(--muted);padding:10px;text-align:left}.preset-row button.active{border-color:rgba(217,87,107,.58);background:#fff1f3;color:var(--ink)}.preset-row span,.preset-row strong{display:block}.preset-row strong{margin-bottom:5px;color:var(--accent-dark);font-size:13px}.preset-row span{line-height:1.35;font-size:12px}.beauty-controls{display:grid;grid-gap:10px;gap:10px;border-radius:8px;background:#fff8f3;padding:12px}.beauty-controls label{display:grid;grid-template-columns:48px 1fr;align-items:center;grid-gap:10px;gap:10px;color:var(--muted);font-size:13px;font-weight:800}.beauty-controls input{accent-color:var(--accent)}.photo-strip{display:flex;gap:8px;overflow-x:auto;margin-top:14px;padding-bottom:2px}.photo-strip button{flex:0 0 auto;overflow:hidden;width:58px;height:58px;border:2px solid transparent;border-radius:8px;background:transparent;padding:0}.photo-strip button.active{border-color:var(--accent)}.photo-strip img{display:block;width:100%;height:100%;object-fit:cover}.voice-box{display:flex;align-items:center;justify-content:space-between;gap:16px}.record-button{min-width:112px;min-height:112px;border:0;border-radius:50%;background:var(--accent);color:#fff;font-weight:800;box-shadow:0 12px 26px rgba(217,87,107,.26)}.record-button.listening{background:var(--ink);animation:pulse-recording 1.2s ease-in-out infinite}.voice-hint{margin-top:8px;color:var(--accent-dark);font-weight:700}.transcript-box{width:100%;border:1px solid var(--line);border-radius:8px;background:#fffdfa;color:var(--ink);outline:none;padding:13px;resize:vertical}.wide-button{width:100%;margin-top:12px}.ai-preview{display:grid;grid-gap:10px;gap:10px}.ai-preview div{border-radius:8px;background:#fff8f3;padding:12px}.ai-preview strong{display:block;margin-bottom:5px}.ai-preview input,.ai-preview textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:#fffdfa;color:var(--ink);outline:none;padding:10px 11px}.ai-preview textarea{resize:vertical}.ai-preview ol{display:grid;grid-gap:10px;gap:10px;margin:0;padding-left:20px}.ai-preview li b,.ai-preview li em,.ai-preview li span{display:block}.ai-preview li span{color:var(--muted);line-height:1.55}.ai-preview li em{margin-top:4px;color:var(--accent-dark);font-style:normal;font-size:13px}.step-editor{display:grid;grid-gap:8px;gap:8px}.step-controls{display:flex;justify-content:flex-end;gap:8px}.step-controls button{min-height:30px;border:1px solid var(--line);border-radius:999px;background:#ffffff;color:var(--muted);padding:0 10px;font-size:12px;font-weight:800}.inline-edit-grid{display:grid;grid-gap:8px;gap:8px;grid-template-columns:1fr 1fr}.empty-preview{border-radius:8px;background:#fff8f3;color:var(--muted);padding:14px;line-height:1.55}.sticky-action{position:-webkit-sticky;position:sticky;bottom:16px;display:flex;justify-content:flex-end;padding-top:4px}@keyframes pulse-recording{0%,to{transform:scale(1);box-shadow:0 12px 26px rgba(47,39,37,.2)}50%{transform:scale(1.04);box-shadow:0 18px 36px rgba(47,39,37,.28)}}@media (min-width:780px){.auth-page{grid-template-columns:1fr 460px;grid-template-rows:1fr;align-items:center;padding:44px}.auth-hero{min-height:auto;justify-content:center}.recipe-grid{column-count:4}.home-header h1{font-size:42px}.subpage-header h1{font-size:44px}.photo-preview-frame{aspect-ratio:16/10}}