/* Lucid City theme + layout (loaded after Tailwind `lcc.css`) */
:root {
  --bg0: #070a12;
  --bg1: #0b1020;
  --panel: rgba(16, 22, 44, 0.72);
  --panel2: rgba(8, 12, 26, 0.62);
  --text: #ecf0ff;
  --muted: rgba(236, 240, 255, 0.7);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --p1: #a78bfa;
  --p2: #7c3aed;
  --p3: #4c1d95;
  --good: #22c55e;
  --danger: #ef4444;
  --r: 18px;
  --h: 46px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg0);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(167, 139, 250, 0.3), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(900px 520px at 60% 110%, rgba(76, 29, 149, 0.22), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-repeat: no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.72), rgba(11, 16, 32, 0.92)), url("./assets/bg.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    transition: none !important;
  }
}

.container {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 2.6vw, 24px);
}

.auth-error {
  color: #fca5a5;
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.admin-bar--bottom {
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-session-label {
  font-size: 0.9rem;
}

.recipe-set-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.recipe-set-label {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.recipe-set-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.recipe-set-toggle .recipe-set-btn {
  min-width: 118px;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal.hidden {
  display: none !important;
}
#adminLogoutBtn.hidden,
#adminLoginBtn.hidden,
#adminSessionLabel.hidden,
#authError.hidden,
#authMissingConfig.hidden {
  display: none !important;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: clamp(18px, 3vw, 24px) !important;
  text-align: left;
}
.admin-modal-card .card-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-bottom: 8px;
}
.admin-modal-card .muted {
  margin-bottom: 16px;
}

.site-header {
  padding: clamp(18px, 3vw, 34px) 0 10px;
}
.hero {
  text-align: center;
}
.site-logo {
  width: clamp(120px, 28vw, 200px);
  height: auto;
  margin: 0 auto 16px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(124, 58, 237, 0.4));
}
.hero-topline {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.18), rgba(124, 58, 237, 0.1));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.88rem;
  font-weight: 900;
}
.site-header h1 {
  margin: 14px 0 10px;
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  padding-bottom: 6px;
  background: linear-gradient(90deg, #efe7ff, var(--p1), #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 32px rgba(167, 139, 250, 0.22);
  -webkit-text-fill-color: transparent;
}
.subtitle {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--muted);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}
.tab {
  min-width: 140px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.tab:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.26);
}
.tab.active {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.26), rgba(124, 58, 237, 0.12));
  border-color: rgba(167, 139, 250, 0.35);
}
@media (max-width: 480px) {
  .tab {
    min-width: 0;
    flex: 1;
  }
}
.tab-panel[hidden] {
  display: none !important;
}

.card {
  position: relative;
  margin-top: 14px;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid rgba(167, 139, 250, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: clamp(14px, 2.2vw, 20px);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--r);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.52),
    rgba(124, 58, 237, 0.22),
    rgba(76, 29, 149, 0.32)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}
.card.card-city::after {
  content: none;
}
.card > * {
  position: relative;
}

.section-title {
  margin: 0 0 14px;
  text-align: left;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}

