﻿@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Manrope:wght@400;600;700&display=swap");

:root {
  --bg: #f6efe6;
  --surface: #fff9f2;
  --ink: #1d1712;
  --muted: #6f6258;
  --accent: #d96a3d;
  --accent-2: #2f8f7a;
  --stroke: #eadccf;
  --shadow: 0 24px 60px rgba(29, 23, 18, 0.15);
  --shadow-soft: 0 10px 30px rgba(29, 23, 18, 0.12);
  --scroll-track: rgba(255, 249, 242, 0.15);
  --scroll-thumb: rgba(111, 98, 88, 0.35);
  --scroll-thumb-hover: rgba(111, 98, 88, 0.55);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}


body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff4e6 0%, var(--bg) 45%, #efe2d2 100%);
  min-height: 100vh;
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(217, 106, 61, 0.12), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(47, 143, 122, 0.12), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(217, 106, 61, 0.08), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: transparent;
  color: #fff9f2;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: none;
  border: none;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.35);
  transform-origin: center;
  display: block;
}

.logo-link {
  text-decoration: none;
  display: inline-flex;
}

.logo-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 106, 61, 0.2);
  border-radius: 16px;
}

.brand-name {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 143, 122, 0.16);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 12px;
}

.ghost {
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.8);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-block {
  width: 100%;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-top: 24px;
}

.intro h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(30px, 4vw, 48px);
  margin: 0 0 12px;
}

.lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.kitchen-mood {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.kitchen-mood::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(217, 106, 61, 0.15), transparent 70%);
}

.mood-visual {
  width: 110px;
  height: 110px;
  position: relative;
  display: grid;
  place-items: center;
}

.mood-plate {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #f1d5bd);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.7);
}

.mood-steam {
  position: absolute;
  width: 12px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(217, 106, 61, 0), rgba(217, 106, 61, 0.6));
  top: 8px;
  left: 40%;
  animation: float 3s ease-in-out infinite;
}

.mood-steam.two {
  left: 56%;
  animation-delay: 0.6s;
}

.mood-leaf {
  position: absolute;
  width: 20px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: #7bbf8b;
  top: 10px;
  right: 6px;
  transform: rotate(25deg);
}

.mood-spice {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f1c27d;
  bottom: 14px;
  left: 6px;
  box-shadow: 18px -8px 0 #d96a3d, 34px 4px 0 #2f8f7a;
}

.mood-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.mood-sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.mood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 106, 61, 0.12);
  color: #9b4b2c;
  font-size: 12px;
  font-weight: 600;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.9;
  }
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.benefit-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.75);
  box-shadow: var(--shadow-soft);
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--stroke);
}

.auth-tab:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.auth-forms {
  display: grid;
  gap: 12px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  display: none;
  flex-direction: column;
  gap: 14px;
}

.auth-card.alt {
  border-color: rgba(217, 106, 61, 0.3);
}

.auth-card.is-active {
  display: flex;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-family: "DM Serif Display", serif;
}

.card-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
}

.field input,
.field textarea,
.field select,
.form-row input,
.form-row textarea,
.form-row select {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  font-size: 14px;
  width: 100%;
}

