:root{font-family:system-ui,-apple-system,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#1f2937;background:#f8fafc;margin:0}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}.center{display:grid;place-items:center;min-height:100vh;color:#64748b}.muted{color:#64748b;font-size:.9rem}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:1rem}.auth-card{width:100%;max-width:400px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:2rem;box-shadow:0 8px 24px #0f172a0f}.auth-card h1{margin:0 0 .25rem;font-size:1.6rem}.auth-card label{display:block;margin-top:1rem;font-size:.9rem;color:#475569}.auth-card input{display:block;width:100%;margin-top:.35rem;padding:.6rem .75rem;border:1px solid #cbd5e1;border-radius:8px}.auth-card input:focus{outline:2px solid #2563eb33;border-color:#2563eb}.tabs{display:flex;gap:.5rem;margin:1.25rem 0 .5rem}.tabs button{flex:1;padding:.5rem;border:1px solid #cbd5e1;background:#f8fafc;border-radius:8px;cursor:pointer}.tabs button.active{background:#2563eb;border-color:#2563eb;color:#fff}.error{color:#dc2626;font-size:.85rem}.primary{width:100%;margin-top:1.25rem;padding:.7rem;border:0;border-radius:8px;background:#2563eb;color:#fff;cursor:pointer}.primary:disabled{opacity:.6;cursor:wait}.app-shell{min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;padding:.9rem 1.5rem;background:#fff;border-bottom:1px solid #e2e8f0}.topbar h1{font-size:1.2rem;margin:0}.user-box{display:flex;align-items:center;gap:1rem;font-size:.9rem}.user-box button{padding:.4rem .8rem;border:1px solid #cbd5e1;background:#fff;border-radius:8px;cursor:pointer}.main{padding:2rem 1.5rem;max-width:960px;margin:0 auto}.hero h2{margin:0 0 .4rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-top:2rem}.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.25rem}.card h3{margin:0 0 .5rem;font-size:1.05rem}.card-button{text-align:left;cursor:pointer;font:inherit}.card-button:hover{border-color:#2563eb;box-shadow:0 4px 12px #2563eb1f}.nav{display:flex;gap:.25rem}.nav button{padding:.4rem .9rem;border:0;background:transparent;color:#475569;border-radius:8px;cursor:pointer;font-size:.95rem}.nav button.nav-active{background:#eff6ff;color:#2563eb;font-weight:600}.toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.toolbar h2{margin:0}.toolbar button,.form-actions button,.item-actions button,.ingredient-row button,.form button{padding:.45rem .85rem;border:1px solid #cbd5e1;background:#fff;border-radius:8px;cursor:pointer;font-size:.9rem}.toolbar button:disabled,.form button:disabled,.item-actions button:disabled{opacity:.5;cursor:not-allowed}.list{display:flex;flex-direction:column;gap:.75rem;margin-top:1.25rem}.item{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:1rem}.item.compact{display:flex;align-items:center;justify-content:space-between;padding:.7rem 1rem}.item-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.item-actions{display:flex;gap:.4rem}.ingredient-list{margin:.6rem 0 0;padding-left:1.2rem;color:#475569;font-size:.9rem}.badge{display:inline-block;margin-left:.4rem;padding:.1rem .5rem;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.75rem}.status-active{background:#dcfce7;color:#166534}.status-draft{background:#fef9c3;color:#854d0e}.status-archived{background:#f1f5f9;color:#64748b}.form{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:1.25rem;margin-bottom:1.5rem}.form.compact{padding:1rem}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.9rem}.form-grid .full{grid-column:1 / -1}.form label{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;color:#475569}.form input,.form select{padding:.5rem .65rem;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.form input:focus,.form select:focus{outline:2px solid #2563eb33;border-color:#2563eb}.form-actions{display:flex;gap:.6rem;margin-top:1rem}.form-actions button[type=submit]{background:#2563eb;color:#fff;border-color:#2563eb}.ingredient-editor{border:1px dashed #cbd5e1;border-radius:10px;margin-top:1rem;padding:1rem}.ingredient-editor legend{font-size:.9rem;color:#475569;padding:0 .4rem}.ingredient-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:.6rem}.ingredient-row input,.ingredient-row select{padding:.45rem .55rem;border:1px solid #cbd5e1;border-radius:8px}.unit-adder{margin:1rem 0;padding:.5rem 0}.unit-adder summary{cursor:pointer;color:#2563eb;font-size:.9rem}.tabs{display:flex;gap:.5rem;margin-bottom:1rem;border-bottom:1px solid #e2e8f0}.tabs button{background:none;border:none;padding:.6rem 1rem;border-bottom:2px solid transparent;cursor:pointer;font-size:1rem;color:#475569}.tabs button.tab-active{color:#2563eb;border-bottom-color:#2563eb;font-weight:600}.ordering-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:1.2rem;align-items:start}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.2rem}.panel h3{margin-top:0}.panel h4{margin:1rem 0 .4rem}.panel label{display:block;margin-bottom:.7rem;font-size:.9rem;color:#475569}.panel label input,.panel label select{display:block;width:100%;max-width:420px;margin-top:.25rem;padding:.45rem .55rem;border:1px solid #cbd5e1;border-radius:8px}.row{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-bottom:.6rem}.row input,.row select{padding:.45rem .55rem;border:1px solid #cbd5e1;border-radius:8px}.dish-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.6rem;margin-bottom:1rem}.dish-tile{display:flex;flex-direction:column;gap:.25rem;text-align:left;padding:.8rem;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;cursor:pointer}.dish-tile:hover{border-color:#2563eb;background:#eff6ff}.list{list-style:none;padding:0;margin:.5rem 0}.list li{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem 0;border-bottom:1px solid #f1f5f9}.link{background:none;border:none;color:#2563eb;cursor:pointer;font-size:.85rem}.success{color:#15803d;font-size:.9rem}@media(max-width:820px){.ordering-layout{grid-template-columns:1fr}}.dish-images{margin-top:.6rem;display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.image-thumbs{display:flex;flex-wrap:wrap;gap:.4rem}.image-thumb{position:relative;display:inline-block}.image-thumb img{width:64px;height:64px;object-fit:cover;border:1px solid #e2e8f0;border-radius:8px;display:block}.image-thumb button{position:absolute;top:-6px;right:-6px;width:18px;height:18px;line-height:16px;border:0;border-radius:50%;background:#dc2626;color:#fff;font-size:12px;cursor:pointer;padding:0}.upload-label{display:inline-flex;align-items:center;padding:.35rem .7rem;border:1px dashed #94a3b8;border-radius:8px;color:#475569;font-size:.85rem;cursor:pointer}.upload-label input[type=file]{display:none}