.card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}
.card-header > div:first-child {
  flex: 1;
  text-align: center;
}
@media (max-width: 720px) {
  .card-header {
    flex-direction: column;
    align-items: center;
  }
}
.card-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.45rem, 3.5vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
.muted {
  color: var(--muted);
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.stat-chip {
  min-height: var(--h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.32);
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(236, 240, 255, 0.92);
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.15px;
}

input,
select,
button {
  font: inherit;
}
input,
select {
  height: var(--h);
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color-scheme: dark;
}
input:focus,
select:focus {
  border-color: rgba(167, 139, 250, 0.72);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}
select option,
select optgroup {
  background-color: #0b1020;
  color: var(--text);
}
select option:checked {
  background-color: rgba(167, 139, 250, 0.22);
}

.select-wrap {
  position: relative;
}
.select-wrap select {
  padding-right: 38px;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(236, 240, 255, 0.88);
  border-bottom: 2px solid rgba(236, 240, 255, 0.88);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  opacity: 0.95;
}
.select-wrap.arrow-only select {
  padding-right: 38px;
}
.select-wrap.arrow-only::after {
  right: 14px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 14px;
  margin: 16px 0 14px;
  align-items: start;
}
@media (max-width: 720px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}
.calc-grid-spacer {
  min-height: var(--h);
}
@media (max-width: 720px) {
  .calc-grid-spacer {
    display: none;
  }
}

.results {
  margin-top: 10px;
}
.results-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(440px, 100%)) auto;
  align-items: center;
  gap: 12px;
}
.results-copy-btn {
  grid-column: 3;
  justify-self: end;
  white-space: nowrap;
  font-size: 0.9rem;
  padding: 10px 14px;
}
.results-header h3 {
  grid-column: 1;
  justify-self: start;
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.results-legend {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
}
@media (max-width: 720px) {
  .results-header {
    grid-template-columns: 1fr;
  }
  .results-header h3 {
    grid-column: 1;
  }
  .results-legend {
    grid-column: 1;
  }
  .results-copy-btn {
    grid-column: 1;
    justify-self: start;
  }
}
.legend {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
  font-size: 0.85rem;
}
.legend.raw {
  justify-self: end;
  border-color: rgba(167, 139, 250, 0.28);
  background: rgba(167, 139, 250, 0.1);
}
.legend.converted {
  justify-self: start;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}
.legend.arrow {
  justify-self: center;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.14);
}

.results-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Nested materials: another recipe matches this material’s name */
.result-nest {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.result-nest-summary {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 2px;
  list-style: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.result-nest-summary::-webkit-details-marker {
  display: none;
}
.result-nest-summary::marker {
  content: "";
}
.result-nest-chevron {
  flex: 0 0 30px;
  width: 30px;
  min-height: var(--h);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  color: rgba(236, 240, 255, 0.88);
  user-select: none;
}
.result-nest-chevron::before {
  content: "▸";
  font-size: 0.72rem;
  line-height: 1;
  display: block;
  transition: transform 0.18s ease;
  transform-origin: 40% 50%;
}
.result-nest[open] > .result-nest-summary .result-nest-chevron::before {
  transform: rotate(90deg);
}
.result-nest-head-row {
  flex: 1;
  min-width: 0;
}
.result-nest-body {
  padding: 4px 10px 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-nest-body > .result-row,
.result-nest-body > .result-nest {
  margin-left: 4px;
}
.recipe-mats-rows .result-nest-body {
  padding-left: 14px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
#resultsList .result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(440px, 100%)) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
#resultsList .result-row-total {
  cursor: help;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}
#resultsList .result-row-total .result-name {
  color: var(--text);
  font-size: 0.92em;
}
#resultsList .result-row-total:hover {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
}
#resultsList .result-name {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}
.result-row:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.24);
  background: rgba(167, 139, 250, 0.06);
}
@media (max-width: 720px) {
  .result-row {
    flex-direction: column;
    align-items: stretch;
  }
  #resultsList .result-row {
    grid-template-columns: 1fr;
  }
  #resultsList .result-name {
    grid-column: 1;
  }
  #resultsList .result-pair {
    grid-column: 1;
  }
}
.result-name {
  color: var(--muted);
  font-weight: 900;
  min-width: 0;
}
.result-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  width: min(440px, 100%);
  align-items: center;
}
#resultsList .result-pair {
  grid-column: 2;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  min-width: 0;
}
@media (max-width: 720px) {
  .result-pair {
    width: 100%;
  }
  #resultsList .result-pair {
    max-width: none;
  }
}
.result-sub {
  font-weight: 950;
  font-size: 1.18rem;
}
.result-sub.raw {
  color: rgba(167, 139, 250, 0.98);
  text-align: right;
}
.result-sub.converted {
  color: rgba(34, 197, 94, 0.96);
  text-align: left;
}
.result-sub.arrow {
  text-align: center;
  justify-self: center;
  min-width: 1.25em;
  color: rgba(236, 240, 255, 0.7);
  font-weight: 950;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.btn {
  height: var(--h);
  min-height: var(--h);
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.2), rgba(124, 58, 237, 0.1));
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.16);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.btn-secondary:hover {
  border-color: rgba(167, 139, 250, 0.22);
  box-shadow: none;
}
.danger {
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(239, 68, 68, 0.1);
}
.danger:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

