.tool-hero--cooking {
  background: radial-gradient(ellipse at 85% 55%, #633921, transparent 62%), #221b16;
  border-color: #694e35;
}

.tool-hero--cooking .tool-hero-items img {
  filter: drop-shadow(0 12px 16px #100b08);
}

.cook-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .93fr);
  gap: 1rem;
  align-items: start;
}

.cook-panel {
  min-width: 0;
  padding: clamp(.85rem, 2.8vw, 1.65rem);
  border: 1px solid #4d4536;
  border-radius: .9rem;
  background: #211e18;
}

.cook-panel h2 { margin: 0 0 .85rem; }
.cook-panel label { display: block; margin-bottom: .35rem; }
.cook-panel select, .cook-panel input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .45rem .6rem;
  color: inherit;
  background: #171610;
  border: 1px solid #72664e;
  border-radius: .45rem;
  font: inherit;
}
.cook-panel select { margin-bottom: 1.3rem; }
.cook-panel a { color: #f4c78a; }
.cook-panel a:hover { color: #ffe3b9; }
.cook-panel button:focus-visible, .cook-panel a:focus-visible { outline: 2px solid #f4c78a; outline-offset: 3px; }
.cook-panel button[data-filter-recipe][aria-pressed="true"] { background: #5e3b20; border-color: #edb665; }
.cook-panel .screen-trigger { background: #744524; border-color: #ca8b54; color: #fff4db; }

.cook-slots, .cook-orders, .cook-cards { list-style: none; padding: 0; margin: 0; }
.cook-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(138px, 100%), 1fr)); gap: .5rem; counter-reset: cooking-slot; }
.cook-slots > li { counter-increment: cooking-slot; min-width: 0; }
.cook-slots > li > a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 0 .45rem;
  height: 100%;
  padding: .55rem;
  border-radius: .55rem;
  background: #30291d;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cook-slots > li > a::before { content: counter(cooking-slot); color: #ffd192; font-size: .78rem; line-height: 1; }
.cook-slots img { grid-row: 2; }
.cook-slots span { grid-row: 2; }
.cook-slots strong { grid-area: 1 / 2; text-align: right; }
.cook-submit { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; }
.cook-submit > div { flex: 0 1 10rem; }
.cook-submit button { min-height: 44px; }
.cook-order-heading, .cook-filters { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; }
.cook-order-heading { justify-content: space-between; }
.cook-orders > li { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; align-items: center; border-bottom: 1px solid #514536; padding-block: .35rem; }
.cook-orders a { display: flex; align-items: center; gap: .4rem; }
.cook-orders button { min-width: 44px; min-height: 44px; }
[data-cooking-timing] strong { color: #ffd192; }
.cook-pantry-head, [data-cooking-stock] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(2.6rem, .32fr) minmax(3.9rem, .45fr) minmax(2.6rem, .36fr);
  align-items: center;
  gap: .3rem;
  margin-bottom: .45rem;
  text-align: center;
}
.cook-pantry-head { font-size: .78rem; color: #e6d0b6; }
[data-cooking-stock] label { display: flex; align-items: center; gap: .3rem; text-align: start; overflow-wrap: anywhere; margin: 0; }
[data-cooking-stock] img { flex: none; }
[data-cooking-stock] input { padding-inline: .2rem; text-align: center; }
[data-cooking-stock][data-short="true"] [data-missing], [data-cooking-error], #cooking-stock-error { color: #ffc095; }
.cook-reference { margin-top: 1rem; }
.cook-filters { margin: .7rem 0; }
.cook-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: .65rem; }
.cook-cards a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  align-items: center;
  height: 100%;
  padding: .5rem;
  border: 1px solid #554633;
  border-radius: .65rem;
  background: #30271c;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.cook-cards a:is(:hover, :focus-visible) { background: #4a3321; border-color: #be9563; }
.cook-cards img { width: min(3.5rem, 12vw); height: auto; }
.cook-panel [hidden] { display: none !important; }

@media (max-width: 820px) {
  .cook-tool { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .cook-cards a { transition: none; }
}
