*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:#1a1a1a;background:#f5f5f2;line-height:1.5;min-height:100vh}.app-header{background:#fff;border-bottom:1px solid #e0e0db;position:sticky;top:0;z-index:100}.app-header-inner{max-width:1400px;margin:0 auto;padding:0 1.5rem;height:52px;display:flex;align-items:center;justify-content:space-between}.app-title{font-size:1.1rem;font-weight:700;color:#1a1a1a}.site-link{font-size:.875rem;color:#5c6bc0}.app-main{max-width:1400px;margin:0 auto;padding:1.5rem}.editor-layout{display:grid;grid-template-columns:380px 1fr;gap:1.5rem;align-items:start;min-height:calc(100vh - 52px - 3rem)}@media (max-width: 900px){.editor-layout{grid-template-columns:1fr}}.json-panel{background:#fff;border:1px solid #e0e0db;border-radius:8px;display:flex;flex-direction:column;gap:0;position:sticky;top:68px;max-height:calc(100vh - 80px);overflow:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid #e0e0db;background:#fafaf8}.panel-header h2{font-size:.95rem;font-weight:700;color:#444}.panel-actions{display:flex;gap:.5rem}.json-textarea{flex:1;width:100%;min-height:320px;padding:1rem;border:none;border-radius:0;font-family:Fira Code,Cascadia Code,Consolas,monospace;font-size:.8rem;line-height:1.5;resize:vertical;color:#1a1a1a;background:#fefefe;outline:none}.error-box{padding:.75rem 1rem;background:#fff5f5;border-top:1px solid #fecaca;color:#b91c1c;font-size:.825rem}.error-box ul{list-style:disc;padding-left:1.25rem;margin-top:.25rem}.error-box li{margin-bottom:.2rem}.panel-footer-actions{display:flex;gap:.5rem;padding:.75rem 1rem;border-top:1px solid #e0e0db;background:#fafaf8;flex-wrap:wrap}.form-panel{display:flex;flex-direction:column;gap:1rem}.form-section{background:#fff;border:1px solid #e0e0db;border-radius:8px;padding:1.25rem}.form-section legend{font-size:.875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#666;padding:0 .5rem;margin-bottom:.5rem}.form-row{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.75rem}.form-row:last-child{margin-bottom:0}.form-row-split{display:grid;grid-template-columns:1fr 1fr;gap:1rem;flex-direction:unset;margin-bottom:.75rem}.form-label{font-size:.8rem;font-weight:600;color:#555}.optional{font-weight:400;color:#999}.form-input{width:100%;padding:.4em .6em;border:1px solid #ccc;border-radius:4px;font-size:.9rem;font-family:inherit;color:#1a1a1a;background:#fff;transition:border-color .15s}.form-input:focus{outline:none;border-color:#5c6bc0;box-shadow:0 0 0 2px #5c6bc026}.form-textarea{resize:vertical;min-height:60px}.form-select{padding:.4em .5em;border:1px solid #ccc;border-radius:4px;font-size:.875rem;font-family:inherit;background:#fff}.help-text{font-size:.78rem;color:#999;margin-top:-.25rem}.tag-editor{display:flex;flex-direction:column;gap:.5rem}.tag-chip-list{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none}.tag-chip{display:inline-flex;align-items:center;gap:.3rem;padding:.2em .5em;background:#eef0fc;color:#3949ab;border-radius:999px;font-size:.8rem;font-weight:500}.tag-chip-remove{background:none;border:none;cursor:pointer;color:#7986cb;font-size:1rem;line-height:1;padding:0}.tag-chip-remove:hover{color:#b91c1c}.tag-add-row{display:flex;gap:.5rem}.tag-input{flex:1;max-width:200px}.timing-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}.sub-group{border:1px solid #e8e8e4;border-radius:6px;padding:1rem;margin-bottom:1rem;background:#fafaf8}.sub-group-header{display:flex;gap:.5rem;align-items:center;margin-bottom:.75rem}.group-heading-input{flex:1}.ingredient-table{display:grid;gap:.4rem;margin-bottom:.5rem}.ingredient-table-header{display:grid;grid-template-columns:60px 80px 1fr 120px 60px 80px;gap:.3rem;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#999;padding:0 .1rem}.ingredient-row{display:grid;grid-template-columns:60px 80px 1fr 120px 60px 80px;gap:.3rem;align-items:center}.scalable-check{justify-self:center;width:16px;height:16px;cursor:pointer}.step-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:.5rem}.step-row{display:grid;grid-template-columns:28px 1fr auto;gap:.5rem;align-items:start}.step-row-num{width:28px;height:28px;background:#e8eafc;color:#3949ab;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;margin-top:.25rem;flex-shrink:0}.step-row-content{display:flex;flex-direction:column;gap:.4rem}.step-row-meta{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.meta-label{font-size:.75rem;color:#888;font-weight:600}.meta-input{width:80px}.meta-input-sm{width:60px}.row-actions{display:flex;gap:.2rem;align-items:center}.row-actions-vertical{flex-direction:column;padding-top:.25rem}.note-row{display:flex;gap:.5rem;align-items:center;margin-bottom:.5rem}.btn{display:inline-flex;align-items:center;justify-content:center;padding:.4em .85em;border-radius:5px;border:1px solid transparent;font-size:.875rem;font-family:inherit;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:#3949ab;color:#fff;border-color:#3949ab}.btn-primary:hover:not(:disabled){background:#283593;border-color:#283593}.btn-secondary{background:#f0f0ed;color:#333;border-color:#d0d0cc}.btn-secondary:hover:not(:disabled){background:#e2e2de}.btn-danger{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}.btn-danger:hover:not(:disabled){background:#fca5a5}.btn-sm{font-size:.8rem;padding:.3em .65em}.btn-icon{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;background:#f0f0ed;border:1px solid #d0d0cc;border-radius:4px;cursor:pointer;font-size:.875rem;color:#555;padding:0}.btn-icon:hover:not(:disabled){background:#e2e2de}.btn-icon:disabled{opacity:.3;cursor:not-allowed}.btn-icon-danger{color:#b91c1c;background:#fff5f5;border-color:#fca5a5}.btn-icon-danger:hover:not(:disabled){background:#fee2e2}
