.k-shell {
  --k-ink: #19252a;
  --k-blue: #173ea5;
  --k-paper: #fafaf6;
  --k-line: #d5d8d0;
  --k-sub: #52605e;
  --k-soft: #ecf1fa;
  --k-butter: #f5e6a4;
  color: var(--k-ink);
  width: min(100%, 1090px);
  margin: 0 auto;
  min-width: 0;
  text-align: left;
  line-height: 1.45;
}
.k-shell *,
.k-shell *::before,
.k-shell *::after {
  box-sizing: border-box;
}
.k-shell [hidden] {
  display: none !important;
}
.k-shell :is(button, input, select) {
  font: inherit;
}
.k-shell :is(button, select, summary, label.k-choice) {
  cursor: pointer;
}
.k-shell :is(h1, h2, p, fieldset, legend) {
  margin: 0;
}
.k-heading {
  margin: 0 0 26px;
}
.k-heading h1 {
  font-family: var(--serif, "PT Serif", Georgia, serif);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 1.04;
  font-size: clamp(42px, 5vw, 72px);
}
.k-layout {
  display: grid;
  grid-template-columns: minmax(175px, 222px) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 52px);
  align-items: start;
}
.k-sections {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: sticky;
  top: 18px;
}
.k-section {
  border: 0;
  border-radius: 11px;
  color: var(--k-sub);
  background: transparent;
  min-height: 46px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  transition: background-color 0.16s;
}
.k-section[aria-current] {
  background: var(--k-soft);
  color: var(--k-blue);
}
.k-section:hover:not([aria-current]) {
  background: #f0f0e9;
}
.k-section svg {
  flex: none;
}
.k-short {
  display: none;
}
.k-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--k-line);
  border-radius: 18px;
  overflow: clip;
}
.k-panel-heading,
.k-content,
.k-footer,
.k-error {
  padding-inline: clamp(18px, 3.2vw, 40px);
}
.k-panel-heading {
  padding-top: clamp(21px, 2.6vw, 32px);
}
.k-panel-heading h2 {
  color: var(--k-ink);
  font-size: clamp(25px, 2.65vw, 35px);
  letter-spacing: -0.05em;
  line-height: 1.12;
  font-weight: 700;
}
.k-panel-heading h2:focus:not(:focus-visible) {
  outline: 0;
}
.k-content {
  padding-top: 20px;
  padding-bottom: 26px;
}
.k-content .k-group {
  padding: 0;
  min-width: 0;
  border: 0;
}
.k-content .k-group ~ .k-group,
.k-inline-option + .k-group,
.k-intro + .k-group,
.k-equipment-art + .k-group,
.k-store-banner + .k-group {
  margin-top: 22px;
}
.k-group .k-label,
.k-field .k-label {
  display: block;
  padding: 0;
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.026em;
}
.k-hint,
.k-intro,
.k-store-banner p,
.k-status span {
  color: var(--k-sub);
  font-size: 14px;
  line-height: 1.45;
}
.k-group > .k-hint:not([hidden]) {
  margin: -3px 0 12px;
}
.k-intro {
  font-size: 16px;
  max-width: 50ch;
}
.k-footnote {
  border-top: 1px solid var(--k-line);
  padding-top: 14px;
  margin-top: 22px !important;
}
.k-plan-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.k-plan-summary {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  overflow: hidden;
  background: #f7ebae;
  border-radius: 11px;
  margin-bottom: 20px;
}
.k-plan-summary-copy {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 14px 17px;
}
.k-plan-summary-copy small {
  font-size: 13px;
}
.k-plan-summary-copy strong {
  font: 400 clamp(28px, 3.8vw, 43px) / 1.02 var(--serif, Georgia, serif);
  letter-spacing: -0.05em;
  color: var(--k-blue);
}
.k-plan-summary-copy span {
  font-size: 13px;
  line-height: 1.3;
}
.k-plan-summary img {
  width: 100%;
  height: 100%;
  max-height: 134px;
  object-fit: cover;
}
.k-number-field,
.k-number-wrap,
.k-field {
  display: block;
  min-width: 0;
}
.k-small-label {
  display: block;
  font-size: 13px;
  color: var(--k-sub);
  margin-bottom: 5px;
}
.k-number-wrap,
.k-stock-field {
  border: 1px solid #bfc7c0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  min-width: 0;
}
.k-number-wrap {
  padding: 0 11px;
  gap: 7px;
}
.k-number,
.k-stock-number {
  appearance: textfield;
  -moz-appearance: textfield;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--k-ink);
  outline: 0;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.k-number {
  height: 44px;
  padding: 0;
  font-weight: 700 !important;
  font-size: 19px !important;
}
.k-number::-webkit-inner-spin-button,
.k-stock-number::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.k-unit {
  color: var(--k-sub);
  font-size: 13px;
  white-space: nowrap;
}
.k-number-wrap:focus-within,
.k-stock-field:focus-within {
  outline: 2px solid var(--k-blue);
  outline-offset: 1px;
}
.k-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.k-wrap,
.k-equipment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.k-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  gap: 8px;
  border: 1px solid var(--k-line);
  border-radius: 9px;
  background: white;
  padding: 8px 12px;
  line-height: 1.22;
  color: var(--k-ink);
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.k-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.k-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.k-choice:has(input:checked) {
  color: var(--k-blue);
  background: var(--k-soft);
  border-color: var(--k-blue);
}
.k-choice:has(input:focus-visible),
.k-shell :is(button, select, summary, .k-input):focus-visible {
  outline: 3px solid #9c550a;
  outline-offset: 3px;
}
.k-check {
  flex: none;
  border: 1.3px solid #a6afa8;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  align-self: center;
}
.k-native[type="radio"] ~ .k-check {
  border-radius: 50%;
}
.k-native:checked ~ .k-check {
  border-color: var(--k-blue);
  background: var(--k-blue);
}
.k-native:checked ~ .k-check::after {
  content: "";
  display: block;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid white;
  border-bottom: 1.6px solid white;
  transform: translateY(-1px) rotate(-45deg);
}
.k-choice-name {
  overflow-wrap: anywhere;
}
.k-day {
  justify-content: center;
  padding: 9px 0;
  min-height: 44px;
  font-size: 15px;
}
.k-day .k-check {
  display: none;
}
.k-day:has(input:checked) {
  background: var(--k-blue);
  color: white;
}
.k-inline-option {
  margin-top: 10px;
}
.k-store-banner {
  border-radius: 11px;
  overflow: hidden;
  background: #f4edc7;
}
.k-store-banner > div {
  padding: 14px 17px;
}
.k-store-banner strong {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.04em;
}
.k-store-banner p {
  margin-top: 3px;
}
.k-store-art {
  width: 100%;
  height: clamp(82px, 11vw, 128px);
  object-fit: cover;
  object-position: center 50%;
}
.k-search {
  position: relative;
  display: block;
  margin: 0 0 11px;
}
.k-input,
.k-select {
  width: 100%;
  border: 1px solid #bfc7c0;
  background: #fff;
  color: var(--k-ink);
  border-radius: 8px;
  min-height: 44px;
  font-size: 16px !important;
}
.k-input {
  padding: 9px 12px 9px 38px;
}
.k-select {
  padding: 8px 10px;
}
.k-input::placeholder,
.k-stock-number::placeholder {
  color: #707973;
  opacity: 1;
}
.k-magnifier {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 13px;
  height: 13px;
  border: 1.6px solid var(--k-sub);
  border-radius: 50%;
  pointer-events: none;
}
.k-magnifier::after {
  content: "";
  display: block;
  position: absolute;
  left: 10px;
  top: 10px;
  width: 6px;
  height: 1.6px;
  background: var(--k-sub);
  transform: rotate(45deg);
}
.k-store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.k-store {
  min-height: 72px;
  padding: 8px 5px;
  gap: 6px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.k-store-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
}
.k-store .k-check,
.k-allergen .k-check {
  margin-left: auto;
}
.k-store .k-check {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 12px;
  height: 12px;
  opacity: 0;
}
.k-store:has(input:checked) .k-check {
  opacity: 1;
}
.k-store-detail {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--k-line);
  border-radius: 9px;
  background: #fafaf6;
}
.k-store-detail .k-label {
  margin-bottom: 7px;
  font-size: 15px;
}
.k-store-detail .k-hint {
  margin-top: 7px;
}
.k-format-summary {
  padding: 1px 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--k-blue);
}
.k-format-pane[open] .k-format-summary {
  margin-bottom: 11px;
}
.k-sample {
  font-size: 10px;
  color: var(--k-sub);
  font-weight: 400;
  margin-left: 8px;
  white-space: nowrap;
}
.k-store-detail:has(.k-format-pane) {
  padding: 11px 12px;
}
.k-callout {
  padding: 13px 15px;
  border-radius: 8px;
  background: #f8f0c9;
  color: #514728;
  font-size: 14px;
  line-height: 1.4;
}
.k-allergen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.k-allergen {
  padding: 5px 8px 5px 4px;
  gap: 4px;
  min-height: 52px;
}
.k-food-art {
  width: 37px;
  aspect-ratio: 1;
  flex: none;
  background: url("/assets/ingredients.jpg") no-repeat;
  background-size: 400% 400%;
  mix-blend-mode: multiply;
}
.k-drawer {
  border: 1px solid var(--k-line);
  border-radius: 9px;
  padding: 0 12px;
}
.k-drawer-title {
  min-height: 44px;
  padding: 11px 0;
  line-height: 1.35;
  font-weight: 600;
  font-size: 14px;
}
.k-exclude {
  padding: 4px 0 14px;
}
.k-household {
  margin: 15px 0 20px;
}
.k-family-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.k-family-fields + .k-hint {
  margin: 8px 0 12px;
}
.k-tastes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  min-height: 44px;
  color: var(--k-blue);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.k-tastes::after {
  content: "→";
  text-decoration: none;
}
.k-pantry-list {
  border-block: 1px solid var(--k-line);
}
.k-stock-category {
  margin: 0;
  padding: 10px 0 3px;
  color: var(--k-blue);
  font-size: 13px;
  letter-spacing: 0.015em;
}
.k-stock-area + .k-stock-area {
  border-top: 1px solid var(--k-line);
}
.k-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 53px;
  padding: 4px 0;
}
.k-stock-row + .k-stock-row {
  border-top: 1px solid #e4e7df;
}
.k-stock-name {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.k-stock-field {
  padding: 0 9px;
  width: 92px;
  flex: none;
}
.k-stock-number {
  height: 38px;
  font-size: 16px !important;
}
.k-equipment-layout {
  display: grid;
  grid-template-columns: minmax(140px, 0.95fr) 1fr;
  gap: clamp(12px, 3vw, 25px);
  margin-top: 16px;
  align-items: center;
}
.k-content:has(.k-equipment-layout) {
  container: kitchen-equipment / inline-size;
}
.k-equipment-scene {
  position: relative;
  width: 100%;
  max-width: 350px;
  justify-self: center;
}
.k-equipment-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.k-equipment-caption:not([hidden]) {
  position: absolute;
  top: 7px;
  left: 7px;
  max-width: 70%;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #d4d4ca;
  background: #fffcf3;
  color: #26334a;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.k-equipment-caption::before { content: "− "; }
.k-equipment-caption[data-selected="true"]::before { content: "✓ "; }
.k-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  width: 11%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.k-hotspot::before {
  content: "+";
  width: max(27px, 75%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #24324a;
  border-radius: 50%;
  color: #24324a;
  background: #fff9e7;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.k-hotspot[aria-pressed="true"]::before {
  content: "✓";
  border-color: white;
  background: var(--k-blue);
  color: white;
}
.k-equipment-list {
  flex-direction: column;
  align-items: stretch;
}
.k-equipment-list .k-check {
  margin-left: auto;
}
.k-equipment-summary {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--k-muted, #575b62);
}
.recipe-method .k-method-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 10px 0 18px;
  font-size: 14px;
}
.k-method-picker select {
  color: inherit;
  font: inherit;
  min-height: 44px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid #b8b3a8;
  border-radius: 9px;
}
.k-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-block: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--k-line);
  background: #fcfcf9;
}
.k-status {
  display: grid;
  gap: 2px;
}
.k-status strong {
  font-weight: 700;
  line-height: 1.2;
  font-size: 15px;
}
.k-status span {
  font-size: 13px;
}
.k-submit {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--k-blue);
  color: white;
  font-weight: 700 !important;
  padding: 10px 19px;
  white-space: nowrap;
}
.k-submit:hover {
  background: #103489;
}
.k-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}
.k-error {
  margin: 0 !important;
  padding-block: 12px;
  background: #fbebe7;
  color: #762e1a;
}
@media (max-width: 820px) {
  .k-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .k-heading {
    margin-bottom: 16px;
  }
  .k-sections {
    display: grid;
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }
  .k-section {
    padding: 8px 3px;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    font-size: 13px !important;
    text-align: center;
    min-height: 54px;
  }
  .k-long {
    display: none;
  }
  .k-short {
    display: inline;
  }
}
@media (max-width: 550px) {
  .k-card {
    border-radius: 12px;
  }
  .k-heading h1 {
    font-size: 37px;
  }
  .k-section {
    font-size: 11.5px !important;
    letter-spacing: -0.025em;
  }
  .k-panel-heading,
  .k-content,
  .k-footer,
  .k-error {
    padding-inline: 15px;
  }
  .k-panel-heading {
    padding-top: 18px;
  }
  .k-content {
    padding-top: 15px;
    padding-bottom: 20px;
  }
  .k-plan-fields {
    grid-template-columns: 1fr 1fr;
  }
  .k-plan-fields .k-number-field:last-child {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .k-plan-fields .k-number-field:last-child .k-number-wrap {
    width: 95px;
  }
  .k-plan-fields .k-number-field:last-child .k-small-label {
    margin: 0;
  }
  .k-allergen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .k-store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .k-choice {
    font-size: 13px;
  }
  .k-allergen {
    padding: 4px;
    gap: 3px;
  }
  .k-food-art {
    width: 30px;
  }
  .k-store {
    gap: 6px;
  }
  .k-store-logo {
    width: 24px;
    height: 24px;
  }
  .k-check {
    width: 13px;
    height: 13px;
  }
  .k-days {
    gap: 3px;
  }
  .k-footer {
    padding-block: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .k-status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 5px;
  }
  .k-status strong {
    font-size: 13px;
  }
  .k-status span {
    font-size: 11px;
    text-align: right;
  }
  .k-submit {
    width: 100%;
  }
}
@container kitchen-equipment (max-width: 520px) {
  .k-equipment-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .k-equipment-scene {
    width: min(100%, clamp(262px, 34svh, 310px));
  }
  .k-equipment-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .k-equipment-list .k-choice {
    padding-inline: 8px;
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .k-footer {
    bottom: calc(53px + max(5px, env(safe-area-inset-bottom)));
  }
}
@media (max-width: 365px) {
  .k-allergen,
  .k-store {
    font-size: 12px;
  }
  .k-section {
    font-size: 10.5px !important;
  }
  .k-panel-heading,
  .k-content,
  .k-footer,
  .k-error {
    padding-inline: 12px;
  }
}
@media (min-width: 460px) and (max-width: 550px) {
  .k-store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .k-store {
    font-size: 12px;
    min-height: 66px;
    padding: 7px 3px;
  }
  .k-long-store {
    font-size: 10.8px;
    letter-spacing: -0.025em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .k-section {
    transition: none;
  }
}
