.chushen-camera { margin-block: 1rem; }
.chushen-camera > p { margin: .5rem 0 .8rem; }
.local-camera-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.local-camera-layout.manual-only { grid-template-columns: 1fr; }
.local-camera-feed video {
  display: block; width: 100%; aspect-ratio: 4/3;
  object-fit: contain; background: #222a25; border-radius: var(--control, .6rem);
}
.local-camera-feed video[hidden] { display: none; }
.local-camera-feed .button { margin-block-start: .6rem; }
.local-camera-status { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin: 0 0 .5rem; }
.local-camera-status strong, .local-step-index { color: var(--green); }
.local-camera-guide {
  min-width: 0; display: grid; gap: .65rem;
  border: 1px solid var(--line); background: #f6f7ef;
  border-radius: var(--control, .6rem); padding: .85rem;
  font-size: clamp(1rem, 1.7vw, 1.125rem);
}
.local-camera-guide p { margin: 0; overflow-wrap: anywhere; }
.local-step-index { font-weight: 700; }
.local-step-text { white-space: pre-line; }
.local-camera-hints {
  display: grid; gap: .5rem; grid-template-rows: minmax(3.75rem, auto) minmax(3.75rem, auto);
  border-top: 1px solid var(--line); padding-top: .6rem;
}
.local-camera-hints strong { font-size: .85rem; }
.local-camera-model, .local-camera-timers { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.local-timer-form { display:flex; align-items:center; gap:.4rem; }
.local-timer-form input { width:4em; min-height:38px; }
.local-camera-model progress { width:min(12rem, 75%); accent-color:var(--green); }
.local-camera-controls { flex-wrap: wrap; }
.local-camera-controls .button { min-height: 44px; }
.recipe-sections > .photo-credit { padding: 0 .25rem; margin: 0; border: 0; }
@media (max-width: 700px) {
  .local-camera-layout { grid-template-columns: 1fr; gap:.6rem; }
  .local-camera-feed video { max-height: 40vh; }
}

.motion-pressed { scale:.94; box-shadow: 0 1px 2px #24362b22 !important; }
.ripple-host { position: relative; }
.ripple-clip {
  position:absolute; inset:0; overflow:hidden; border-radius:inherit; pointer-events:none;
}
.ripple-wave {
  position:absolute; pointer-events:none; border-radius:50%; background:currentColor;
  animation:chushen-wave 450ms ease-out both;
}
@keyframes chushen-wave {
  from { transform:translate(-50%,-50%) scale(0); opacity:.28; }
  to { transform:translate(-50%,-50%) scale(1); opacity:0; }
}

.elastic-switch { display: inline-flex; align-items:center; gap:.55rem; }
.elastic-track {
  position:relative; display:inline-block; flex:0 0 36px; height:20px;
  background:#8c988d; border-radius:20px; transition:background-color 280ms ease;
}
.elastic-switch[aria-checked="true"] .elastic-track { background:var(--green); }
.elastic-thumb {
  display:block; position:absolute; width:15px; height:15px; left:2px; top:2.5px;
  background:#fffdf6; border-radius:50%; transform:translateX(0);
}
.elastic-switch[aria-checked="true"] .elastic-thumb { transform:translateX(17px); }

.favorite .like-count {
  position:absolute; right:1px; bottom:0; min-width:15px; font-size:.63rem;
}
.like-count {
  display:inline-grid; place-items:center; min-width:1.2em; height:1.3em; overflow:hidden;
  border-radius:.28em; font-size:.8em; line-height:1.1; background:#faf4ee;
  color:#744e42; font-variant-numeric:tabular-nums;
}
:is(.favorite,.favorite-label)[aria-pressed="true"] .like-count > span {
  animation:chushen-count 350ms cubic-bezier(.22,.75,.35,1) both;
}
.like-dot {
  position:absolute; top:50%; left:50%; width:5px; height:5px;
  background:#ac6c58; border-radius:50%; pointer-events:none; z-index:2;
}
.like-dot:nth-last-child(even) { background:#697f6c; }
@keyframes chushen-count {
  from { transform:translateY(100%); }
  to { transform:translateY(0); }
}

.animated-check {
  position:relative; display:inline-grid; place-items:center; width:20px; height:20px;
  flex:0 0 20px; align-self:center; vertical-align:middle;
}
.animated-check input[type="checkbox"] {
  appearance:none; width:20px; height:20px; margin:0; padding:0; cursor:pointer;
  border:1px solid #798d7b; border-radius:4px; background:#fffdf7;
}
.animated-check input:checked {
  border-color:var(--green); background:var(--green); animation:chushen-check 360ms both;
}
.animated-check svg {
  position:absolute; inset:2px; width:16px; height:16px; pointer-events:none;
  stroke:#fff; fill:none; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:1; stroke-dashoffset:1;
}
.animated-check input:checked + svg { stroke-dashoffset:0; transition:stroke-dashoffset 300ms ease-out; }
@keyframes chushen-check {
  0% { transform:scale(.8); }
  55% { transform:scale(1.12); }
  78% { transform:scale(.97); }
  100% { transform:scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .animated-check input:checked, .like-count > span { animation:none !important; }
  .animated-check input:checked + svg, .elastic-track { transition:none; }
}

.dish-image-wrap { position:relative; width:100%; height:100%; }
.dish-image-wrap > .recipe-image { display:block; width:100%; height:100%; }
.dish-image-wrap.full-image > .recipe-image { max-height:75vh; object-fit:contain; }
.ai-image-mark {
  position:absolute; right:.45rem; bottom:.45rem; z-index:1;
  padding:.22rem .46rem; color:#fffdf7; background:#27362dec;
  border-radius:.3rem; font-size:.71rem; line-height:1.35; font-weight:650;
  pointer-events:none;
}
.card-row .ai-image-mark { right:.14rem; bottom:.12rem; font-size:.61rem; padding:.14rem .20rem; }

.daily-carousel .recommendation-grid { grid-template-columns:minmax(0,1.11fr) minmax(0,1fr); }
.daily-carousel .card-hero,
.daily-carousel .recommendation-list { height:350px; }
.daily-carousel .recommendation-list { grid-template-rows:repeat(3,minmax(0,1fr)); }
.daily-carousel .card-row { min-height:0; }
.daily-carousel .card-hero .card-link,
.daily-carousel .card-row .card-link { height:100%; min-height:0; }
.daily-carousel .card-photo { height:100%; min-height:0; aspect-ratio:auto; }
.daily-carousel .card-row .card-copy { min-width:0; padding-block:0; }
.daily-carousel .card-row h3 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.daily-carousel .card-row .recipe-meta { gap:.15rem .45rem; }
.daily-controls {
  display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:.65rem; margin:.8rem 0 0;
}
.daily-controls .button { min-height:44px; min-width:44px; }
.daily-dots { display:flex; }
.daily-dot { border:0; padding:0; width:32px; min-height:44px; background:transparent; display:grid; place-items:center; }
.daily-dot::after { content:""; width:.54rem; height:.54rem; background:#b7beb1; border-radius:50%; }
.daily-dot[aria-current="true"]::after { width:.78rem; background:var(--green); }
.cook-start {
  z-index:0; transform-origin:center;
  transition:scale 130ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .cook-start:not(:disabled):hover:not(.motion-pressed):not(.press-released) { scale:1.035; }
}
@media (max-width:760px) {
  .daily-carousel .recommendation-grid { grid-template-columns:minmax(0,1fr); }
  .daily-carousel .card-hero { height:182px; }
  .daily-carousel .recommendation-list { height:auto; grid-template-rows:repeat(3,72px); }
  .daily-carousel .card-row .card-copy { padding-left:.6rem; }
  .daily-carousel .card-row .tag { padding:.13rem .4rem; }
  .daily-carousel .card-row h3 { margin-block:.1rem; }
  .daily-carousel .card-hero .card-copy h3 { font-size:clamp(1.25rem,5vw,1.65rem); }
}
@media (prefers-reduced-motion:reduce) {
  .cook-start { scale:1; transition:none; }
}