.field textarea,
.form-row textarea {
  min-height: 90px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field select[multiple] {
  background-image: none;
  padding-right: 14px;
  min-height: 110px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-message {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  color: #8a3f2a;
}

.auth-message.is-success {
  color: #2f8f7a;
}

.check-control {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.check-control input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 2px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.check-control input::after {
  content: "";
  width: 10px;
  height: 6px;
  border: 2px solid var(--accent-2);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.18s ease;
}

.check-control input:checked {
  border-color: var(--accent-2);
  background: rgba(47, 143, 122, 0.12);
}

.check-control input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.link {
  border: none;
  background: none;
  color: var(--accent-2);
  font-weight: 600;
  cursor: pointer;
}

.link-inline {
  border: none;
  background: none;
  padding: 0;
  color: var(--accent-2);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.primary {
  border: none;
  width: 100%;
  background: var(--accent);
  color: #fff9f2;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.success {
  border: none;
  width: 100%;
  background: var(--accent-2);
  color: #f5fffb;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.success:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.footer {
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.modal.is-visible {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 14, 0.5);
}

.modal-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: min(520px, 92vw);
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(185, 60, 60, 0.35);
  background: rgba(236, 197, 197, 0.6);
  color: #9b2c2c;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(185, 60, 60, 0.25);
}

.modal-header h2 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: 20px;
}

[data-feedback-modal] .modal-header,
[data-changelog-modal] .modal-header {
  justify-content: center;
  position: relative;
  padding-left: 44px;
  padding-right: 44px;
}

[data-feedback-modal] .modal-header h2,
[data-changelog-modal] .modal-header h2 {
  text-align: center;
}

[data-feedback-modal] .modal-header .modal-close,
[data-changelog-modal] .modal-header .modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

[data-list-delete-modal] .modal-header {
  justify-content: center;
  position: relative;
  padding-left: 44px;
  padding-right: 44px;
}

[data-list-delete-modal] .modal-header h2 {
  text-align: center;
}

[data-list-delete-modal] .modal-header .modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

[data-profile-delete-modal] .modal-header,
[data-profile-logout-modal] .modal-header,
[data-profile-avatar-remove-modal] .modal-header,
[data-profile-followers-modal] .modal-header,
[data-profile-following-modal] .modal-header,
[data-household-leave-modal] .modal-header,
[data-user-delete-modal] .modal-header,
[data-delete-reason-modal] .modal-header,
[data-role-picker-modal] .modal-header {
  justify-content: center;
  position: relative;
  padding-left: 44px;
  padding-right: 44px;
}

[data-profile-delete-modal] .modal-header h2,
[data-profile-logout-modal] .modal-header h2,
[data-profile-avatar-remove-modal] .modal-header h2,
[data-profile-followers-modal] .modal-header h2,
[data-profile-following-modal] .modal-header h2,
[data-household-leave-modal] .modal-header h2,
[data-user-delete-modal] .modal-header h2,
[data-delete-reason-modal] .modal-header h2,
[data-role-picker-modal] .modal-header h2 {
  text-align: center;
}

[data-profile-delete-modal] .modal-header .modal-close,
[data-profile-logout-modal] .modal-header .modal-close,
[data-profile-avatar-remove-modal] .modal-header .modal-close,
[data-profile-followers-modal] .modal-header .modal-close,
[data-profile-following-modal] .modal-header .modal-close,
[data-household-leave-modal] .modal-header .modal-close,
[data-user-delete-modal] .modal-header .modal-close,
[data-delete-reason-modal] .modal-header .modal-close,
[data-role-picker-modal] .modal-header .modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

[data-pwa-update-modal] .modal-header {
  justify-content: center;
  position: relative;
  padding-left: 44px;
  padding-right: 44px;
}

[data-pwa-update-modal] .modal-header h2 {
  text-align: center;
}

[data-pwa-update-modal] .modal-header .modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

[data-pwa-update-modal] .modal-body {
  display: grid;
  gap: 14px;
}

[data-pwa-update-modal] .list-actions {
  justify-content: center;
}

.modal-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

[data-filter-modal] .modal-body {
  display: grid;
  gap: 16px;
}

[data-filter-modal] .modal-header {
  justify-content: center;
  position: relative;
}

[data-filter-modal] .modal-header h2 {
  text-align: center;
}

[data-filter-modal] .modal-header .modal-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

[data-filter-modal] .filter-label {
  text-align: center;
}

[data-filter-modal] .filter-select {
  justify-content: center;
  position: relative;
  padding-right: 34px;
  padding-left: 34px;
  text-align: center;
}

[data-filter-modal] .filter-select span {
  width: 100%;
  text-align: center;
}

[data-filter-modal] .filter-select::after {
  position: absolute;
  right: 14px;
}

[data-filter-picker-modal] .modal-header {
  justify-content: center;
  position: relative;
}

[data-filter-picker-modal] .modal-header .modal-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

[data-filter-picker-modal] .modal-body {
  display: grid;
  gap: 12px;
}

[data-filter-picker-modal] .form-actions {
  margin-top: 12px;
}

[data-form-picker-modal] .modal-header {
  justify-content: center;
  position: relative;
}

[data-form-picker-modal] .modal-header h2 {
  text-align: center;
}

[data-form-picker-modal] .modal-header .modal-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

[data-form-picker-modal] .modal-body {
  display: grid;
  gap: 12px;
}

[data-form-picker-modal] .form-actions {
  margin-top: 12px;
}

[data-help-modal] .modal-body {
  text-align: center;
}

[data-help-modal] .modal-header {
  justify-content: center;
  position: relative;
}

[data-help-modal] .modal-header h2 {
  text-align: center;
}

[data-help-modal] .modal-header .modal-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

[data-terms-modal] .modal-header {
  justify-content: center;
  position: relative;
}

[data-terms-modal] .modal-header h2 {
  text-align: center;
}

[data-terms-modal] .modal-header .modal-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

[data-quick-modal] .modal-header {
  position: relative;
  padding-right: 44px;
}

[data-quick-modal] .modal-header .modal-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-note {
  margin: 0 0 14px;
  color: var(--muted);
}

.modal-note.is-success {
  color: #2f8f7a;
}

.modal-note.is-error {
  color: #8a3f2a;
}

[data-recipe-delete-modal] .modal-header,
[data-comment-delete-modal] .modal-header,
[data-report-modal] .modal-header {
  position: relative;
  justify-content: center;
  padding-inline: 44px;
}

[data-recipe-delete-modal] .modal-header .modal-close,
[data-comment-delete-modal] .modal-header .modal-close,
[data-report-modal] .modal-header .modal-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

[data-recipe-delete-modal] .modal-body,
[data-comment-delete-modal] .modal-body,
[data-report-modal] .modal-body {
  display: grid;
  gap: 16px;
}

[data-recipe-delete-modal] .modal-body,
[data-comment-delete-modal] .modal-body {
  text-align: center;
}

[data-recipe-delete-modal] .modal-note,
[data-comment-delete-modal] .modal-note {
  margin-bottom: 0;
  font-size: 15px;
}

[data-recipe-delete-modal] .list-actions,
[data-comment-delete-modal] .list-actions {
  display: grid;
  gap: 12px;
}

[data-report-modal] .modal-card {
  text-align: left;
}

[data-recipe-delete-modal] .modal-header h2,
[data-comment-delete-modal] .modal-header h2,
[data-report-modal] .modal-header h2 {
  width: 100%;
  text-align: center;
}

[data-report-modal] .modal-body {
  text-align: left;
}

[data-report-modal] .modal-note {
  margin-bottom: 0;
}

[data-report-modal] .field {
  margin-bottom: 0;
  text-align: left;
}

[data-report-modal] .field > span {
  display: inline-block;
  font-weight: 600;
  color: var(--ink);
}

[data-report-modal] .form-actions {
  margin-top: 0;
}

[data-report-modal] .form-actions--split {
  gap: 10px;
}

[data-report-modal] textarea {
  min-height: 112px;
}

.section-block summary.section-head {
  cursor: pointer;
  list-style: none;
}

.section-block summary.section-head::-webkit-details-marker {
  display: none;
}

.section-block summary.section-head::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

details[open] summary.section-head::after {
  content: "▴";
}

.modal-close--danger {
  color: #c94832;
}

.profile-settings-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.moderation-search {
  margin-bottom: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.moderation-search input {
  min-width: 180px;
}

.moderation-search .icon-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.quick-list {
  display: grid;
  gap: 10px;
  text-align: left;
}

.page + .page {
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px dashed rgba(111, 98, 88, 0.2);
}

.dashboard-page {
  padding-bottom: 60px;
}

.simple-page {
  padding-bottom: 60px;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-actions .primary,
.dash-actions .ghost {
  width: auto;
  white-space: nowrap;
}

.profile-name {
  font-weight: 600;
  font-size: 14px;
}

.avatar-link {
  display: inline-flex;
  text-decoration: none;
}

.avatar-pill {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: none;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.avatar-pill.has-image {
  color: transparent;
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 22px;
}

.notice-stack {
  display: grid;
  gap: 10px;
}

.notice-card {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(47, 143, 122, 0.35);
  background: rgba(47, 143, 122, 0.12);
  color: #1d5c4f;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notice-close {
  border: none;
  background: transparent;
  color: #1d5c4f;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.notice-banner {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(47, 143, 122, 0.35);
  background: rgba(47, 143, 122, 0.12);
  color: #1d5c4f;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
}

.search-label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
}

.search-card h2 {
  margin: 0;
  font-size: 20px;
  font-family: "DM Serif Display", serif;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(360px, 100%);
}

.search-field--row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
}

.search-field--row .primary,
.search-field--row .ghost {
  width: auto;
}

.add-recipe-inline {
  white-space: nowrap;
}

.add-recipe-inline {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

.search-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-actions-row .primary {
  flex: 1;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap input {
  padding-right: 44px;
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.9);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.filter-button {
  border-color: rgba(111, 98, 88, 0.4);
}

.filter-button .filter-icon {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23433a31' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5h14'/><path d='M6 10h8'/><path d='M9 15h2'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  display: block;
}

.chip-toggle {
  display: grid;
  place-items: center;
}

.chip-toggle-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236f6258' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  transition: transform 0.2s ease;
}

.chip-toggle.is-open .chip-toggle-icon {
  transform: rotate(180deg);
}

.help-button {
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}

.search-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-size: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.stat-label {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-value {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
}

.stat-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.section-block {
  display: grid;
  gap: 12px;
}

.section-block.is-collapsed {
  padding-bottom: 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head h3 {
  margin: 0;
  font-size: 20px;
  font-family: "DM Serif Display", serif;
}

.section-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 12;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff9f2;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.floating-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 244, 236, 0.18)),
    rgba(255, 248, 242, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 30px 54px rgba(29, 23, 18, 0.26),
    0 8px 22px rgba(29, 23, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -16px 24px rgba(140, 122, 108, 0.12);
  backdrop-filter: blur(30px) saturate(210%);
  -webkit-backdrop-filter: blur(30px) saturate(210%);
}

.floating-nav[hidden] {
  display: none !important;
}

.floating-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.1) 55%, rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), transparent 54%),
    radial-gradient(circle at bottom, rgba(217, 106, 61, 0.08), transparent 48%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0.92;
  pointer-events: none;
}

.floating-nav::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 8px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0.74;
  pointer-events: none;
}

.floating-nav .nav-btn {
  position: relative;
  z-index: 1;
}

.floating-nav .nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 248, 241, 0.16)),
    rgba(255, 251, 246, 0.18);
  box-shadow:
    0 14px 26px rgba(29, 23, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.floating-nav .nav-btn.is-active {
  background:
    linear-gradient(180deg, rgba(255, 237, 228, 0.88), rgba(255, 248, 241, 0.34)),
    rgba(255, 250, 245, 0.26);
  border-color: rgba(217, 106, 61, 0.42);
  color: #b4552c;
  box-shadow:
    0 18px 30px rgba(29, 23, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.floating-nav .nav-icon {
  width: 22px;
  height: 22px;
  background-size: 22px 22px;
  background-repeat: no-repeat;
  background-position: center;
  filter: none;
}

.floating-nav .nav-btn.is-active .nav-icon {
  filter: none;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  transform: scale(1.05);
}

.floating-nav .nav-btn[data-nav-item="dashboard"],
.floating-nav--preview .nav-btn[data-nav-preview-item="dashboard"] {
  width: 64px;
  height: 64px;
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.86), rgba(255, 243, 233, 0.42)),
    rgba(255, 250, 244, 0.24);
  box-shadow:
    0 20px 32px rgba(29, 23, 18, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.floating-nav--preview {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  display: flex;
  width: fit-content;
  margin: 0 auto;
  z-index: 0;
  pointer-events: none;
  box-shadow:
    0 22px 36px rgba(29, 23, 18, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.floating-nav--preview.is-disabled {
  opacity: 0.42;
  filter: saturate(0.78) grayscale(0.08);
}

.floating-nav--preview .nav-btn[hidden] {
  display: none !important;
}

.nav-icon.dashboard {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d1712' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 17h16'/><path d='M6 17a6 6 0 0 1 12 0'/><path d='M12 6v2'/></svg>");
}

.nav-icon.gallery {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d1712' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='7' height='7' rx='1'/><rect x='13' y='5' width='7' height='7' rx='1'/><rect x='4' y='14' width='7' height='7' rx='1'/><rect x='13' y='14' width='7' height='7' rx='1'/></svg>");
}

.nav-icon.favorites {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d1712' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m12 20-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 10.18z'/></svg>");
}

.nav-icon.household {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyNCcgaGVpZ2h0PScyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPScjMWQxNzEyJyBzdHJva2Utd2lkdGg9JzInIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCc+PHBhdGggZD0nTTMgMTBsOS03IDkgNycvPjxwYXRoIGQ9J005IDIyVjEyaDZ2MTAnLz48L3N2Zz4=");
}

.nav-icon.cook {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d1712' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 10h12'/><path d='M7 14h10'/><path d='M8 18h8'/><path d='M12 4c1.7 0 3 1.3 3 3'/><path d='M12 4c-1.7 0-3 1.3-3 3'/></svg>");
}

.nav-icon.moderation {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d1712' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l8 4v5c0 5-3.5 9-8 9s-8-4-8-9V7l8-4z'/><path d='M9 12h6'/></svg>");
}

.nav-icon.profile {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d1712' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M6 20c1.5-3.5 10.5-3.5 12 0'/></svg>");
}

.report-grid {
  display: grid;
  gap: 12px;
}

.report-card {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}

.report-title {
  margin: 0;
  font-weight: 700;
}

.report-note {
  margin: 0;
  color: var(--ink);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.action-grid.is-collapsed {
  display: none;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
}

.action-card.is-hidden {
  display: none;
}

.action-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(217, 106, 61, 0.14);
  display: grid;
  place-items: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}

.action-icon.list {
  background-color: rgba(47, 143, 122, 0.14);
}

.action-icon.cook {
  background-color: rgba(217, 106, 61, 0.12);
}

.action-icon.gallery {
  background-color: rgba(111, 98, 88, 0.14);
}

.action-icon.household {
  background-color: rgba(47, 143, 122, 0.14);
}

.action-icon.moderation {
  background-color: rgba(120, 74, 46, 0.14);
}

.action-icon.new {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23b4552c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14'/><path d='M5 12h14'/></svg>");
}

.action-icon.list {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%232f8f7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 6h11'/><path d='M7 12h11'/><path d='M7 18h11'/><path d='M4 6h.01'/><path d='M4 12h.01'/><path d='M4 18h.01'/></svg>");
}

.action-icon.cook {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23b4552c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 10h12'/><path d='M7 14h10'/><path d='M8 18h8'/><path d='M12 4c1.7 0 3 1.3 3 3'/><path d='M12 4c-1.7 0-3 1.3-3 3'/></svg>");
}

.action-icon.gallery {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%236f6258' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='7' height='7' rx='1'/><rect x='13' y='5' width='7' height='7' rx='1'/><rect x='4' y='14' width='7' height='7' rx='1'/><rect x='13' y='14' width='7' height='7' rx='1'/></svg>");
}

.action-icon.household {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyNCcgaGVpZ2h0PScyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPScjMWQ1YzRmJyBzdHJva2Utd2lkdGg9JzInIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCc+PHBhdGggZD0nTTMgMTBsOS03IDkgNycvPjxwYXRoIGQ9J005IDIyVjEyaDZ2MTAnLz48L3N2Zz4=");
}

.action-icon.moderation {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23784a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l8 4v5c0 5-3.5 9-8 9s-8-4-8-9V7l8-4z'/><path d='M9 12h6'/></svg>");
}

.action-title {
  margin: 0 0 4px;
  font-weight: 700;
}

.action-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid #f0d9c2;
  background: linear-gradient(130deg, #fff6e9, #ffe2c6);
  box-shadow: var(--shadow);
}

.hero-card--featured h4 {
  margin: 0 0 4px;
  font-size: 20px;
  font-family: "DM Serif Display", serif;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 143, 122, 0.15);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 12px;
}

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}

.difficulty-easy {
  background: rgba(47, 143, 122, 0.14);
  color: #2f8f7a;
  border-color: rgba(47, 143, 122, 0.28);
}

.difficulty-medium {
  background: rgba(227, 177, 79, 0.18);
  color: #a26b00;
  border-color: rgba(227, 177, 79, 0.3);
}

.difficulty-hard {
  background: rgba(216, 96, 88, 0.16);
  color: #b0453c;
  border-color: rgba(216, 96, 88, 0.28);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
}

.hero-actions .primary {
  width: auto;
}

.hero-media {
  position: relative;
  min-height: 130px;
  border-radius: 20px;
  border: 1px solid rgba(234, 220, 207, 0.9);
  background: var(--surface);
  overflow: hidden;
  display: block;
}

.hero-media.has-image {
  background-size: cover;
  background-position: center;
}

.hero-media.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.35) 100%);
  pointer-events: none;
}


