:root {
  --paper: #fff8e8;
  --paper-2: #fffdf4;
  --ink: #4a392f;
  --muted: #8a7465;
  --line: #e8d8bf;
  --accent: #d97059;
  --accent-2: #6aa784;
  --accent-3: #7f97c8;
  --danger: #b75d57;
  --shadow: rgba(96, 65, 42, .16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Comic Sans MS", "Segoe Print", "KaiTi", "Microsoft YaHei", cursive, sans-serif;
  background:
    linear-gradient(90deg, rgba(225, 192, 141, .16) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(225, 192, 141, .16) 1px, transparent 1px) 0 0 / 38px 38px,
    radial-gradient(circle at 12% 10%, rgba(249, 201, 182, .35), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(183, 218, 197, .35), transparent 30%),
    var(--paper);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; filter: grayscale(.25); }

.app, .admin-wrap {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.admin-wrap.narrow { width: min(820px, calc(100% - 28px)); }

.hero, .admin-top, .paper-card {
  border: 2px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255,255,255,.78), rgba(255,255,255,.78)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(126, 94, 63, .10) 30px);
  box-shadow: 0 16px 38px var(--shadow);
}

.hero, .admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px;
  margin-bottom: 18px;
}

.hero h1, .admin-top h1 {
  margin: 0 0 8px;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: .96;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 rgba(217,112,89,.16);
}

.admin-top h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.hero p, .admin-top p { margin: 0; color: var(--muted); line-height: 1.7; }

.paper-card {
  padding: 20px;
  background-color: rgba(255, 253, 244, .9);
}

.toolbar {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, minmax(150px, .4fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 244, .88);
  box-shadow: 0 12px 28px var(--shadow);
}

.field {
  width: 100%;
  border: 2px dashed rgba(138, 116, 101, .38);
  border-radius: 16px;
  padding: 11px 13px;
  background: rgba(255,255,255,.78);
}

.textarea { min-height: 92px; resize: vertical; line-height: 1.6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf2;
  box-shadow: 0 7px 0 rgba(116, 70, 52, .18);
  font-weight: 700;
  white-space: nowrap;
  transition: transform .18s ease, filter .18s ease;
}

.btn:hover { transform: translateY(-2px) rotate(-.5deg); filter: saturate(1.05); }
.btn.secondary { background: var(--accent-2); }
.btn.danger { background: var(--danger); }
.btn.ghost {
  color: var(--ink);
  background: #fff8df;
  border: 2px dashed rgba(138, 116, 101, .35);
  box-shadow: none;
}
.btn.small { min-height: 32px; padding: 6px 11px; font-size: .9rem; }

.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  align-items: start;
}

.front-stack {
  display: grid;
  gap: 18px;
}

.front-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.side {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 18px;
}

.section-line {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

.section-line.compact {
  align-items: center;
}

h2 {
  margin: 0 0 8px;
  display: inline-block;
  background: linear-gradient(transparent 60%, rgba(255,224,138,.75) 60%);
}

.muted { color: var(--muted); }
.hidden { display: none !important; }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.recipe-card {
  position: relative;
  padding: 14px;
  border: 2px solid rgba(138, 116, 101, .28);
  border-radius: 24px 18px 28px 20px;
  background: var(--paper-2);
  box-shadow: 9px 10px 0 rgba(94, 74, 47, .08);
  overflow: hidden;
  cursor: pointer;
}

.recipe-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 86px;
  height: 26px;
  background: rgba(249, 201, 182, .75);
  border: 1px dashed rgba(119, 90, 53, .26);
  transform: translateX(-50%) rotate(-2deg);
  z-index: 2;
}

.cover {
  height: 164px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(74, 57, 47, .18);
  background: #f2e6d1;
}

.cover img, .table-img, .menu-item img, .preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fallback-img {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #7b614f;
  background: #fff1d4;
  text-align: center;
  font-weight: 800;
}

.check {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 244, .94);
  border: 1px solid rgba(74, 57, 47, .18);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
  font-weight: 800;
}

.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.recipe-card h3 { margin: 13px 0 8px; font-size: 1.24rem; }
.recipe-card h3 a { text-decoration: underline; text-decoration-style: wavy; text-decoration-thickness: 1px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff0b7;
  border: 1px dashed rgba(105, 77, 55, .28);
  font-size: .84rem;
}
.tag.green { background: #dff0df; }
.tag.blue { background: #e3eafa; }

.menu-list { display: grid; gap: 10px; margin: 12px 0 16px; }
.menu-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: #fff8df;
  border: 1px dashed rgba(138, 116, 101, .35);
}

.menu-item img { width: 54px; height: 54px; border-radius: 14px; }
.menu-item strong { display: block; }
.menu-item small { color: var(--muted); }

.random-box {
  min-height: 110px;
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 16px;
  border-radius: 22px;
  border: 2px dashed rgba(217, 112, 89, .35);
  background: #fff1df;
  text-align: center;
}

.notice, .alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #e9f4e9;
  border: 2px dashed rgba(106, 167, 132, .45);
  color: #3d604b;
}

