.kitchen-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(13rem, 1fr);
  align-items: start;
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
}

.full-edition #p-provisions .provision-gate {
  display: grid;
  grid-row: auto;
  grid-template: "title title" auto "moon order" auto "details details" auto / minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: .65rem clamp(1rem, 3vw, 2rem);
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.provision-gate .gate-name {
  grid-area: title;
  justify-self: start;
  font-weight: normal;
  padding-bottom: .25rem;
}

.full-edition #p-provisions .provision-gate .moon {
  grid-area: moon;
  align-self: center;
  width: min(calc(100% - 32px), 240px);
  max-width: none;
  margin: 14px 0 26px;
}

.provision-gate .moon-art { width: 100%; height: 100%; }
.provision-gate .provision-order { grid-area: order; display: grid; justify-items: start; gap: .6rem; min-width: 0; width: 100%; }
.provision-gate .work-picker { justify-content: flex-start; }
.provision-field { width: 100%; min-width: 0; }
.provision-field select { width: 100%; text-align: start; }
.provision-field-value { display: none; }
.provision-gate .work-quote { justify-items: start; gap: 4px; text-align: start; padding: 10px 13px; }
.provision-gate .work-quote .wo-out { justify-content: flex-start; }
.provision-gate .work-actions { justify-content: flex-start; padding: .2rem .2rem .4rem; }
.provision-gate .stamp .face { line-height: 1.1; }
.provision-gate .provision-details {
  grid-area: details;
  justify-self: stretch;
  width: 100%;
  padding: 10px 13px;
  border: 1px solid rgba(130, 99, 64, .24);
  border-radius: 4px;
  background: rgba(250, 244, 231, .72);
}
.kitchen-odds, .kitchen-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; }
.kitchen-odds { justify-content: flex-start; }
.kitchen-controls .life-command { margin: 0; }
.kitchen-result { margin-block: .5rem; }

.life-content .kitchen-side {
  justify-self: stretch;
  width: auto;
  max-width: none;
  margin: .3rem 0 0;
  padding: 12px 15px;
  transform: none !important;
  border: 1px solid rgba(130, 99, 64, .28);
  border-radius: 4px;
  background: rgba(250, 244, 231, .82);
  box-shadow: none;
}
.life-content .kitchen-side::before { display: none !important; }
.kitchen-side .kitchen-result { border-top: 1px solid rgba(130, 99, 64, .22); padding-top: 8px; }
.kitchen-side .kitchen-result .life-command { margin-bottom: 0; }

.kitchen-food {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 12px 15px;
  border: 1px solid rgba(130, 99, 64, .26);
  border-radius: 4px;
  background: rgba(250, 244, 231, .78);
}
.kitchen-food-head { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; }
.life-content .kitchen-slot-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  gap: 8px 12px;
  width: 100%;
  margin-block: 8px 10px;
  padding: 0;
  list-style: none;
}

.kitchen-slot-list li { display: grid; grid-row: 1 / span 4; grid-template-rows: subgrid; align-content: start; gap: .25rem; min-width: 0; text-align: center; }
.kitchen-slot-number, .kitchen-slot-info, .kitchen-slot-healing { color: var(--ink-soft); font-size: var(--small); }
.kitchen-slot-square {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: auto;
  min-height: 68px;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 4px;
  background: rgba(252, 247, 236, .88);
  border: 1px solid rgba(130, 99, 64, .34);
  box-shadow: none;
}

.kitchen-slot-square > b { position: absolute; bottom: .2rem; right: .35rem; font-size: 13px; }
.life-content .kitchen-slot-square .life-item { display: grid; place-items: center; min-width: 40px; min-height: 40px; }
.kitchen-slot-square .life-item img, .kitchen-slot-square .life-item .seal-glyph { width: clamp(32px, 5vw, 44px); height: clamp(32px, 5vw, 44px); }
.kitchen-slot-list [data-empty] .kitchen-slot-square { padding: 8px; border: 1px solid rgba(130, 99, 64, .22); box-shadow: none; background: rgba(235, 224, 200, .42); }
.kitchen-slot-list [data-selected] .kitchen-slot-square { border-color: var(--verm-deep); box-shadow: inset 0 0 0 1px var(--verm-deep); }
.kitchen-slot-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem; }
.kitchen-slot-actions .life-command { max-width: 100%; min-width: 0; margin: 0; padding: .2rem .5rem; font-size: var(--small); }
.patrol-roster {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.patrol-card {
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid rgba(130, 99, 64, .28);
  border-radius: 4px;
  background: rgba(252, 247, 236, .84);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.patrol-card:hover { border-color: var(--verm-deep); background: #fffaf0; }
.patrol-card[aria-pressed="true"] { border-color: var(--verm-deep); background: #fff6e4; box-shadow: inset 0 0 0 1px var(--verm-deep); }
.patrol-card b { font-size: 14px; font-weight: 600; }
.patrol-card small { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 960px) {
  .full-edition #p-provisions .provision-gate {
    grid-template: "title" auto "moon" auto "order" auto "details" auto / minmax(0, 1fr);
    gap: .45rem;
  }
}

@media (max-width: 760px) {
  .kitchen-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .full-edition #p-provisions .provision-gate .moon { width: clamp(102px, 28vw, 138px); }
  .provision-field { display: grid; }
  .provision-field > * { grid-area: 1 / 1; }
  .life-content .provision-field select { color: transparent; }
  .provision-field-value {
    display: block;
    align-self: center;
    padding: 4px;
    font-family: "Kai", serif;
    line-height: 1.25;
    pointer-events: none;
  }
}
