:root {
  --orange: #FF6B35;
  --red: #E63946;
  --yellow: #F4A261;
  --green-dark: #2D5016;
  --green: #4A7C59;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --gray-dark: #2B2B2B;
  --gray: #4A4A4A;
  --gray-light: #F5F5F5;
  --border: #E0E0E0;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(43, 43, 43, 0.08);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-dark);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 107, 53, 0.14), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(74, 124, 89, 0.10), transparent 55%),
    var(--cream);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(43, 43, 43, 0.06);
}

.header-inner {
  width: 100%;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.75rem;
  min-width: 0;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
  position: relative;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.site-nav a:hover,
.site-nav a.is-current { color: var(--orange); }
.site-nav a:hover::after,
.site-nav a.is-current::after { transform: scaleX(1); }

[v-cloak] { display: none !important; }

.recipe-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fav-btn {
  border: 0;
  background: var(--gray-light);
  color: var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform .15s, background .15s, color .15s;
}

.fav-btn:hover { transform: scale(1.08); }
.fav-btn.is-active {
  background: rgba(230, 57, 70, 0.12);
  color: var(--red);
}

.explorer-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.toolbar-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toolbar-field input,
.toolbar-field select {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: var(--cream);
  color: var(--gray-dark);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
}

.check-row input {
  margin-top: 0.2rem;
  accent-color: var(--orange);
  width: 1.05rem;
  height: 1.05rem;
}

.muted { color: var(--gray); font-weight: 600; font-family: var(--font-body); }
.hero-actions { margin-top: 1.25rem; }
.owner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; }
.owner-delete { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin: 0; }
.owner-actions .check-row { color: white; margin: 0; }
.step-editor__preview, .share-cover-preview { display: block; width: 140px; height: 96px; object-fit: cover; border-radius: 8px; margin: 0.45rem 0; }

.btn--ghost-dark {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}

.newsletter {
  background: linear-gradient(100deg, rgba(255, 107, 53, 0.12), rgba(74, 124, 89, 0.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.newsletter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.newsletter__inner h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.35rem;
}

.newsletter__inner p { margin: 0; color: var(--gray); }

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  position: relative;
}

.newsletter__form input {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  min-width: min(280px, 70vw);
  font: inherit;
  background: white;
}

.newsletter__error {
  position: absolute;
  left: 0;
  bottom: -1.4rem;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
}

.newsletter__ok {
  font-weight: 700;
  color: var(--green-dark);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.25rem 0.25rem 0.9rem;
}

.header-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 9rem;
  font: inherit;
}

.header-search button {
  border: 0;
  background: var(--orange);
  color: white;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gray-dark);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--green-dark);
  background-size: cover;
  background-position: center;
  animation: heroShift 18s ease-in-out infinite alternate;
}

@keyframes heroShift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  max-width: 720px;
  margin-left: max(1rem, calc((100% - 1120px) / 2));
  animation: riseIn .8s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  max-width: 16ch;
}

.hero__lead {
  font-size: 1.15rem;
  max-width: 36ch;
  opacity: 0.95;
  margin: 1rem 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius);
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn--danger { background: #9c341f; color: white; }
.btn--danger:hover { background: #7d2918; }
.profile-delete { margin-top: 1.5rem; }
.profile-delete h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }

.btn--primary { background: var(--orange); color: white; }
.btn--primary:hover { background: #e85a28; }
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.65);
  color: white;
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--block { width: 100%; }

/* Sections */
.section { padding: 4rem 0; }
.section--tint { background: rgba(255,255,255,0.55); }
.section-head { margin-bottom: 1.75rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--gray); margin: 0; }
.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  max-width: none;
}

.text-link {
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 0.35rem;
}
.eyebrow--light { color: rgba(255,255,255,0.85); }

.category-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.category-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  min-height: 110px;
  transition: border-color .15s, transform .15s;
}

.category-chip:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.category-chip__icon { font-size: 1.4rem; }
.category-chip small { color: var(--gray); }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.recipe-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease;
  animation: cardIn .5s ease both;
}

.recipe-card:hover { transform: translateY(-4px); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.recipe-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-light);
}

.recipe-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.recipe-card:hover .recipe-card__media img { transform: scale(1.05); }

.recipe-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: white;
}