.hero-media-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 12px;
  display: grid;
  gap: 4px;
  background: none;
  border: none;
  color: var(--ink);
}

.hero-media-content h4,
.hero-media-content .meta-row,
.hero-media-content .recipe-author--inline {
  text-shadow: 0 1px 3px rgba(255, 249, 242, 0.75);
}

.hero-media-empty {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 249, 242, 0.9);
  border: 1px dashed rgba(234, 220, 207, 0.9);
  color: var(--muted);
  font-size: 10px;
  z-index: 1;
}

.hero-divider {
  height: 1px;
  background: rgba(234, 220, 207, 0.9);
}

.hero-actions--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-actions--split .primary,
.hero-actions--split .ghost {
  width: 100%;
  white-space: nowrap;
}

.hero-actions--split a:last-child {
  grid-column: span 2;
}

.gallery-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.recipe-card {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.recipe-rating-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 249, 242, 0.95);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  z-index: 2;
}

.recipe-rating-badge-star {
  color: #f0b429;
  line-height: 1;
}

.recipe-rating-badge-value {
  line-height: 1;
}

.recipe-thumb {
  position: relative;
  overflow: hidden;
  height: 180px;
  background: linear-gradient(135deg, rgba(47, 143, 122, 0.2), rgba(217, 106, 61, 0.3));
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.9);
  color: #c97957;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-soft);
}

.favorite-btn.is-active {
  background: rgba(217, 106, 61, 0.2);
  color: var(--accent);
  border-color: rgba(217, 106, 61, 0.45);
}

.favorite-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 106, 61, 0.18);
}

.recipe-thumb.has-image {
  background: #fff;
}

.recipe-thumb-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.recipe-thumb.alt {
  background: linear-gradient(135deg, rgba(217, 106, 61, 0.25), rgba(241, 194, 125, 0.4));
}

.recipe-thumb.alt2 {
  background: linear-gradient(135deg, rgba(111, 98, 88, 0.3), rgba(217, 106, 61, 0.35));
}

.recipe-body {
  padding: 14px;
}

.recipe-body h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.recipe-meta {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.recipe-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  margin: 0 0 10px;
}

.recipe-author {
  border: none;
  background: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recipe-author--inline {
  margin: 0;
  text-decoration: none;
}

.recipe-author:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 143, 122, 0.2);
  border-radius: 6px;
}

.recipe-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.recipe-tags span:not(.recipe-visibility) {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 106, 61, 0.12);
  color: #9b4b2c;
  font-size: 12px;
  font-weight: 600;
}

.recipe-visibility {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  background: rgba(47, 143, 122, 0.12);
  color: var(--ink);
  border: 1px solid rgba(47, 143, 122, 0.25);
}

.recipe-visibility--draft {
  background: rgba(111, 98, 88, 0.12);
  color: #6f6258;
  border: 1px solid rgba(111, 98, 88, 0.25);
}

