:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d7dee8;
  --panel: #ffffff;
  --canvas: #f6f8fb;
  --green: #2f7d57;
  --green-dark: #1f5d42;
  --coral: #d95f43;
  --blue: #335c81;
  --yellow: #f4bd4f;
  --soft-green: #e6f3eb;
  --soft-coral: #fff0eb;
  --soft-blue: #eaf1f8;
  --shadow: 0 18px 60px rgba(31, 41, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(47, 125, 87, 0.09) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(51, 92, 129, 0.08) 0 1px, transparent 1px 100%),
    var(--canvas);
  background-size: 42px 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 54px) 18px;
}

.topbar h1,
.panel h2,
.drawer-panel h2 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.eyebrow,
.mini-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 54px) 34px;
}

.app-disclaimer {
  max-width: 1180px;
  margin: -14px clamp(18px, 4vw, 54px) 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.input-panel {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 16px;
}

.result-panel {
  padding: 22px;
  min-height: 620px;
}

.section-head,
.drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2,
.drawer-head h2 {
  font-size: 25px;
}

.topbar-actions,
.ingredient-entry,
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(38px, 1fr));
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-toggle button {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0 10px;
}

.language-toggle button:last-child {
  border-right: 0;
}

.language-toggle button.is-active {
  background: var(--green);
  color: #fff;
}

.icon-button,
.text-button,
.primary-button,
.small-button,
.chip,
.segmented button,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  position: relative;
}

.icon-button:hover,
.text-button:hover,
.chip:hover,
.segmented button:hover {
  border-color: #9ba8b8;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.badge {
  position: absolute;
  min-width: 18px;
  height: 18px;
  right: -5px;
  top: -5px;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.text-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 800;
  white-space: nowrap;
}

.small-button {
  min-height: 30px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.primary-button {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.primary-button:hover {
  background: var(--green-dark);
}

.install-button[hidden] {
  display: none;
}

.input-label,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ingredient-entry {
  margin-bottom: 14px;
}

#ingredientInput {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

#ingredientInput:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 87, 0.16);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
}

.chips.compact {
  min-height: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 750;
}

.chip.is-owned {
  border-color: rgba(47, 125, 87, 0.32);
  background: var(--soft-green);
}

.chip.is-missing {
  border-color: rgba(217, 95, 67, 0.35);
  background: var(--soft-coral);
  color: #8f361f;
}

.chip.is-optional {
  border-color: rgba(51, 92, 129, 0.28);
  background: var(--soft-blue);
  color: var(--blue);
}

.chip.is-deal {
  border-color: rgba(244, 189, 79, 0.9);
  background: #fff8df;
  color: #7a4b00;
}

.chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.09);
  color: inherit;
}

.quick-add {
  margin: 18px 0 22px;
}