.recipe-card__placeholder[data-tone="0"] { background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.recipe-card__placeholder[data-tone="1"] { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.recipe-card__placeholder[data-tone="2"] { background: linear-gradient(135deg, var(--red), var(--orange)); }
.recipe-card__placeholder[data-tone="3"] { background: linear-gradient(135deg, var(--yellow), var(--green)); }

.recipe-card__body { padding: 1rem 1.1rem 1.2rem; }
.recipe-card__body h3 { font-size: 1.15rem; }
.recipe-card__body h3 a:hover { color: var(--orange); }
.recipe-card__desc {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0.4rem 0 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
}

.catalog-gate {
  margin-top: 1.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.catalog-gate h2 { font-size: 1.35rem; margin: 0 0 0.4rem; }
.catalog-gate p { color: var(--gray); margin: 0 0 1rem; }
.catalog-gate__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.cta-band {
  margin: 1rem 0 0;
  background: linear-gradient(115deg, var(--green-dark), var(--green) 55%, #3d6b4a);
  color: white;
}

.cta-band__inner {
  padding: 3.5rem 0;
  max-width: 40rem;
}

.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { opacity: 0.92; margin: 0.75rem 0 1.5rem; }

/* Page hero */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, rgba(255,107,53,0.08), transparent);
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: var(--gray); max-width: 40rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.breadcrumb a { color: var(--orange); font-weight: 600; }
.breadcrumb--light,
.breadcrumb--light a { color: rgba(255,255,255,0.9); }

.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  max-width: 560px;
}

.search-bar input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font: inherit;
  background: white;
}

.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 2rem;
}

.filters {
  min-width: 0;
}

.filters h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.filter-link {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--gray);
  font-weight: 600;
}

.filter-link:hover,
.filter-link.is-active {
  background: rgba(255, 107, 53, 0.12);
  color: var(--orange);
}

.filters hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.85rem 0;
}

.result-count {
  color: var(--gray);
  font-weight: 600;
  margin: 0 0 1rem;
}

.empty-note {
  background: white;
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  color: var(--gray);
}

/* Recipe detail */
.recipe-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
}

.recipe-hero__img,
.recipe-hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-hero__fallback {
  background:
    linear-gradient(135deg, var(--green-dark), var(--orange) 70%, var(--yellow));
}

.recipe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,43,43,0.15), rgba(43,43,43,0.78));
}

.recipe-hero__copy {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2.5rem;
  max-width: 760px;
}

.recipe-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.recipe-hero__desc { max-width: 50ch; opacity: 0.95; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.stat-row span {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}

.recipe-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
}

.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  gap: 0.55rem;
}

.ingredient-list li {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  counter-reset: none;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.step-list__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step-list p { margin: 0.25rem 0 0; }

.step-list__img,
.comment-list__img {
  display: block;
  width: min(100%, 420px);
  margin-top: 0.75rem;
  border-radius: 12px;
}

.step-editor-block { display: grid; gap: 0.85rem; }
.step-editor-block h2 { font-size: 1.15rem; margin: 0; }

.step-editor {
  display: grid;
  gap: 0.55rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem;
}

.step-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-editor__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: grid;
  place-items: center;
}

.step-editor__remove {
  border: 0;
  background: transparent;
  color: #8a4b3a;
  cursor: pointer;
}

.step-editor__file { font-size: 0.92rem; }

.feedback { margin-top: 2rem; }
.feedback h2 { margin-bottom: 0.4rem; }

.star-row { display: flex; gap: 0.25rem; margin: 0.6rem 0 0; }

.star-btn {
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: #d7c3b4;
  cursor: pointer;
  padding: 0 0.1rem;
}

.star-btn.is-on { color: #e07a2f; }

.comment-form { display: grid; gap: 0.7rem; margin: 0.8rem 0 1.2rem; }

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.comment-list li {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.comment-list p { margin: 0.35rem 0 0; }

.aside-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.aside-block h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.aside-block dl { margin: 0; display: grid; gap: 0.55rem; }
.aside-block dl div { display: flex; justify-content: space-between; gap: 1rem; }
.aside-block dt { color: var(--gray); }
.aside-block dd { margin: 0; font-weight: 700; }

.share-url {
  font-size: 0.85rem;
  word-break: break-all;
  background: var(--gray-light);
  border-radius: 10px;
  padding: 0.75rem;
  color: var(--gray);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-cloud span {
  background: rgba(255, 107, 53, 0.12);
  color: var(--orange);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
}

.category-card__icon { font-size: 1.8rem; }
.category-card h2 { font-size: 1.25rem; margin-top: 0.5rem; }
.category-card p { color: var(--gray); margin: 0.25rem 0 0; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }
.prose p { color: var(--gray); }
.prose code {
  background: rgba(255,107,53,0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  color: var(--orange);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font: inherit;
}

.contact-aside {
  background: rgba(45, 80, 22, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
}

.notice {
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

.notice--ok {
  background: rgba(74, 124, 89, 0.15);
  color: var(--green-dark);
  border: 1px solid rgba(74, 124, 89, 0.35);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--gray-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}

.site-footer a {
  display: block;
  margin: 0.4rem 0;
  color: rgba(255,255,255,0.85);
}

.site-footer a:hover { color: var(--yellow); }
.brand--footer { color: white; margin-bottom: 0.75rem; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  color: rgba(255,255,255,0.55);
}

.nav-cta {
  background: var(--orange);
  color: white !important;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.nav-cta::after { display: none !important; }

.inline-form { margin: 0; }
.inline-form button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  padding: 0;
}

.contact-form select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: white;
}

.lang-switch {
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}

.account-menu {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
}

.account-menu__toggle {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray);
  cursor: pointer;
  padding: 0.35rem 0;
}

.account-menu__toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
}

.account-menu__toggle:hover,
.account-menu.is-open .account-menu__toggle { color: var(--orange); }

.account-menu__panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  z-index: 70;
}

.account-menu.is-open .account-menu__panel { display: block; }

.account-menu__lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
}

.account-menu__lang label {
  font-weight: 600;
  color: var(--gray);
}

.account-menu__lang select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.35rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  background: white;
  cursor: pointer;
}