.empty-state {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed var(--stroke);
  background: rgba(255, 249, 242, 0.7);
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip-row[hidden] {
  display: none;
}

.chip-btn {
  border: 1px solid var(--stroke);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.chip-btn.is-active {
  border-color: var(--accent);
  background: rgba(217, 106, 61, 0.12);
}

.gallery-layout {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.moderation-layout {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.picker-layout {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.toggle-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.75);
  box-shadow: var(--shadow-soft);
  max-width: 420px;
}

.toggle-tab {
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.toggle-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--stroke);
}

.gallery-section {
  display: grid;
  gap: 12px;
}

.profile-hits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.profile-hit-card {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  box-shadow: none;
}

.profile-hit-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-hit-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(111, 98, 88, 0.25);
  background: rgba(111, 98, 88, 0.12);
  color: var(--ink);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.profile-hit-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.profile-hit-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

.profile-hit-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.profile-hit-follow {
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.9);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-layout .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-layout .recipe-card {
  background: linear-gradient(130deg, #fff6e9, #ffe2c6);
  border: 1px solid #f0d9c2;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 10px;
}

.gallery-layout .recipe-thumb {
  border-radius: 16px;
  border: 1px solid rgba(234, 220, 207, 0.9);
  height: 150px;
  background: var(--surface);
}

.gallery-layout .recipe-thumb.has-image {
  background: #fff;
}

.gallery-layout .recipe-body {
  padding: 10px 6px 6px;
}

.gallery-layout .recipe-body h4 {
  font-family: "DM Serif Display", serif;
  font-size: 17px;
}

.gallery-layout .recipe-meta {
  margin: 6px 0 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.gallery-layout .recipe-author {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.gallery-layout .recipe-badges {
  margin-bottom: 10px;
}

.gallery-layout .recipe-rating-badge {
  right: 8px;
  bottom: 12px;
}

@media (max-width: 720px) {
  .gallery-layout .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-layout .recipe-thumb {
    height: 130px;
  }

  .gallery-layout .recipe-body h4 {
    font-size: 16px;
  }

  [data-shopping] .shopping-list-thumb {
    height: 130px;
  }
}

@media (max-width: 360px) {
  .gallery-layout .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.list-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}

.list-layout {
  display: grid;
  gap: 20px;
  margin-top: 22px;
  grid-template-columns: 1fr;
}

.list-panel {
  background:
    radial-gradient(circle at top right, rgba(217, 106, 61, 0.12), transparent 40%),
    radial-gradient(circle at top left, rgba(47, 143, 122, 0.1), transparent 42%),
    rgba(255, 251, 246, 0.94);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 18px;
  box-shadow:
    0 18px 34px rgba(29, 23, 18, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.list-overview,
.list-active {
  display: grid;
  gap: 12px;
}

.list-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.list-label {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.list-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.list-title .is-hidden {
  display: none !important;
}


.list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shopping-list-card {
  position: relative;
  border: 1px solid #f0d9c2;
  border-radius: 22px;
  background: linear-gradient(130deg, #fff6e9, #ffe2c6);
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 8px;
  box-shadow:
    0 18px 32px rgba(29, 23, 18, 0.1),
    0 6px 14px rgba(29, 23, 18, 0.05);
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
}

.shopping-list-thumb {
  position: relative;
  height: 150px;
  border-radius: 16px;
  border: 1px solid rgba(234, 220, 207, 0.9);
  background: var(--surface);
}

.shopping-list-thumb.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.shopping-list-body {
  padding: 10px 6px 8px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  min-height: 122px;
}

.shopping-list-body .shopping-list-title {
  min-height: 1.35em;
}

.shopping-list-body .shopping-list-meta {
  min-height: 1.3em;
}

.shopping-list-card .favorite-btn {
  top: 10px;
  right: 10px;
}

.shopping-list-card .recipe-rating-badge {
  right: 10px;
  bottom: 10px;
}

.shopping-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shopping-list-info {
  display: grid;
  gap: 4px;
}

.list-card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.list-delete-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(185, 60, 60, 0.35);
  background: rgba(236, 197, 197, 0.6);
  color: #9b2c2c;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.list-delete-btn--overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.list-add-btn {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(47, 143, 122, 0.45);
  background: rgba(47, 143, 122, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.list-add-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 143, 122, 0.2);
}

.list-add-icon {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232f8f7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h2l2 9h8l2-6H7.1'/><circle cx='9' cy='18' r='1.5'/><circle cx='15' cy='18' r='1.5'/><path d='M16 4v6'/><path d='M13 7h6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

[data-shopping] .list-actions {
  justify-content: flex-end;
}

[data-shopping] .section-head {
  align-items: flex-start;
}

[data-shopping] .list-overview .list-actions {
  flex-wrap: nowrap;
}

[data-shopping] .list-overview .list-actions .ghost,
[data-shopping] .list-active .empty-state .ghost {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 12px;
  min-width: 120px;
  flex: 0 0 auto;
}

[data-shopping] .list-overview .section-head h3 {
  font-size: 18px;
}

.list-delete-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(185, 60, 60, 0.25);
}

.danger {
  border: none;
  background: #b94a48;
  color: #fff6f1;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shopping-list-card.is-active {
  border-color: rgba(217, 106, 61, 0.65);
  box-shadow:
    0 16px 26px rgba(29, 23, 18, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.shopping-list-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-family: "DM Serif Display", serif;
  font-size: 17px;
}

.shopping-list-meta {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.shopping-list-body .recipe-author {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.shopping-list-body .recipe-author:hover,
.shopping-list-body .recipe-author:focus {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.list-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.list-action-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.list-action-icon--danger {
  border-color: rgba(177, 74, 50, 0.4);
  background-color: rgba(177, 74, 50, 0.18);
}

.list-action-glyph {
  font-size: 16px;
  line-height: 1;
}

.list-add {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 140px) auto;
}

.list-add .primary {
  width: auto;
  padding-left: 18px;
  padding-right: 18px;
}

.shopping-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.empty-state[hidden] {
  display: none !important;
}

.shopping-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.8);
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-size: 16px;
}

.shopping-item.is-done {
  opacity: 0.6;
  text-decoration: line-through;
}

.shopping-item-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shopping-name {
  font-weight: 600;
}

.shopping-amount {
  color: var(--muted);
  font-size: 14px;
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.list-item.is-done {
  text-decoration: line-through;
  opacity: 0.6;
}

.list-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.cook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  margin-top: 24px;
}

.cook-card,
.timer-card,
.cook-step-panel {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--stroke);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.timer-card {
  display: grid;
  gap: 14px;
}

.timer-toggle {
  border: 1px dashed var(--stroke);
  background: rgba(255, 249, 242, 0.8);
  border-radius: 999px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.timer-toggle::before,
.timer-toggle::after {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236f6258' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.timer-toggle .timer-icon {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

.timer-toggle.is-open::before,
.timer-toggle.is-open::after {
  transform: rotate(180deg);
  opacity: 1;
}

.timer-toggle.is-open .timer-icon {
  opacity: 1;
}

.cook-description {
  display: grid;
  gap: 6px;
}

.cook-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.8);
}

.cook-difficulty {
  margin-bottom: 8px;
}

.cook-image {
  width: 100%;
  height: 200px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(47, 143, 122, 0.18), rgba(217, 106, 61, 0.22));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-bottom: 10px;
  overflow: hidden;
}

.cook-image.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.cook-image.has-image span {
  opacity: 0;
}

.cook-label {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--muted);
}

.cook-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.cook-title {
  margin: 0 0 6px;
  font-family: "DM Serif Display", serif;
  font-size: 26px;
}

.cook-author {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cook-meta {
  margin: 0 0 18px;
  color: var(--muted);
}

.cook-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.cook-meta-row .cook-meta {
  margin: 0;
}

.cook-details {
  display: grid;
  gap: 10px;
}

.cook-details-toggle {
  border: 1px dashed var(--stroke);
  background: rgba(255, 249, 242, 0.8);
  border-radius: 999px;
  padding: 8px 12px;
  width: 100%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cook-details-toggle .toggle-icon {
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236f6258' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  transition: transform 0.2s ease;
}

.cook-details-toggle.is-open .toggle-icon {
  transform: rotate(180deg);
}

.cook-step {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.7);
  margin-bottom: 16px;
}

.cook-ingredients {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.cook-ingredients-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.portion-control--compact .portion-btn {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.portion-control--compact .portion-value {
  min-width: 40px;
  padding: 5px 8px;
}

.portion-control--compact .portion-base {
  font-size: 11px;
}

.portion-control--list {
  margin-top: 6px;
}

.step-count {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.step-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.cook-actions {
  display: grid;
  grid-template-columns: minmax(110px, 140px) 1fr;
  gap: 10px;
}

.cook-step-panel {
  display: grid;
  gap: 12px;
}

.cook-actions .ghost,
.cook-actions .primary {
  width: 100%;
}

[data-cook-step-view][hidden],
[data-cook-step-actions][hidden],
[data-cook-all-view][hidden] {
  display: none !important;
}

[data-cook-details][hidden],
[data-timer-panel][hidden] {
  display: none !important;
}

.cook-tabs {
  width: 100%;
  margin-bottom: 0;
}

.cook-all-steps {
  margin-top: 6px;
}

.cook-all-steps .detail-steps {
  list-style: decimal;
  list-style-position: inside;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.cook-all-steps .detail-steps li {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.8);
}

.timer-label {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 249, 242, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.timer-display-button {
  width: 100%;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

.timer-icon {
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6258' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2h12'/><path d='M6 22h12'/><path d='M8 2c0 4 4 6 4 10s-4 6-4 10'/><path d='M16 2c0 4-4 6-4 10s4 6 4 10'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.7;
}

.timer-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.timer-picker {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.timer-picker.is-visible {
  display: grid;
}

.picker-column {
  display: grid;
  gap: 6px;
  justify-items: center;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timer-picker input {
  width: 100%;
  min-width: 70px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 249, 242, 0.55);
  backdrop-filter: blur(10px);
  font-size: 18px;
  padding: 10px 6px;
  text-align: center;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.timer-picker input::placeholder {
  color: rgba(111, 98, 88, 0.6);
}

.timer-picker input:focus {
  outline: none;
  border-color: rgba(217, 106, 61, 0.45);
  box-shadow: 0 0 0 2px rgba(217, 106, 61, 0.18);
}

.placeholder {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed var(--stroke);
  background: rgba(255, 249, 242, 0.8);
  box-shadow: var(--shadow-soft);
}

.placeholder h1 {
  margin: 0 0 8px;
  font-family: "DM Serif Display", serif;
  font-size: 22px;
}

.placeholder p {
  margin: 0;
  color: var(--muted);
}

.recipe-detail {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(234, 220, 207, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 242, 0.92));
  box-shadow:
    0 24px 60px rgba(29, 23, 18, 0.16),
    0 8px 20px rgba(29, 23, 18, 0.08);
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 106, 61, 0.12), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(47, 143, 122, 0.12), transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}

.detail-hero > * {
  position: relative;
  z-index: 1;
}

.detail-image {
  position: relative;
  min-height: 240px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(47, 143, 122, 0.2), rgba(217, 106, 61, 0.25));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
  box-shadow: 0 14px 24px rgba(29, 23, 18, 0.12);
}

.detail-image-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.detail-image.has-image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  color: transparent;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-family: "DM Serif Display", serif;
}

.detail-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.detail-toprow h1 {
  margin: 0;
}

.detail-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.detail-author-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.detail-author-link:focus,
.detail-author-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon-button.detail-report {
  border-color: rgba(240, 180, 41, 0.45);
  background: rgba(240, 180, 41, 0.18);
}

.detail-report .icon-triangle {
  width: 18px;
  height: 18px;
  display: block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236f6258' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M10 3l8 14H2L10 3z'/><path d='M10 8v4'/><path d='M10 14h.01'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.detail-visibility {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(47, 143, 122, 0.1);
  white-space: nowrap;
}

.detail-desc {
  margin: 0 0 14px;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.detail-actions .primary {
  width: 100%;
}

.detail-actions--secondary {
  margin-top: 6px;
}

.detail-actions--icons {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 44px);
  justify-content: center;
  gap: 18px;
  padding-left: 0;
  padding-right: 0;
}

.detail-icon {
  width: 100%;
  height: 44px;
  min-width: 0;
  min-height: 44px;
  box-shadow: none;
}

.detail-icon.is-active:not(.detail-icon--household) {
  background-color: rgba(47, 143, 122, 0.14);
  border-color: rgba(47, 143, 122, 0.35);
}

.detail-share-message {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.detail-rating--chip {
  background: rgba(255, 249, 242, 0.92);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: var(--shadow-soft);
  font-size: 11px;
}

.detail-rating--image {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

.detail-favorite {
  position: static;
  top: auto;
  right: auto;
  flex: 0 0 auto;
}

.rating-stars {
  color: #f0b429;
  letter-spacing: 1px;
  font-size: 14px;
}

.rating-count {
  color: inherit;
  font-size: 11px;
}

.detail-author {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-author .link-inline {
  color: var(--ink);
}

.detail-visibility.is-draft {
  background: rgba(111, 98, 88, 0.15);
  border-color: rgba(111, 98, 88, 0.35);
  color: #6f6258;
}

.detail-section {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(234, 220, 207, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 242, 0.92));
  box-shadow:
    0 18px 45px rgba(29, 23, 18, 0.14),
    0 6px 16px rgba(29, 23, 18, 0.08);
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.detail-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(217, 106, 61, 0.08), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(47, 143, 122, 0.08), transparent 50%);
  opacity: 0.5;
  pointer-events: none;
}

.detail-section > * {
  position: relative;
  z-index: 1;
}

.detail-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.detail-fact {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 249, 242, 0.7);
  display: grid;
  gap: 4px;
}

.detail-fact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.detail-fact-value {
  font-weight: 600;
  color: var(--ink);
}

.rating-box {
  display: grid;
  gap: 10px;
}

.rating-stars--input {
  display: flex;
  gap: 6px;
}

.rating-star {
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.9);
  color: #c9a24f;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
}

.rating-star.is-active {
  color: #f0b429;
  border-color: rgba(240, 180, 41, 0.6);
  background: rgba(240, 180, 41, 0.15);
}

.comment-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.comment-form textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
}

.comment-form .primary {
  width: 100%;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 249, 242, 0.7);
  display: grid;
  gap: 10px;
}

.comment-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.comment-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-author span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(217, 106, 61, 0.2);
  background: linear-gradient(135deg, rgba(217, 106, 61, 0.2), rgba(47, 143, 122, 0.2));
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  flex: 0 0 24px;
  overflow: hidden;
}

.comment-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.comment-author:hover {
  text-decoration: underline;
}

.comment-time {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.comment-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  flex-wrap: nowrap;
}

.comment-action {
  min-width: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex: 0 0 32px;
}

.icon-button.comment-action--delete {
  border-color: rgba(177, 74, 50, 0.4);
  background-color: rgba(177, 74, 50, 0.18);
}

.comment-action-glyph {
  font-size: 15px;
  line-height: 1;
}

.icon-button.comment-action--report {
  border-color: rgba(240, 180, 41, 0.45);
  background-color: rgba(240, 180, 41, 0.18);
}

.comment-action--report .icon-triangle {
  width: 16px;
  height: 16px;
  display: block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236f6258' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M10 3l8 14H2L10 3z'/><path d='M10 8v4'/><path d='M10 14h.01'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.comment-text {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.portion-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portion-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.portion-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: #fff;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.portion-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 106, 61, 0.18);
}

.portion-value {
  min-width: 48px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-weight: 600;
}

.portion-base {
  font-size: 12px;
  color: var(--muted);
}

.portion-control--form {
  gap: 8px;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.detail-list li {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.detail-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  position: relative;
  width: 100%;
  max-width: 360px;
  justify-self: start;
  align-self: start;
}

.profile-card--household .section-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.household-divider {
  height: 1px;
  background: var(--stroke);
  margin: 12px 0;
}

.pill.is-copyable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pill.is-copyable:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.household-members {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}

.household-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 249, 242, 0.7);
  border: 1px solid var(--stroke);
  font-size: 12px;
}

.household-role {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 143, 122, 0.14);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 11px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: rgba(217, 106, 61, 0.15);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.profile-titles {
  display: grid;
  gap: 4px;
  flex: 1 1 200px;
}

.profile-titles .chip {
  align-self: start;
  width: fit-content;
}

.profile-follow {
  position: absolute;
  top: 20px;
  right: 20px;
}

.profile-name {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: 26px;
}

.profile-handle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-bio {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-stats .stat-card {
  box-shadow: none;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

.profile-section {
  display: grid;
  gap: 12px;
}

.profile-section .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
  justify-content: start;
}

.profile-layout--social {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.profile-card--social {
  max-width: 760px;
  justify-self: center;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 242, 0.92));
  border: 1px solid rgba(234, 220, 207, 0.9);
  box-shadow:
    0 28px 60px rgba(29, 23, 18, 0.16),
    0 10px 26px rgba(29, 23, 18, 0.08);
  overflow: hidden;
}

.profile-card--social::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(217, 106, 61, 0.14), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(47, 143, 122, 0.12), transparent 42%);
  opacity: 0.75;
  pointer-events: none;
}

.profile-card--social > * {
  position: relative;
  z-index: 1;
}

.profile-card--social .profile-follow {
  position: static;
}

.profile-card--social .profile-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
}

.profile-identity {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.profile-right {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}

.profile-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.profile-name-row .profile-follow {
  width: auto;
  justify-self: end;
  padding: 8px 16px;
  min-height: 38px;
}

.profile-card--social .profile-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px solid rgba(217, 106, 61, 0.25);
  background: linear-gradient(135deg, rgba(217, 106, 61, 0.18), rgba(47, 143, 122, 0.2));
  color: var(--accent);
  font-size: 28px;
}

.profile-avatar.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
  margin-top: 16px;
}

.profile-stat {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 6px 8px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.profile-stat.is-clickable {
  cursor: pointer;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.profile-stat.is-clickable:hover {
  background: rgba(255, 251, 245, 0.62);
  transform: translateY(-2px);
}

.profile-stat.is-clickable:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 106, 61, 0.18);
}

.profile-stat-value {
  font-size: 18px;
  font-weight: 700;
}

.profile-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.profile-card--social .profile-name {
  font-size: 20px;
  margin: 0;
  min-width: 0;
}

.profile-card--social .chip {
  align-self: center;
  width: fit-content;
}

[data-profile][data-profile-self="other"] .profile-name-row [data-profile-settings-open] {
  display: none !important;
}

.household-sheet {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(234, 220, 207, 0.9);
  background:
    radial-gradient(circle at top left, rgba(47, 143, 122, 0.08), transparent 38%),
    radial-gradient(circle at top right, rgba(217, 106, 61, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 242, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 22px 38px rgba(29, 23, 18, 0.12),
    0 8px 20px rgba(29, 23, 18, 0.06);
}

.household-sheet .section-head h3 {
  font-size: 16px;
}

.household-sheet .section-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.icon-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  aspect-ratio: 1 / 1;
  flex: 0 0 36px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.9);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.back-button {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236f6258' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 10H5'/><path d='M9 6l-4 4 4 4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.icon-button.detail-icon {
  border-radius: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.icon-button.detail-icon--cart {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%236f6258' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='19' r='1.5'/><circle cx='17' cy='19' r='1.5'/><path d='M3 4h2l2.2 9.2h9.4l2.1-6.4H7.1'/><path d='M17 3v6'/><path d='M14 6h6'/></svg>");
  box-shadow:
    0 12px 20px rgba(111, 98, 88, 0.3),
    0 2px 6px rgba(29, 23, 18, 0.08);
}

.icon-button.detail-icon--share {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%236f6258' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4l5 5-5 5'/><path d='M17 9H9a5 5 0 0 0-5 5v4'/></svg>");
  box-shadow:
    0 12px 20px rgba(111, 98, 88, 0.3),
    0 2px 6px rgba(29, 23, 18, 0.08);
}

.icon-button.detail-icon--household {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%236f6258' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10l8-6 8 6'/><path d='M7 21v-9h8v9'/><path d='M13 5h6v6'/><path d='M19 5l-6 6'/></svg>");
  box-shadow: none;
}

.icon-button.detail-icon--template {
  box-shadow: 0 2px 6px rgba(29, 23, 18, 0.08);
}

.icon-button.detail-icon--template {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%236f6258' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M7 3h7l4 4v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/><path d='M14 3v5h5'/><path d='M9 12h6'/><path d='M9 16h6'/></svg>");
}

.profile-settings::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236f6258' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='10' cy='10' r='3.2'/><path d='M19 10a7.9 7.9 0 0 0-.09-1.2l2.02-1.57-1.92-3.32-2.41.75a7.93 7.93 0 0 0-2.07-1.2l-.37-2.52h-3.84l-.37 2.52a7.93 7.93 0 0 0-2.07 1.2l-2.41-.75-1.92 3.32 2.02 1.57A7.9 7.9 0 0 0 1 10c0 .4.03.8.09 1.2L-.93 12.77l1.92 3.32 2.41-.75a7.93 7.93 0 0 0 2.07 1.2l.37 2.52h3.84l.37-2.52a7.93 7.93 0 0 0 2.07-1.2l2.41.75 1.92-3.32-2.02-1.57c.06-.4.09-.8.09-1.2z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.icon-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 106, 61, 0.18);
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-actions[hidden] {
  display: none !important;
}

.profile-actions .primary,
.profile-actions .ghost {
  width: auto;
  padding: 8px 18px;
}

.profile-feed {
  display: grid;
  gap: 14px;
  position: relative;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(234, 220, 207, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 242, 0.92));
  box-shadow:
    0 28px 60px rgba(29, 23, 18, 0.14),
    0 10px 24px rgba(29, 23, 18, 0.08);
  overflow: hidden;
}

.profile-feed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 106, 61, 0.1), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(47, 143, 122, 0.08), transparent 36%);
  opacity: 0.9;
  pointer-events: none;
}

.profile-feed > * {
  position: relative;
  z-index: 1;
}

.profile-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid rgba(234, 220, 207, 0.92);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.82), rgba(255, 250, 243, 0.58));
}

