.admin { padding: 28px 0 60px; max-width: 860px; }
.admin-tag { background: var(--saffron-soft); padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.admin h1 { font-size: 36px; margin-bottom: 8px; }
.admin h2 { font-size: 24px; margin: 32px 0 12px; display: flex; gap: 10px; align-items: center; }
.admin .count { background: var(--ink); color: var(--paper); border-radius: 999px; font-size: 15px; padding: 1px 10px; font-family: var(--sans); }
.admin .head { display: flex; justify-content: space-between; align-items: center; }
.admin .link { background: none; border: 0; color: var(--clay); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.auth { max-width: 420px; margin: 40px auto; display: grid; gap: 14px; }
.list { display: grid; gap: 10px; }
.item { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); text-decoration: none; }
.item img, .item .noimg { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; background: var(--paper-2); display: grid; place-items: center; font-size: 28px; }
.item b { display: block; font-size: 19px; }
.item small { color: var(--ink-soft); }
.flash { background: var(--saffron-soft); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.error { color: var(--clay); font-weight: 700; margin: 0; }
.empty, .hint, .meta { color: var(--ink-soft); }
.status { font-weight: 700; }
.s-pending { color: var(--clay); }
.s-approved { color: var(--olive); }
.edit { display: grid; gap: 14px; }
.edit .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.admin label, .form label { display: grid; gap: 4px; font-weight: 700; }
.admin label small, .form label small { font-weight: 400; color: var(--ink-soft); }
.admin input:not([type=checkbox]), .admin select, .admin textarea,
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.admin textarea, .form textarea { line-height: 1.6; resize: vertical; }
.admin input:focus, .admin textarea:focus, .admin select:focus,
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--saffron); outline-offset: 1px; }
.admin .check { display: flex; gap: 8px; font-weight: 400; align-items: center; }
.photo img { max-height: 240px; border-radius: 10px; margin-bottom: 6px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn.danger { background: transparent; border-color: var(--clay); color: var(--clay); }
@media (max-width: 640px) { .edit .row { grid-template-columns: 1fr; } }

/* ───── טופס שליחה באתר ───── */
.form-wrap { max-width: 760px; }
.form { display: grid; gap: 16px; }
.type-switch { margin-bottom: 18px; }
.type-switch .chip { text-decoration: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 700; margin-bottom: 6px; }
.ing-head, .ing-row { display: grid; grid-template-columns: 1fr 80px 110px 34px; gap: 8px; }
.ing-head { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }
.ing-row { margin-bottom: 8px; }
.ing-del { border: 0; background: var(--paper-2); color: var(--ink-soft); border-radius: 50%; width: 34px; height: 34px; align-self: center; font-size: 20px; cursor: pointer; }
.btn.small { padding: 6px 14px; font-size: 15px; border-width: 1.5px; }
.form-error { color: var(--clay); font-weight: 700; margin: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.story-author { color: var(--olive); font-weight: 700; margin: -18px 0 24px; }
.story-add { border: 2px dashed var(--saffron); background: transparent; box-shadow: none; }
.nav a.nav-add { background: var(--saffron); color: #2A241F; }
.nav a.nav-add:hover, .nav a.nav-add.active { background: var(--saffron); filter: brightness(.95); }
.missing-list a { text-decoration: none; }
.missing-list a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .ing-head, .ing-row { grid-template-columns: 1fr 56px 76px 30px; gap: 6px; }
  .ing-row input { padding: 8px; }
}
@media (max-width: 440px) {
  .brand-text { display: none; }
}
.recipe-head .by { display: block; }

/* ───── מצב מנהל ───── */
.admin-bar { background: var(--ink); color: var(--paper); text-align: center; font-size: 15px; padding: 6px 16px; }
.admin-bar a { color: var(--saffron); font-weight: 700; }
.edit-btn { margin: 4px 0 10px; text-decoration: none; background: var(--saffron); border-color: var(--saffron); color: #2A241F; }
.footer-admin { margin: 14px 0 0; font-size: 14px; }
.footer-admin a { color: var(--ink-soft); }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.form .photo img { max-height: 220px; border-radius: 10px; margin-bottom: 6px; }