.account-menu__name {
  margin: 0;
  padding: 0.55rem 0.7rem 0.35rem;
  font-weight: 700;
  color: var(--gray-dark);
}

.account-menu__panel > a,
.account-menu__logout button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--gray);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
}

.account-menu__panel > a:hover,
.account-menu__logout button:hover {
  background: var(--gray-light);
  color: var(--orange);
}

.account-menu__logout { margin: 0; }

.lang-switch select {
  width: 3.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.1rem 0.3rem 0.35rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  background: white;
  cursor: pointer;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.oauth-panel {
  display: grid;
  gap: 0.75rem;
}

.oauth-or {
  margin: 0;
  font-weight: 700;
  color: var(--gray);
}

.oauth-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 700;
}

.oauth-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.oauth-btn:hover { border-color: var(--orange); color: var(--orange); }

.form-error {
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 1.25rem;
}

.admin-nav a { font-weight: 700; }
.admin-nav a.is-current { color: var(--orange); }

.log-panel {
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.log-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.log-panel__head h2 { font-size: 1.2rem; margin: 0; }
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.log-list li {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}
.log-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.log-list p { margin: 0.15rem 0 0; }

.admin-message { white-space: pre-wrap; max-width: 36rem; }

.place-filter {
  display: grid;
  gap: 0.7rem;
  margin: 0.4rem 0 1.25rem;
  min-width: 0;
}

.place-filter label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
  min-width: 0;
}

.place-filter select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: white;
  max-width: 100%;
}

.filters .place-filter select {
  width: 0;
  min-width: 100%;
}

.filters .place-filter .btn {
  width: 100%;
}

.place-lead { margin: 0 0 0.4rem; color: var(--gray); font-size: 0.9rem; }

.rules-card {
  max-width: 760px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.5rem 1.2rem;
}

.rules-card ol {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.rules-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.rules-note { margin: 0.9rem 0 0; color: var(--gray); }

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.8rem 1rem;
  margin-bottom: 1.25rem;
}

.admin-date {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem;
}

.admin-date label,
.admin-upload label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

.admin-date input,
.admin-upload input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: white;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th { font-size: 0.85rem; color: var(--gray); }

.admin-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tr-back {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.tr-layout {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.tr-langs {
  display: grid;
  gap: 0.15rem;
  max-height: 70vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.tr-langs p {
  margin: 0.8rem 0 0.25rem;
  color: var(--gray);
  font-size: 0.85rem;
  font-weight: 700;
}

.tr-langs a {
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
}

.tr-langs a.is-filled { font-weight: 700; }
.tr-langs a.is-current {
  background: white;
  color: var(--orange);
}

.tr-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.tr-panel {
  display: grid;
  gap: 0.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
}

.tr-panel h2 { margin: 0; font-size: 1.05rem; }
.tr-json {
  display: grid;
  gap: 0.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.tr-json h2 { margin: 0; font-size: 1.05rem; }
.tr-json form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; }
.tr-json form label:not(.tr-scope) { display: grid; gap: 0.3rem; font-weight: 700; }
.tr-json input[type="file"] {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: white;
}
.tr-scope { display: flex; gap: 0.4rem; align-items: center; font-weight: 700; margin: 0; }
.tr-scope input { accent-color: var(--orange); }

.tr-translate { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tr-translate form { display: block; }
.tr-translate .btn { margin: 0; }
.tr-panel > form { display: grid; gap: 0.75rem; }
.tr-panel p { margin: 0; }
.tr-label { color: var(--gray); font-size: 0.85rem; font-weight: 700; }
.tr-copy { white-space: pre-wrap; }

.tr-source-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.tr-panel label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.tr-panel input,
.tr-panel textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-weight: 400;
  width: 100%;
}

.tr-line {
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
}

.tr-line span { padding-top: 0.7rem; color: var(--gray); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.share-form { max-width: 760px; }

.auth-switch { margin: 0; }
.auth-switch a { color: var(--orange); font-weight: 700; }
.auth-switch .btn { color: white; margin-right: 0.85rem; }

/* Responsive */
@media (max-width: 900px) {
  .header-search { display: none; }
  .explorer-toolbar { grid-template-columns: 1fr 1fr; }
  .layout-sidebar,
  .recipe-layout,
  .contact-wrap,
  .footer-grid,
  .auth-layout,
  .form-grid,
  .tr-layout,
  .tr-pair {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: flex; }
  .account-menu { margin-left: 0.65rem; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.65rem 0.25rem; }

  .hero__content {
    margin-left: 1rem;
    width: calc(100% - 2rem);
  }

  .explorer-toolbar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