.profile-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  overflow: hidden;
  text-indent: -9999px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-tab::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: rgba(29, 23, 18, 0.9);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.45);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
}

.profile-tab[data-profile-tab="recipes"]::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%236f6258' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='7' height='7' rx='1'/><rect x='13' y='5' width='7' height='7' rx='1'/><rect x='4' y='14' width='7' height='7' rx='1'/><rect x='13' y='14' width='7' height='7' rx='1'/></svg>");
}

.profile-tab[data-profile-tab="private"]::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%236f6258' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
}

.profile-tab[data-profile-tab="favorites"]::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%236f6258' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m12 20-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 10.18z'/></svg>");
}

.profile-tab.is-active {
  color: var(--ink);
  background: transparent;
}

.profile-tab.is-active::before {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.profile-tab.is-active[data-profile-tab="recipes"]::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d1712' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='7' height='7' rx='1'/><rect x='13' y='5' width='7' height='7' rx='1'/><rect x='4' y='14' width='7' height='7' rx='1'/><rect x='13' y='14' width='7' height='7' rx='1'/></svg>");
}

.profile-tab.is-active[data-profile-tab="private"]::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d1712' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>");
}

.profile-tab.is-active[data-profile-tab="favorites"]::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231d1712' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m12 20-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 10.18z'/></svg>");
}