.alert {
  background: #fff0ed;
  border-color: rgba(183, 93, 87, .45);
  color: #8a3f3a;
}

.empty {
  padding: 28px;
  border: 2px dashed rgba(138, 116, 101, .35);
  border-radius: 22px;
  background: rgba(255,255,255,.55);
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: min(520px, calc(100% - 28px));
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(74, 57, 47, .95);
  color: #fff8ed;
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

dialog { width: min(720px, calc(100% - 26px)); border: 0; padding: 0; background: transparent; }
dialog::backdrop { background: rgba(74, 57, 47, .35); backdrop-filter: blur(3px); }
.dialog-inner { box-shadow: 0 24px 60px rgba(0,0,0,.25); }

.admin-body {
  display: grid;
  place-items: center;
  padding: 18px;
}
.login-card { width: min(460px, 100%); }
.login-card form, .admin-form { display: grid; gap: 14px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat strong { display: block; font-size: 2.2rem; color: var(--accent); }
.stat span { color: var(--muted); }

.table-wrap { overflow: auto; max-height: 680px; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th, td { padding: 12px 10px; border-bottom: 1px dashed rgba(138, 116, 101, .32); text-align: left; vertical-align: middle; }
th { color: #5f4738; background: rgba(255, 240, 183, .45); }
.table-img { width: 72px; height: 58px; border-radius: 12px; background: #f4ddbc; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form { display: inline; }

.filter-form, .inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, .35fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.upload-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.preview-box {
  min-height: 120px;
  border: 2px dashed rgba(138, 116, 101, .32);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.5);
}
.preview-box img { max-height: 240px; object-fit: cover; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== AI 提取 ===== */
.ai-extract-card {
  border-color: rgba(106, 167, 132, .35);
  background:
    linear-gradient(rgba(255,253,244,.9), rgba(255,253,244,.9)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(106,167,132,.07) 30px);
}
.ai-extract-card h2 {
  background: linear-gradient(transparent 60%, rgba(106, 167, 132, .25) 60%);
}
.ai-extract-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.ai-extract-row .btn {
  white-space: nowrap;
}

.batch-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 240, 183, .35);
  border: 1px dashed rgba(138, 116, 101, .3);
}
.batch-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}
.batch-select-all input { width: 18px; height: 18px; accent-color: var(--accent); }

.recipe-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.detail-cover {
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(74, 57, 47, .18);
  background: #f2e6d1;
}
.detail-cover img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.detail-video { width: 100%; height: 100%; min-height: 340px; object-fit: contain; display: block; background: #2a2018; }
.video-preview { width: 100%; max-height: 320px; border-radius: 18px; overflow: hidden; background: #2a2018; display: block; }
.video-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.media-section { margin-bottom: 16px; }

/* 视频徽章 */
.cover-video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(217, 112, 89, .92);
  color: #fff;
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
  letter-spacing: 1px;
}
.cover { position: relative; }
.dish-video-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(217, 112, 89, .92);
  color: #fff;
  font-size: .62rem;
  padding: 2px 6px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
}
.dish-thumb { position: relative; }

/* 多图轮播 */
.carousel-cover { padding: 0; }
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
}
.carousel-track {
  display: flex;
  transition: transform .4s ease;
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  min-height: 340px;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(74, 57, 47, .55);
  color: #fff;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 3;
}
.carousel-btn:hover { background: rgba(74, 57, 47, .8); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dot.active { background: #fff; transform: scale(1.25); }
.carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(74, 57, 47, .55);
  color: #fff;
  font-size: .78rem;
  padding: 3px 12px;
  border-radius: 20px;
  z-index: 3;
  pointer-events: none;
}

/* 多图管理列表 */
.image-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.image-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  position: relative;
}
.image-item-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-item img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.image-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cover-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: var(--accent-2);
  color: #fff;
  font-size: .68rem;
  padding: 2px 10px;
  border-radius: 20px;
}

