:root { --accent: #e35b2f; --bg: #fff; --text: #222; --muted: #777; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; color: var(--text); background: var(--bg); }
header { background: var(--accent); color: #fff; padding: .7rem 1rem; }
header h1 { margin: 0; font-size: 1.2rem; cursor: pointer; }
main { max-width: 720px; margin: 0 auto; padding: 1rem; }
input, textarea, button { font-size: 1rem; padding: .6rem .8rem; border-radius: 8px; border: 1px solid #ccc; }
textarea { width: 100%; margin-bottom: .5rem; }
input:not([type="file"]):not([type="checkbox"]) { width: 100%; margin-bottom: .5rem; }
button { background: var(--accent); color: #fff; border: none; cursor: pointer; width: auto; }
button.back { background: none; color: var(--accent); padding-left: 0; }
button.danger { background: #c0392b; margin-top: 1.5rem; }
.tabs { display: flex; gap: .3rem; margin-bottom: .8rem; }
.tab { background: #eee; color: var(--text); flex: 1; }
.tab.active { background: var(--accent); color: #fff; }
.submit-row { display: flex; gap: .5rem; }
.submit-row input { flex: 1; margin-bottom: 0; }
.row2 { display: flex; gap: .5rem; }
.hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 .6rem; }
#search { width: 100%; margin: 1rem 0; }
.card { display: flex; gap: .8rem; align-items: center; padding: .6rem; border-radius: 10px; cursor: pointer; }
.card:hover { background: #f6f6f6; }
.card img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.card small { display: block; color: var(--muted); }
.hero { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.meta, .source { color: var(--muted); }
.ingredients { list-style: none; padding: 0; }
.ingredients li { padding: .25rem 0; }
.steps li { margin-bottom: .6rem; line-height: 1.5; }
.err { color: #c0392b; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chip { background: #eee; color: var(--text); padding: .35rem .8rem; font-size: .9rem; border-radius: 999px; }
.chip.active { background: var(--accent); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.btn-row .danger { margin-top: 0; margin-left: auto; }
button.secondary { background: #eee; color: var(--text); }
.share-info { background: #fdf1ec; border-radius: 8px; padding: .5rem .8rem; font-size: .9rem; }
.photo-label { display: block; margin: .8rem 0; }
select { font-size: 1rem; padding: .6rem .8rem; border-radius: 8px; border: 1px solid #ccc; flex: 1; }
.row2 input, .row2 select { margin-bottom: .5rem; }
.gallery { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.gallery img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.thumb { position: relative; }
.thumb-btns { position: absolute; top: 2px; right: 2px; display: flex; gap: 2px; }
.mini { padding: .1rem .45rem; font-size: .9rem; border-radius: 6px; background: rgba(0,0,0,.55); }
.mini.active { background: var(--accent); }
details.extra { margin: .6rem 0; }
details.extra summary { cursor: pointer; color: var(--accent); font-size: .95rem; }
details.extra textarea { margin-top: .5rem; }
@media (max-width: 480px) { main { padding: .7rem; } }