.profile-tab.is-private {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.profile-modal-card {
  max-width: 560px;
  text-align: left;
}

.profile-modal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.profile-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 249, 242, 0.8);
}

.profile-modal-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.profile-modal-action {
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.profile-settings-form {
  display: grid;
  gap: 18px;
}

.profile-settings-danger {
  margin-top: 6px;
}

.profile-settings-danger .danger {
  width: 100%;
}

.profile-settings-modal .profile-modal-card {
  max-width: 560px;
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.52), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99), rgba(255, 247, 239, 0.95));
  box-shadow:
    0 32px 60px rgba(29, 23, 18, 0.22),
    0 8px 22px rgba(29, 23, 18, 0.08);
}

.profile-settings-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(234, 220, 207, 0.9);
  background:
    radial-gradient(circle at top, rgba(47, 143, 122, 0.12), transparent 52%),
    radial-gradient(circle at left top, rgba(217, 106, 61, 0.14), transparent 46%),
    rgba(255, 250, 244, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 14px 26px rgba(29, 23, 18, 0.08);
}

.profile-settings-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(217, 106, 61, 0.25);
  background: linear-gradient(135deg, rgba(217, 106, 61, 0.18), rgba(47, 143, 122, 0.2));
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow:
    0 18px 30px rgba(29, 23, 18, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.profile-settings-preview.has-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.profile-settings-modal .modal-header,
.profile-sheet-card .modal-header {
  justify-content: center;
  position: relative;
  margin: 0;
  padding: 24px 24px 10px;
}

.profile-settings-modal .modal-header h2,
.profile-sheet-card .modal-header h2 {
  font-size: 22px;
  text-align: center;
}

.profile-settings-modal .modal-header .modal-close,
.profile-sheet-card .modal-header .modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
}