#tab-config .card-title {
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  letter-spacing: -0.01em;
}
#tab-config .section-title {
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  letter-spacing: 0.02em;
  text-transform: none;
}
#tab-config .label {
  font-weight: 600;
}
#tab-config .item-title {
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.12rem);
  letter-spacing: 0;
}
#tab-config .recipe-mats-legend {
  font-weight: 600;
}
#tab-config .recipe-mats .result-name {
  font-weight: 600;
}
#tab-config .items-list .btn {
  font-weight: 600;
}

.config-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form,
.list {
  padding: 16px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form .field {
  margin: 0;
}

.draft-materials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.draft-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) auto;
  gap: 12px;
  align-items: center;
}
@media (max-width: 720px) {
  .draft-row {
    grid-template-columns: 1fr;
  }
}
.draft-amount {
  height: var(--h);
}
.draft-remove {
  white-space: nowrap;
}

.item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  align-items: stretch;
}
@media (min-width: 480px) {
  .item-actions {
    min-width: 108px;
  }
}

.items-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.items-list li.items-list-category {
  display: block;
  padding: 18px 4px 8px;
  margin-top: 4px;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.items-list li.items-list-category:first-child {
  margin-top: 0;
  padding-top: 2px;
}
.items-list li + li.items-list-category {
  margin-top: 14px;
}
.items-list li,
.items-list .recipe-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.1));
}
.items-list li + li,
.items-list .recipe-list-item + .recipe-list-item {
  margin-top: 10px;
}

.recipe-disclosure {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
}
.recipe-disclosure-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 2px 0;
}
.recipe-disclosure-summary::-webkit-details-marker {
  display: none;
}
.recipe-disclosure-summary:focus {
  outline: none;
}
.recipe-disclosure-summary:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.55);
  outline-offset: 3px;
  border-radius: 10px;
}
.recipe-disclosure-chevron {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 2px;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: rgba(236, 240, 255, 0.85);
  transition: transform 0.18s ease;
}
.recipe-disclosure-chevron::before {
  content: "▶";
}
.recipe-disclosure[open] .recipe-disclosure-chevron {
  transform: rotate(90deg);
}
.recipe-disclosure-titles {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.recipe-disclosure-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.recipe-disclosure-body .recipe-mats {
  margin-top: 0;
}
.item-title {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
}
.item-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Notes blocks — match stat-chip + purple card accent */
.recipe-notes-panel {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  width: 100%;
  max-width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.recipe-notes-panel--in-list {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 14px;
}
.recipe-notes-panel__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.95);
  margin-bottom: 8px;
}
.recipe-notes-panel__body {
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(236, 240, 255, 0.9);
  white-space: pre-wrap;
  word-break: break-word;
}

.field textarea {
  min-height: 88px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
  line-height: 1.45;
  resize: vertical;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
  color-scheme: dark;
}
.field textarea:focus {
  border-color: rgba(167, 139, 250, 0.72);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}

.recipe-mats {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.recipe-mats-legend {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}
.recipe-mats-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.recipe-mats .result-row {
  padding: 8px 10px;
}
.recipe-mats .result-name {
  font-size: 0.88rem;
}
.recipe-mats .result-pair {
  width: min(400px, 100%);
}
.recipe-mats-empty {
  font-size: 0.88rem;
  padding: 4px 0;
}
.items-list .danger {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.footer {
  padding: 18px 0 34px;
  display: flex;
  justify-content: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-logo {
  width: 48px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.3));
}

.config-status {
  min-height: 1.25em;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