.quick-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.quick-tabs button {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.quick-tabs button.is-active {
  border-color: var(--blue);
  background: var(--soft-blue);
  color: var(--blue);
}

.controls {
  display: grid;
  gap: 19px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.control-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.control-inline-head span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.stepper {
  display: grid;
  grid-template-columns: 44px minmax(70px, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.stepper output {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.preset-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.preset-row button.is-active {
  border-color: var(--green);
  background: var(--soft-green);
  color: var(--green-dark);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented button {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  font-weight: 800;
  background: #fff;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.is-active {
  background: var(--green);
  color: #fff;
}

.toggle-row {
  flex-wrap: wrap;
}

.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.toggle-row input {
  accent-color: var(--green);
}

.deal-box {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  font-weight: 800;
}

.result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 16px;
}

.result-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #435061;
  font-size: 13px;
  font-weight: 850;
}

.meal-plan {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  border: 1px solid rgba(51, 92, 129, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: #f7fbff;
}

.meal-plan[hidden] {
  display: none;
}

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

.meal-plan-head h3 {
  margin: 0;
  font-size: 19px;
}

.meal-plan-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.meal-plan-body {
  display: grid;
  gap: 12px;
}

.plan-recipes {
  display: grid;
  gap: 8px;
}

.plan-item {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.plan-item strong,
.plan-item span {
  display: block;
}

.plan-item strong {
  color: var(--ink);
  line-height: 1.35;
}

.plan-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.plan-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.plan-facts span {
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  background: var(--soft-green);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.plan-shopping {
  display: grid;
  gap: 7px;
}

.plan-shopping strong {
  font-size: 13px;
}

.plan-shopping ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #435061;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 430px;
  border: 1px dashed #c8d2df;
  border-radius: 8px;
  background: rgba(246, 248, 251, 0.72);
  text-align: center;
  color: var(--muted);
  font-weight: 750;
}

.empty-visual {
  width: 150px;
  aspect-ratio: 1.35;
  margin-bottom: 12px;
  border: 10px solid #eef2f6;
  border-top-color: var(--green);
  border-right-color: var(--coral);
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px white;
  position: relative;
}

.empty-visual::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  right: 18px;
  bottom: 12px;
  border-radius: 50%;
  background: var(--yellow);
}

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

.recipe-card {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  min-height: 260px;
}

.recipe-photo,
.detail-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f6;
}

.recipe-photo {
  aspect-ratio: 4 / 3;
}

.recipe-photo img,
.detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-ingredient-visual {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(47, 125, 87, 0.16);
  background:
    radial-gradient(circle at 18% 22%, rgba(244, 189, 79, 0.28), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(224, 102, 82, 0.18), transparent 24%),
    linear-gradient(135deg, #f8fbf7, #eef7f1);
}

.recipe-ingredient-visual > div {
  display: grid;
  gap: 10px;
  justify-items: start;
  width: 100%;
}

.recipe-ingredient-visual strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.visual-type,
.visual-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 8px;
  font-weight: 900;
}

.visual-type {
  padding: 5px 9px;
  background: rgba(47, 125, 87, 0.12);
  color: var(--green-dark);
  font-size: 13px;
}

.visual-note {
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.visual-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.visual-ingredients span {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(47, 125, 87, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}

.detail-photo {
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
}

.recipe-card.is-generated {
  border-color: rgba(244, 189, 79, 0.75);
  background: linear-gradient(180deg, #fffdf7, #ffffff);
}

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

.recipe-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.score {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 54px;
  height: 36px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--green-dark);
  font-weight: 900;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 9px;
  background: #f0f3f7;
  color: #435061;
  font-size: 12px;
  font-weight: 850;
}

.nutrition-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.nutrition-row span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #435061;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.recipe-signal {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.signal {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  background: #f7f8fa;
  color: #435061;
  font-size: 12px;
  font-weight: 850;
}

.signal.ready {
  background: var(--soft-green);
  color: var(--green-dark);
}

.signal.needs-shop {
  background: var(--soft-coral);
  color: #8f361f;
}

.signal.deal {
  background: #fff8df;
  color: #7a4b00;
}

.recipe-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.ingredient-summary {
  display: grid;
  gap: 7px;
}

.ingredient-summary strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.card-actions .primary-button {
  flex: 1;
}

.plan-button {
  width: auto;
  min-width: 82px;
}

.plan-button.is-active {
  border-color: rgba(51, 92, 129, 0.36);
  background: var(--soft-blue);
  color: var(--blue);
}

.favorite-button.is-active {
  border-color: rgba(217, 95, 67, 0.5);
  background: var(--soft-coral);
  color: var(--coral);
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: end center;
  padding: 18px;
  background: rgba(21, 29, 37, 0.34);
}

.install-sheet.is-open {
  display: grid;
}

.install-card {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.install-card h2 {
  margin: 0;
  font-size: 22px;
}

.install-card p {
  color: var(--muted);
  line-height: 1.65;
}

.install-card .primary-button {
  width: 100%;
}

.detail-drawer.is-open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 29, 37, 0.38);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100%;
  overflow: auto;
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 24px;
  box-shadow: -16px 0 50px rgba(31, 41, 51, 0.16);
}

.drawer-section {
  margin-top: 22px;
}

.recipe-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.recipe-facts div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.recipe-facts strong,
.recipe-facts span {
  display: block;
}

.recipe-facts strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.recipe-facts span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.trust-note {
  border: 1px solid rgba(47, 125, 87, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft-green);
}

.trust-note p {
  margin: 0;
}

.drawer-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.drawer-section .subhead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.drawer-section ol,
.drawer-section ul {
  margin: 0;
  padding-left: 22px;
  color: #435061;
  line-height: 1.8;
}

.drawer-section li + li {
  margin-top: 4px;
}

.optional-ingredients {
  margin-top: 8px;
}

.material-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.drawer-section .material-list {
  padding-left: 0;
}

.material-item {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(82px, auto) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.material-item.is-owned {
  border-color: rgba(47, 125, 87, 0.32);
  background: var(--soft-green);
}

.material-item.is-missing {
  border-color: rgba(217, 95, 67, 0.35);
  background: var(--soft-coral);
}

.material-item.is-optional,
.material-item.is-seasoning {
  border-color: rgba(51, 92, 129, 0.28);
  background: var(--soft-blue);
}

.material-name,
.material-amount,
.material-status {
  min-width: 0;
}

.material-name {
  font-weight: 850;
  color: var(--ink);
}

.material-amount {
  color: #435061;
  font-weight: 800;
  text-align: right;
}

.material-status {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.shopping-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}

.shopping-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft-coral);
  color: #8f361f;
  font-weight: 800;
}

.drawer-action-row {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.drawer-action-row .text-button {
  width: fit-content;
}

.copy-status {
  min-height: 20px;
  margin: 0;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.copy-status[data-tone="error"] {
  color: #8f361f;
}

.drawer-section .step-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.step-list li {
  margin: 0;
}

.step-list label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: #435061;
  line-height: 1.7;
}

.step-list input {
  margin-top: 5px;
  accent-color: var(--green);
}

.step-list input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

[data-icon] {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

[data-icon] svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

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

  .input-panel {
    position: static;
  }

  .result-panel {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions .install-button {
    flex: 1 1 160px;
  }

  .workspace {
    padding-inline: 12px;
  }

  .input-panel,
  .result-panel,
  .drawer-panel {
    padding: 16px;
  }

  .ingredient-entry,
  .section-head {
    align-items: stretch;
  }

  .ingredient-entry {
    flex-direction: column;
  }

  .primary-button,
  .text-button {
    width: 100%;
  }

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

  .quick-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preset-row,
  .nutrition-row,
  .recipe-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meal-plan-head,
  .meal-plan-actions,
  .card-actions {
    align-items: stretch;
  }

  .meal-plan-head,
  .meal-plan-actions {
    flex-direction: column;
  }

  .segmented button:nth-child(2) {
    border-right: 0;
  }

  .segmented button:nth-child(1),
  .segmented button:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

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

  .material-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .material-amount {
    text-align: left;
  }
}