.profile-settings-form {
  padding: 0 24px 28px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.profile-settings-form > .field {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(234, 220, 207, 0.88);
  background: rgba(255, 251, 246, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 20px rgba(29, 23, 18, 0.05);
}

.profile-settings-form > .field label,
.profile-settings-form > .field > span {
  margin: 0;
}

.profile-settings-row .field {
  width: 100%;
  display: grid;
  gap: 10px;
}

.profile-settings-row .upload-actions {
  display: grid;
  gap: 10px;
}

.profile-settings-row .upload-actions .ghost {
  width: 100%;
  justify-content: center;
}

.profile-settings-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-launcher {
  width: 100%;
  min-height: 92px;
  padding: 18px 18px 18px 22px;
  justify-content: flex-start;
  text-align: left;
  position: relative;
  border-radius: 22px;
  border-color: rgba(234, 220, 207, 0.92);
  background:
    radial-gradient(circle at top left, rgba(217, 106, 61, 0.1), transparent 44%),
    radial-gradient(circle at bottom right, rgba(47, 143, 122, 0.1), transparent 42%),
    rgba(255, 250, 244, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 14px 24px rgba(29, 23, 18, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.settings-launcher:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 106, 61, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 30px rgba(29, 23, 18, 0.1);
}

.settings-launcher::before,
.settings-launcher::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.settings-launcher::before {
  display: none;
}

.settings-launcher::after {
  right: 18px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236f6258' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m6 3 5 5-5 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  opacity: 0.8;
}

.profile-settings-secondary .ghost-block {
  width: 100%;
}

.profile-settings-secondary {
  display: grid;
  gap: 10px;
}

.profile-sheet-card {
  max-width: 540px;
  max-height: min(84vh, 720px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.99), rgba(255, 247, 239, 0.95));
  box-shadow:
    0 28px 54px rgba(29, 23, 18, 0.22),
    0 8px 22px rgba(29, 23, 18, 0.08);
}

.profile-sheet-body {
  display: grid;
  gap: 16px;
  padding: 0 22px 24px;
  text-align: left;
  overflow-y: auto;
}

.mobile-nav-preview-shell {
  display: grid;
  gap: 12px;
  padding: 18px 16px 20px;
  border-radius: 22px;
  border: 1px solid rgba(234, 220, 207, 0.88);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.42), transparent 44%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.94), rgba(255, 245, 238, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 12px 24px rgba(29, 23, 18, 0.06);
}

.mobile-nav-preview-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.mobile-nav-preview-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.profile-nav-list {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(234, 220, 207, 0.88);
  background: rgba(255, 251, 246, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 20px rgba(29, 23, 18, 0.05);
}

.profile-nav-matrix {
  display: grid;
  gap: 8px;
}

.profile-nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 56px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(234, 220, 207, 0.75);
  background: rgba(255, 248, 242, 0.92);
  font-weight: 600;
  color: var(--ink);
}

.profile-nav-row--head {
  border: none;
  background: transparent;
  padding: 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--muted);
}

.profile-nav-row.is-hidden {
  display: none;
}

.profile-nav-check {
  justify-content: center;
}

.profile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 248, 242, 0.92);
  border: 1px solid rgba(234, 220, 207, 0.82);
  color: var(--ink);
  font-weight: 600;
}

.profile-nav-toggle span {
  flex: 1;
}
.profile-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-feed .recipe-card {
  background: linear-gradient(130deg, #fff6e9, #ffe2c6);
  border: 1px solid #f0d9c2;
  border-radius: 22px;
  box-shadow:
    0 18px 32px rgba(29, 23, 18, 0.1),
    0 6px 14px rgba(29, 23, 18, 0.05);
  padding: 10px;
}

.profile-feed .recipe-thumb {
  height: 150px;
  aspect-ratio: auto;
  border-radius: 16px;
  border: 1px solid rgba(234, 220, 207, 0.9);
  background: var(--surface);
}

.profile-feed .recipe-body {
  display: block;
}

.profile-feed .recipe-body h4 {
  font-family: "DM Serif Display", serif;
  font-size: 17px;
}

.profile-feed .recipe-meta {
  margin: 6px 0 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.profile-feed .recipe-author {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.profile-feed .recipe-badges {
  margin-bottom: 10px;
}

.recipe-form-layout {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.recipe-form-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 242, 0.92));
  border: 1px solid rgba(234, 220, 207, 0.9);
  border-radius: 26px;
  padding: 26px;
  box-shadow:
    0 28px 60px rgba(29, 23, 18, 0.18),
    0 10px 24px rgba(29, 23, 18, 0.08);
  display: grid;
  gap: 22px;
  overflow: hidden;
}

.recipe-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 106, 61, 0.12), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(47, 143, 122, 0.1), transparent 50%);
  opacity: 0.65;
  pointer-events: none;
}

.recipe-form-card > * {
  position: relative;
  z-index: 1;
}

.recipe-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.form-section {
  display: grid;
  gap: 12px;
  background: rgba(255, 251, 245, 0.92);
  border: 1px solid rgba(234, 220, 207, 0.85);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(29, 23, 18, 0.06);
}

.form-section--toggle {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 251, 245, 0.92);
}

.form-section--toggle > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 249, 242, 0.95);
}

.form-section--toggle > summary::-webkit-details-marker {
  display: none;
}

.form-section--toggle > summary::after {
  content: "▼";
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.form-section--toggle[open] > summary::after {
  transform: rotate(180deg);
}

.form-toggle-body {
  margin-top: 0;
  padding: 12px 16px 16px;
  display: grid;
  gap: 12px;
}

.form-section--toggle[open] > summary {
  border-bottom: 1px dashed rgba(234, 220, 207, 0.9);
}

.recipe-form-card .field input,
.recipe-form-card .field textarea,
.recipe-form-card .field select,
.recipe-form-card .form-row input,
.recipe-form-card .form-row textarea,
.recipe-form-card .form-row select {
  border-color: rgba(234, 220, 207, 0.95);
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 14px rgba(29, 23, 18, 0.06);
}

.recipe-form-card input[type="number"]::-webkit-outer-spin-button,
.recipe-form-card input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.recipe-form-card input[type="number"] {
  -moz-appearance: textfield;
}

.recipe-form-card .field input:focus,
.recipe-form-card .field textarea:focus,
.recipe-form-card .field select:focus,
.recipe-form-card .form-row input:focus,
.recipe-form-card .form-row textarea:focus,
.recipe-form-card .form-row select:focus,
.recipe-form-card .filter-select:focus {
  outline: none;
  border-color: rgba(217, 106, 61, 0.55);
  box-shadow:
    0 0 0 3px rgba(217, 106, 61, 0.14),
    0 6px 14px rgba(29, 23, 18, 0.06);
}

.recipe-form-card .filter-select {
  background: #fff;
  border-color: rgba(234, 220, 207, 0.95);
  box-shadow: 0 6px 14px rgba(29, 23, 18, 0.06);
}

.recipe-form-card .upload-card {
  border: 1px dashed rgba(234, 220, 207, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 242, 0.92));
  box-shadow: 0 10px 22px rgba(29, 23, 18, 0.07);
  padding: 16px;
}

.recipe-form-card .upload-preview {
  border: 1px solid rgba(234, 220, 207, 0.85);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.recipe-form-card .info-card {
  border: 1px solid rgba(47, 143, 122, 0.25);
  background: linear-gradient(135deg, rgba(47, 143, 122, 0.12), rgba(255, 249, 242, 0.95));
  box-shadow: 0 10px 18px rgba(29, 23, 18, 0.06);
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filter-field {
  display: grid;
  gap: 6px;
}

.filter-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.filter-select {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  font-size: 14px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.filter-select::after {
  content: "▼";
  font-size: 11px;
  color: var(--muted);
}

.filter-picker-list {
  display: grid;
  gap: 8px;
}

.filter-time-picker {
  display: grid;
  gap: 12px;
}

.filter-time-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.form-list {
  display: grid;
  gap: 10px;
}

.form-row {
  display: grid;
  gap: 10px;
  align-items: center;
}

.form-row--ingredient {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr) auto;
}

.form-row--step {
  grid-template-columns: 1fr;
  align-items: flex-start;
}

.form-row--step .ghost.small {
  justify-self: flex-end;
  margin-top: 6px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.recipe-form-card .form-actions + .form-actions {
  margin-top: -6px;
}

.form-actions--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 249, 242, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.version-meta {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .form-actions--split {
    grid-template-columns: 1fr;
  }
}

.form-message {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  color: #8a3f2a;
}

.form-message.is-success {
  color: #2f8f7a;
}

.info-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 249, 242, 0.75);
  display: grid;
  gap: 6px;
}

.info-title {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.info-text {
  margin: 0;
  font-weight: 700;
}

.info-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.upload-card {
  border: 1px dashed var(--stroke);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 249, 242, 0.7);
  display: grid;
  gap: 12px;
}

.upload-preview {
  height: 190px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(47, 143, 122, 0.18), rgba(217, 106, 61, 0.2));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.upload-preview.has-image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  color: transparent;
}

.upload-preview.has-image span {
  opacity: 0;
}

.upload-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.ghost.small {
  padding: 6px 10px;
  font-size: 12px;
}