/* 媒体库 */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.media-item {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  background: var(--paper-2);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.media-check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(255,255,255,.85);
  border-radius: 6px;
  padding: 2px 4px;
}
.media-check input { width: 16px; height: 16px; cursor: pointer; }
.media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f0ebe5;
}
.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.media-type-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(217, 112, 89, .9);
  color: #fff;
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 10px;
}
.media-type-badge.image { background: rgba(108, 156, 104, .9); }
.media-info {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--muted);
}
.media-actions {
  display: flex;
  gap: 6px;
}
.media-actions .btn { flex: 1; text-align: center; }
.alert.success { background: #e8f5e9; border-color: #81c784; color: #2e7d32; }
.detail-tags { margin-top: 14px; }
.note-box {
  margin-top: 16px;
  padding: 15px;
  border-radius: 20px;
  background: #fff8df;
  border: 2px dashed rgba(138, 116, 101, .32);
}
.note-box p { margin: 0; line-height: 1.8; }
.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 8px 0 22px;
  list-style: none;
}
.ingredient-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff0b7;
  border: 1px dashed rgba(105, 77, 55, .28);
}
.step-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.step-list li {
  counter-increment: steps;
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  border: 2px dashed rgba(138, 116, 101, .28);
}
.step-list li span { font-weight: 800; color: var(--accent); }
.step-list li p { margin: 0; line-height: 1.8; }
.step-editor { display: grid; gap: 10px; }
.step-editor-list { display: grid; gap: 10px; }
.step-editor-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: start;
}
.step-order-field { text-align: center; }

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #fff1d4;
}

/* ===== 餐厅风格菜单页 ===== */
.restaurant-menu {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 36px 36px;
  border: 3px double var(--line);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255,253,244,.92), rgba(255,253,244,.92)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(126,94,63,.07) 30px);
  box-shadow: 0 16px 38px var(--shadow);
}

.restaurant-menu::before {
  content: "";
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px dashed rgba(138,116,101,.22);
  border-radius: 14px;
  pointer-events: none;
}

.menu-header {
  text-align: center;
  margin-bottom: 34px;
}

.menu-title {
  display: inline-block;
  position: relative;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: .15em;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 rgba(217,112,89,.14);
}

.menu-title::before,
.menu-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42px;
  height: 2px;
  background: var(--accent);
  opacity: .55;
}

.menu-title::before { right: 100%; margin-right: 14px; }
.menu-title::after  { left: 100%;  margin-left: 14px; }

.menu-date {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: .08em;
}

.menu-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.menu-body {
  display: grid;
  gap: 30px;
}

.menu-section-title {
  text-align: center;
  font-size: 1.55rem;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(217,112,89,.28);
}

.menu-section-title::before,
.menu-section-title::after {
  content: "❀";
  color: var(--accent);
  font-size: .72em;
  margin: 0 10px;
  opacity: .45;
}

.menu-dishes {
  display: grid;
  gap: 14px;
}

.menu-dish {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(138,116,101,.22);
  background: rgba(255,255,255,.52);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.menu-dish:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  border-color: rgba(217,112,89,.32);
}

.dish-thumb {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(74,57,47,.14);
  background: #f2e6d1;
}

.dish-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.dish-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dish-name {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(217,112,89,.4);
}

.dish-ingredients {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.dish-difficulty {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: #e3eafa;
  border: 1px dashed rgba(105,77,55,.18);
  font-size: .8rem;
  width: fit-content;
}

.dish-arrow {
  font-size: .85rem;
  color: var(--accent);
  white-space: nowrap;
  opacity: .7;
}

.menu-footer {
  text-align: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px dashed rgba(138,116,101,.22);
}

.menu-slogan {
  color: var(--muted);
  font-size: 1.08rem;
  letter-spacing: .2em;
  margin: 0 0 18px;
}

.menu-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 已失效页面 ===== */
.expired-card {
  max-width: 480px;
  margin: 80px auto;
  padding: 48px 32px;
  text-align: center;
  border: 3px double var(--line);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255,253,244,.92), rgba(255,253,244,.92)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(126,94,63,.07) 30px);
  box-shadow: 0 16px 38px var(--shadow);
}

.expired-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.expired-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.expired-card p {
  margin: 0 0 24px;
  line-height: 1.8;
}

@media (max-width: 1050px) {
  .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-grid { grid-template-columns: 1fr; }
  .recipe-detail-grid { grid-template-columns: 1fr; }
  .front-feature-grid { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero, .admin-top, .section-line { align-items: flex-start; flex-direction: column; }
  .toolbar, .side, .stats-grid, .upload-box, .front-feature-grid, .filter-form, .inline-form, .step-editor-row, .ai-extract-row { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: 1fr; }
  .cover { height: 205px; }
  .admin-top nav { display: flex; gap: 8px; flex-wrap: wrap; }
  .restaurant-menu { padding: 28px 16px 22px; }
  .menu-title::before, .menu-title::after { width: 24px; }
  .menu-dish { grid-template-columns: 60px 1fr; gap: 10px; padding: 10px; }
  .dish-thumb { width: 60px; height: 60px; }
  .dish-name { font-size: 1.1rem; }
  .dish-arrow { grid-column: 1 / -1; text-align: right; }
  .menu-section-title { font-size: 1.3rem; }
}