@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-card {
    align-items: flex-start;
  }

  .search-field {
    width: 100%;
  }

  .search-field input {
    flex: 1 1 100%;
    min-width: 0;
  }

  .cook-layout {
    grid-template-columns: 1fr;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-form-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: none;
    justify-self: stretch;
  }

  .profile-layout--social {
    max-width: none;
  }

  .profile-card--social {
    max-width: none;
    justify-self: stretch;
  }

  .list-add {
    grid-template-columns: 1fr;
  }

  .form-row--ingredient {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) auto;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .page {
    padding: 22px 16px 32px;
  }

  .auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .auth-page .auth-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .auth-page .footer {
    margin-top: 8px;
  }

  .dashboard-page,
  .simple-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }


  .dashboard {
    margin-top: 16px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--stroke);
    background: rgba(255, 249, 242, 0.78);
    box-shadow: var(--shadow-soft);
  }

  .cook-layout {
    margin-top: 16px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--stroke);
    background: rgba(255, 249, 242, 0.78);
    box-shadow: var(--shadow-soft);
  }

  .gallery-layout {
    margin-top: 16px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--stroke);
    background: rgba(255, 249, 242, 0.78);
    box-shadow: var(--shadow-soft);
  }

  .chip-row {
    margin-top: 0;
  }

  .search-card + .chip-row {
    margin-top: -8px;
  }

  .cook-card,
  .timer-card,
  .cook-step-panel {
    box-shadow: none;
    border-color: rgba(234, 220, 207, 0.75);
  }

  .cook-title {
    font-size: 22px;
    margin-bottom: 2px;
  }

  .cook-author {
    font-size: 12px;
  }

  .cook-meta-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .cook-label {
    margin-bottom: 2px;
  }

  .cook-details {
    gap: 8px;
  }

  .cook-details-toggle {
    padding: 6px 10px;
  }

  .timer-toggle {
    padding: 6px;
  }

  .toggle-tabs {
    padding: 4px;
  }

  .toggle-tab {
    padding: 8px 10px;
    font-size: 12px;
  }

  .cook-step {
    padding: 14px;
    margin-bottom: 12px;
  }

  .cook-actions {
    grid-template-columns: minmax(96px, 120px) 1fr;
  }

  .timer-display {
    font-size: 26px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .timer-icon {
    width: 24px;
    height: 24px;
  }

  .search-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(217, 106, 61, 0.12);
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .dashboard-page .footer,
  .simple-page .footer {
    text-align: center;
    margin-top: auto;
    padding-top: 0;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .top-actions {
    flex-wrap: nowrap;
  }

  .dash-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    font-size: 12px;
  }

  .dash-actions .ghost {
    padding: 7px 10px;
    font-size: 11px;
  }

  .dash-actions .primary {
    padding: 7px 10px;
    font-size: 11px;
  }

  .dash-actions {
    flex-wrap: nowrap;
    width: auto;
    max-width: 52vw;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    justify-self: end;
  }

  .dash-actions .profile-name {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-actions a[href="dashboard.html"] {
    order: -1;
  }

  .profile-name {
    font-size: 13px;
  }

  .dashboard-page {
    padding-bottom: 64px;
  }

  .simple-page {
    padding-bottom: 64px;
  }

  body.has-mobile-nav .dashboard-page,
  body.has-mobile-nav .simple-page {
    padding-bottom: 126px;
  }

  [data-gallery] .dash-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  [data-gallery] .dash-actions {
    width: auto;
    max-width: none;
    overflow: visible;
    flex-wrap: nowrap;
    justify-self: end;
  }

  [data-gallery] .brand-sub {
    line-height: 1.35;
  }

  .section-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .section-actions .ghost {
    padding: 7px 10px;
    font-size: 11px;
  }

  .fab {
    display: none;
  }

  .floating-nav {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
  }

  .intro h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .lead {
    font-size: 14px;
  }

  .auth-panel {
    order: -1;
    gap: 10px;
    position: relative;
  }

  .intro {
    display: none;
  }

  .auth-layout {
    margin-top: 8px;
  }

  .auth-panel {
    background: rgba(255, 249, 242, 0.75);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 10px;
    box-shadow: var(--shadow-soft);
  }

  .auth-tabs {
    padding: 4px;
    background: rgba(255, 249, 242, 0.9);
  }

  .auth-tab {
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .auth-card {
    padding: 14px;
    gap: 10px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
  }

  .auth-card h2 {
    display: none;
  }

  .card-sub {
    display: none;
  }

  .footer {
    margin-top: 16px;
  }

  .field {
    margin-bottom: 8px;
  }

  .auth-card::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(217, 106, 61, 0.5), rgba(47, 143, 122, 0.45));
    opacity: 0.35;
  }

  .benefits {
    display: none;
  }

  .kitchen-mood {
    display: none;
  }

  .kitchen-mood {
    grid-template-columns: 1fr;
    padding: 12px;
    margin-bottom: 12px;
  }

  .mood-visual {
    width: 100%;
    height: 120px;
  }

  .search-card {
    padding: 16px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .action-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background-size: 18px 18px;
  }

  .action-sub {
    font-size: 12px;
  }

  .hero-card {
    padding: 16px;
  }

  .form-row--ingredient {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .comment-form textarea {
    min-height: 104px;
    font-size: 16px;
  }

  .comment-actions {
    gap: 6px;
  }

  .comment-item {
    padding: 12px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-card--social {
    padding: 18px;
  }

  .profile-feed {
    padding: 14px;
    border-radius: 24px;
  }

  .profile-card--social .profile-top {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
  }

  .profile-right {
    width: 100%;
    min-width: 0;
  }

  .profile-name-row {
    gap: 10px;
  }

  .profile-card--social .profile-avatar {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .profile-stat-value {
    font-size: 16px;
  }

  .profile-bio {
    order: 2;
    text-align: left;
  }

  .profile-actions {
    order: 4;
    margin-top: 4px;
  }

  .profile-tabs {
    padding: 0 4px;
  }

  .profile-tab {
    flex: 1 1 0;
    min-width: 0;
  }

  .profile-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-settings-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-settings-hub {
    grid-template-columns: 1fr;
  }

  .settings-launcher {
    min-height: 78px;
  }

  .profile-nav-matrix {
    grid-template-columns: 1fr;
  }

  .profile-sheet-body,
  .profile-settings-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  [data-shopping] .dash-actions {
    gap: 8px;
  }

  [data-shopping] .list-layout {
    gap: 16px;
  }

  [data-shopping] .list-panel {
    padding: 16px;
  }

  [data-shopping] .list-actions {
    gap: 8px;
  }

[data-shopping] .list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-shopping] .shopping-list-head {
  align-items: center;
}

[data-shopping] .shopping-list-card {
  box-shadow:
    0 14px 24px rgba(29, 23, 18, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

  [data-shopping] .list-action-icon {
    min-height: 36px;
  }

  .ghost,
  .primary,
  .success,
  .danger,
  .chip-btn,
  .filter-select,
  .icon-button {
    min-height: 44px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .ghost {
    padding: 10px 14px;
  }

  .ghost.small {
    padding: 6px 10px;
    min-height: 36px;
    font-size: 12px;
  }

  .field input,
  .field textarea,
  .field select,
  .form-row input,
  .form-row textarea,
  .form-row select,
  .search-field input {
    font-size: 16px;
  }

  .modal-card {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }

  .modal-body {
    overflow-y: auto;
  }
}

@media (max-width: 520px) {
  .benefits {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    padding: 10px 12px;
  }

  .mood-visual {
    height: 100px;
  }

  .auth-card {
    padding: 16px;
    gap: 12px;
  }

  .upload-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    min-width: 0;
    text-align: center;
    align-items: center;
  }

  .stat-grid .stat-card:nth-child(1) {
    grid-column: span 2;
    grid-row: 2;
  }

  .stat-grid .stat-card:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }

  .stat-grid .stat-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .search-field--row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
  }

  .search-field--row .search-input-wrap {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .search-field--row .filter-button {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: center;
  }

  .search-field--row .search-actions-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .search-actions-row {
    width: 100%;
  }

  .search-actions-row .primary {
    grid-column: 1 / 2;
    width: 100%;
  }

  .search-actions-row .add-recipe-inline {
    grid-column: 2 / 3;
    min-width: 96px;
    width: auto;
    height: 44px;
    border-radius: 999px;
  }

  .search-field--row .chip-toggle {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    aspect-ratio: auto;
    border-radius: 999px;
    height: 44px;
    border: 1px dashed var(--stroke);
    background: rgba(255, 249, 242, 0.9);
  }

  [data-gallery] .search-card h2 {
    font-size: 18px;
  }

  .hero-media {
    min-height: 120px;
  }

  .hero-actions--split .primary,
  .hero-actions--split .ghost {
    font-size: 12px;
    padding: 8px 10px;
  }

  .form-row--ingredient {
    grid-template-columns: 1fr;
  }

  .cook-actions {
    grid-template-columns: minmax(96px, 120px) 1fr;
  }
}
