:root {
  --bg: #11100d;
  --panel: #181611;
  --panel-2: #211d16;
  --line: rgba(217, 184, 126, 0.18);
  --gold: #d9b87e;
  --gold-soft: rgba(217, 184, 126, 0.12);
  --text: #f5efe5;
  --muted: #b9ad9b;
  --dim: #857866;
  --danger: #d98f7e;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(217, 184, 126, 0.12), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(130, 86, 44, 0.12), transparent 28rem),
    var(--bg);
}

button {
  font: inherit;
  color: inherit;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 240px);
}

.app-header {
  padding: 24px 18px 14px;
}

.brand-kicker {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.app-header h1 {
  margin: 4px 0 6px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.app-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.app-main {
  padding: 0 14px 132px;
}


.welcome-screen {
  display: grid;
  gap: 12px;
}

.welcome-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.welcome-stat {
  min-height: 78px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.22);
  padding: 11px 10px;
}

.welcome-stat span {
  display: block;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.25;
  margin-bottom: 7px;
}

.welcome-stat strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.welcome-actions {
  display: grid;
  gap: 10px;
}

.welcome-action {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.035);
  padding: 16px 16px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}

.welcome-action.primary {
  background: linear-gradient(135deg, rgba(217,184,126,0.95), rgba(159,120,67,0.95));
  color: #17120b;
  border-color: transparent;
}

.welcome-action span {
  display: block;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 5px;
}

.welcome-action small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.welcome-action.primary small {
  color: rgba(23,18,11,0.74);
}

.list-top {
  margin-bottom: 14px;
  padding: 2px 2px 0;
}

.inline-back {
  margin-bottom: 8px;
}

.list-top h2 {
  margin: 0 0 4px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.list-top p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}


.menu-list {
  display: grid;
  gap: 14px;
}

.menu-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
  padding: 0;
}

.menu-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #090807;
}

.menu-card-body {
  padding: 16px;
}

.menu-card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.english-name {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 13px;
  font-weight: 650;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.price-box {
  padding: 10px 9px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
}

.price-box span {
  display: block;
  color: var(--dim);
  font-size: 11px;
  margin-bottom: 3px;
}

.price-box strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.open-button {
  margin-top: 14px;
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #d9b87e, #9f7843);
  color: #17120b;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.detail-view {
  padding-bottom: 132px;
}

.detail-top {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -14px 14px;
  padding: 10px 14px 12px;
  background: rgba(17, 16, 13, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 184, 126, 0.14);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 6px 8px 6px 2px;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 15px;
  font-weight: 750;
}

.detail-compact-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 12px;
  align-items: start;
}

.detail-title {
  min-width: 0;
}

.detail-title h2 {
  margin: 4px 0 0;
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-title .english-name {
  font-size: 15px;
}

.detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.detail-thumb {
  display: block;
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  background: #090807;
}

.tab-content {
  display: grid;
  gap: 12px;
}

.section-card,
.step-card,
.note-card,
.cost-card,
.ingredient-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.045);
  padding: 14px;
}

.section-card h3,
.step-card h3,
.note-card h3,
.cost-card h3,
.ingredient-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.section-card p,
.step-card p,
.note-card p,
.ingredient-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.notice-list,
.check-list,
.service-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-list li,
.check-list li,
.service-list li {
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.notice-list li::before,
.check-list li::before {
  content: "•";
  color: var(--gold);
  margin-right: 7px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
  color: #17120b;
  font-size: 15px;
  font-weight: 900;
  flex: 0 0 auto;
}

.step-card h3 {
  margin: 0;
}

.step-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 8px 0 10px;
}

.spec {
  padding: 9px 8px;
  border-radius: 12px;
  background: rgba(217,184,126,0.1);
  border: 1px solid rgba(217,184,126,0.14);
}

.spec span {
  display: block;
  color: var(--dim);
  font-size: 11px;
  margin-bottom: 2px;
}

.spec strong {
  display: block;
  color: var(--gold);
  font-size: 13px;
  line-height: 1.25;
}

.cost-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.cost-item {
  padding: 13px 11px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.18);
}

.cost-item span {
  display: block;
  color: var(--dim);
  font-size: 12px;
  margin-bottom: 4px;
}

.cost-item strong {
  color: var(--text);
  font-size: 18px;
}

.ingredient-card .sub {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.ingredient-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 14px;
}

.ingredient-row strong {
  color: var(--text);
  text-align: right;
}

.bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(480px, 100vw);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 9px 10px calc(9px + var(--safe-bottom));
  background: rgba(17, 16, 13, 0.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(217,184,126,0.16);
}

.tab-button {
  min-height: 48px;
  border: 1px solid rgba(217,184,126,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.tab-button.is-active {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: rgba(217,184,126,0.38);
}

.empty-state {
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 390px) {
  .detail-compact-head {
    grid-template-columns: minmax(0, 1fr) 98px;
    gap: 10px;
  }

  .detail-thumb {
    width: 98px;
    height: 98px;
    border-radius: 16px;
  }

  .detail-title h2 {
    font-size: 23px;
  }

  .detail-summary .chip {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .app-header h1 { font-size: 27px; }
  .price-grid { grid-template-columns: 1fr; }
  .step-specs { grid-template-columns: 1fr; }
  .bottom-tabs { gap: 4px; padding-left: 7px; padding-right: 7px; }
  .tab-button { font-size: 12px; }
}


/* v0.6 detail image placement: menu title left, image thumbnail top-right */
.detail-compact-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 96px !important;
  gap: 12px !important;
  align-items: start !important;
}

.detail-thumb {
  display: block !important;
  width: 96px !important;
  height: 96px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28) !important;
  background: #090807 !important;
}

.hero-image {
  display: none !important;
}

@media (min-width: 391px) {
  .detail-compact-head {
    grid-template-columns: minmax(0, 1fr) 108px !important;
  }

  .detail-thumb {
    width: 108px !important;
    height: 108px !important;
  }
}


/* v0.9 menu list: search, category filters, compact menu cards */
.list-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.search-box {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.24);
  padding: 10px 12px 11px;
}

.search-box span {
  display: block;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  padding: 0;
}

.search-box input::placeholder {
  color: rgba(185,173,155,0.62);
}

.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: var(--gold);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.category-chip.is-active {
  background: var(--gold-soft);
  border-color: rgba(217,184,126,0.46);
  color: var(--text);
}

.compact-list {
  gap: 10px;
}

.compact-menu-card {
  display: block;
  padding: 14px;
  border-radius: var(--radius-md);
}

.compact-menu-card > img {
  display: none !important;
}

.compact-menu-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: start;
}

.compact-menu-copy {
  min-width: 0;
}

.compact-menu-top {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 6px;
}

.mini-dot {
  color: var(--dim);
}

.compact-menu-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.compact-line {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.compact-menu-card .menu-thumb {
  width: 78px;
  height: 78px;
  border-radius: 14px;
}

.compact-menu-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 7px;
  align-items: center;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(217,184,126,0.11);
  color: var(--muted);
  font-size: 12px;
}

.compact-menu-bottom strong {
  color: #17120b;
  background: linear-gradient(135deg, #d9b87e, #9f7843);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 390px) {
  .compact-menu-main {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .compact-menu-card .menu-thumb {
    width: 70px;
    height: 70px;
  }

  .compact-menu-bottom {
    grid-template-columns: 1fr;
  }

  .compact-menu-bottom strong {
    justify-self: start;
  }
}


/* v0.10: menu list uses its own compact header, global app header hidden */
.list-top {
  padding-top: 22px;
}

.list-top h2 {
  margin-top: 4px;
}


/* v0.11: prevent fixed bottom tabs from covering detail content */
.detail-view {
  padding-bottom: calc(210px + var(--safe-bottom)) !important;
}

.tab-content {
  padding-bottom: calc(190px + var(--safe-bottom)) !important;
}

.bottom-tabs {
  padding-bottom: calc(8px + var(--safe-bottom)) !important;
}


/* v0.12: bottom tab tuned smaller than v0.11, font +3px */
.bottom-tabs {
  gap: 5px !important;
  padding: 7px 10px calc(7px + var(--safe-bottom)) !important;
}

.tab-button {
  min-height: 44px !important;
  border-radius: 13px !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

/* keep only enough bottom space to protect the final content, not to compensate for mid-scroll overlap */
.detail-view {
  padding-bottom: calc(170px + var(--safe-bottom)) !important;
}

.tab-content {
  padding-bottom: calc(150px + var(--safe-bottom)) !important;
}


/* v0.13: bottom tab final size tuning */
.bottom-tabs {
  align-items: center !important;
  justify-items: center !important;
  gap: 5px !important;
  padding: 7px 10px calc(7px + var(--safe-bottom)) !important;
}

.tab-button {
  width: calc(100% - 3px) !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  line-height: 1 !important;
}


/* v0.14: bottom tab group width narrowed and centered */
.bottom-tabs {
  width: min(436px, calc(100vw - 44px)) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  border-radius: 18px 18px 0 0 !important;
}

@media (max-width: 390px) {
  .bottom-tabs {
    width: calc(100vw - 40px) !important;
  }
}


/* v0.15: clearer cost tab sections */
.cost-item.highlight {
  border-color: rgba(217,184,126,0.28);
  background: rgba(217,184,126,0.075);
}

.cost-item.muted-focus strong {
  color: var(--muted);
}

.cost-state-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cost-state-row:first-of-type {
  padding-top: 2px;
}

.cost-state-row:last-child {
  border-bottom: 0;
}

.cost-state-row span {
  color: var(--muted);
  line-height: 1.35;
}

.cost-state-row strong {
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.cost-state-row.total {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(217,184,126,0.14);
}

.cost-state-row.total span,
.cost-state-row.total strong {
  color: var(--gold);
}

.cost-subtitle {
  margin: 2px 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.cost-subtitle.pending {
  margin-top: 18px;
  color: var(--dim);
}

.pending-row strong {
  color: var(--gold);
  font-size: 14px;
  font-weight: 850;
}

.operation-note p {
  color: var(--muted);
  line-height: 1.62;
}


/* v0.16: compact cost summary card */
.cost-summary {
  gap: 8px !important;
}

.cost-item {
  min-height: 78px !important;
  padding: 12px 12px !important;
  border-radius: 14px !important;
}

.cost-item span {
  font-size: 14px !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
}

.cost-item strong {
  font-size: 24px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
}

.cost-item.muted-focus strong {
  font-size: 24px !important;
}

@media (max-width: 390px) {
  .cost-item {
    min-height: 72px !important;
    padding: 11px 10px !important;
  }

  .cost-item span {
    font-size: 13px !important;
    margin-bottom: 7px !important;
  }

  .cost-item strong,
  .cost-item.muted-focus strong {
    font-size: 22px !important;
  }
}


/* v0.17: cost summary hierarchy correction
   - labels are larger
   - numbers are smaller and calm
   - card height is reduced */
.cost-summary {
  gap: 8px !important;
}

.cost-item {
  min-height: 66px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
}

.cost-item span {
  font-size: 15px !important;
  line-height: 1.15 !important;
  margin-bottom: 6px !important;
  font-weight: 650 !important;
}

.cost-item strong,
.cost-item.muted-focus strong {
  font-size: 20px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
  font-weight: 850 !important;
}

@media (max-width: 390px) {
  .cost-item {
    min-height: 64px !important;
    padding: 10px 10px !important;
  }

  .cost-item span {
    font-size: 15px !important;
    margin-bottom: 6px !important;
  }

  .cost-item strong,
  .cost-item.muted-focus strong {
    font-size: 20px !important;
  }
}


/* v0.18: cost summary labels and values centered, values match cost-state row size */
.cost-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.cost-item span {
  width: 100% !important;
  text-align: center !important;
}

.cost-item strong,
.cost-item.muted-focus strong {
  width: 100% !important;
  text-align: center !important;
  font-size: 17px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
}

@media (max-width: 390px) {
  .cost-item strong,
  .cost-item.muted-focus strong {
    font-size: 17px !important;
  }
}


/* v0.19: material cost section typography */
.cost-subtitle {
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 850 !important;
}

.ingredient-row span {
  font-size: 17px !important;
  line-height: 1.35 !important;
}

/* keep the secondary pending subtitle a little quieter, but same hierarchy */
.cost-subtitle.pending {
  font-size: 18px !important;
}


/* v0.20: ingredient names exactly match cost-state label typography */
.ingredient-row span {
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  letter-spacing: 0 !important;
}

/* keep category headings separate from ingredient-row label rules */
.cost-subtitle {
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 850 !important;
}


/* v0.21: apply ingredient-name typography to cost-state labels
   Source typography is the current .ingredient-row span rule:
   font-size 17px / line-height 1.35 / font-weight 400 / font-family inherit / letter-spacing 0.
   Color is intentionally not overridden, so the total row can keep its gold emphasis. */
.cost-state-row span {
  font-family: inherit !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}


/* v0.23: grouped test checklist in notes tab */
.check-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.check-group:first-of-type {
  margin-top: 0;
}

.check-group h4 {
  margin: 0;
  color: var(--gold);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -0.02em;
}


/* v0.24: separate dashboard screens for cost, ingredients, and tests */
.manager-list {
  display: grid;
  gap: 12px;
}

.manager-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(0,0,0,0.16));
  padding: 16px;
  cursor: pointer;
}

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

.manager-card h3 {
  margin: 5px 0 4px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

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

.small-action {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d9b87e, #9f7843);
  color: #17120b;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
}

.manager-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.manager-metrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manager-metrics div {
  border-radius: 13px;
  background: rgba(0,0,0,0.22);
  padding: 10px;
  min-height: 58px;
}

.manager-metrics span {
  display: block;
  color: var(--dim);
  font-size: 12px;
  margin-bottom: 6px;
}

.manager-metrics strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.compact-section {
  padding: 18px;
}

.manager-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
}

.manager-row:first-of-type {
  border-top: 0;
}

.manager-row strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 650;
}

.manager-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}

.manager-row-value {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.manager-row.pending .manager-row-value {
  color: var(--gold);
}

@media (max-width: 390px) {
  .manager-metrics.three {
    grid-template-columns: 1fr;
  }

  .manager-card h3 {
    font-size: 20px;
  }

  .small-action {
    padding: 7px 10px;
    font-size: 12px;
  }
}


/* v0.26: replace separate "← 홈" line with compact title-leading back button */
.page-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.page-title-row h2 {
  margin: 0 !important;
}

.title-back-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px);
}

.title-back-button:active {
  background: rgba(217,184,126,0.10);
}


/* v0.27: Safari-like thin open chevron for title back button */
.title-back-button {
  color: var(--gold) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif !important;
  font-size: 44px !important;
  font-weight: 300 !important;
  line-height: 0.78 !important;
  letter-spacing: 0 !important;
  transform: translateY(-2px) !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}


/* v0.28: cost management dashboard */
.cost-dashboard {
  display: grid;
  gap: 14px;
}

.cost-overview-card,
.cost-warning-card,
.cost-list-card {
  padding: 18px !important;
}

.cost-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cost-overview-grid div {
  min-height: 64px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cost-overview-grid span {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 7px;
}

.cost-overview-grid strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.warning-group {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.warning-group:first-of-type {
  margin-top: 0;
}

.warning-group h4 {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
}

.warning-row,
.cost-list-row {
  width: 100%;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.warning-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
}

.warning-row span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.warning-row strong {
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

.empty-mini {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.cost-list-row {
  display: block;
  margin-top: 11px;
  padding: 15px;
  border-radius: 16px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.065);
}

.cost-list-row:first-of-type {
  margin-top: 0;
}

.cost-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 13px;
}

.cost-list-head strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-top: 4px;
}

.cost-list-head small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 5px;
}

.cost-list-head em {
  flex: 0 0 auto;
  align-self: center;
  font-style: normal;
  color: #17120b;
  background: linear-gradient(135deg, #d9b87e, #9f7843);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 900;
}

.cost-list-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.cost-list-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border-radius: 12px;
  background: rgba(0,0,0,0.20);
  padding: 9px 10px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.2;
}

.cost-list-metrics b {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .cost-overview-grid strong {
    font-size: 17px;
  }

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

  .cost-list-head strong {
    font-size: 19px;
  }
}


/* v0.29: compact table-style menu cost list */
.cost-table-card {
  padding: 18px !important;
}

.cost-table-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.cost-table-title h3 {
  margin: 0;
}

.cost-table-title span {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.cost-table {
  display: grid;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cost-table-row {
  min-width: 640px;
  display: grid;
  grid-template-columns: minmax(180px, 1.45fr) 72px 72px 72px 72px;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.075);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  padding: 11px 0;
  cursor: pointer;
}

.cost-table-head {
  cursor: default;
  border-top: 0;
  padding-top: 0;
  padding-bottom: 8px;
}

.cost-table-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.cost-table-row span:not(.cost-menu-name) {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.cost-menu-name {
  min-width: 0;
}

.cost-menu-name strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-menu-name small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-table-row:active {
  background: rgba(217,184,126,0.06);
}

@media (max-width: 390px) {
  .cost-table-row {
    min-width: 600px;
    grid-template-columns: minmax(170px, 1.45fr) 66px 66px 66px 70px;
  }

  .cost-table-title {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v0.30: remove horizontal scroll from cost table on phone */
.cost-table {
  overflow-x: visible !important;
  width: 100% !important;
}

.cost-table-row {
  min-width: 0 !important;
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) 46px 46px 46px 54px !important;
  gap: 5px !important;
  padding: 10px 0 !important;
}

.cost-table-head span {
  font-size: 11px !important;
}

.cost-table-row span:not(.cost-menu-name) {
  font-size: 13px !important;
  text-align: right !important;
}

.cost-menu-name strong {
  font-size: 14px !important;
  line-height: 1.22 !important;
}

.cost-menu-name small {
  font-size: 10.5px !important;
  line-height: 1.2 !important;
}

.cost-table-title {
  align-items: flex-start !important;
}

.cost-table-title span {
  font-size: 11px !important;
}

@media (max-width: 390px) {
  .cost-table-row {
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) 43px 43px 43px 50px !important;
    gap: 4px !important;
  }

  .cost-table-row span:not(.cost-menu-name) {
    font-size: 12.5px !important;
  }

  .cost-menu-name strong {
    font-size: 13.5px !important;
  }
}


/* v0.31: center align all cost table headers and data */
.cost-table-head span {
  text-align: center !important;
  justify-self: center !important;
}

.cost-table-row span:not(.cost-menu-name) {
  text-align: center !important;
  justify-self: center !important;
}

.cost-menu-name {
  text-align: center !important;
  justify-self: stretch !important;
}

.cost-menu-name strong,
.cost-menu-name small {
  text-align: center !important;
}


/* v0.33: cost table typography refinement */
.cost-table-head span {
  color: var(--gold) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  text-align: center !important;
}

.cost-table-row span:not(.cost-menu-name) {
  font-size: 14.5px !important;
  font-weight: 400 !important;
  text-align: center !important;
}

.cost-menu-name strong {
  font-size: 15.5px !important;
  font-weight: 400 !important;
  text-align: center !important;
}

.cost-menu-name small {
  font-weight: 400 !important;
}

@media (max-width: 390px) {
  .cost-table-head span {
    font-size: 13px !important;
  }

  .cost-table-row span:not(.cost-menu-name) {
    font-size: 14.5px !important;
  }

  .cost-menu-name strong {
    font-size: 15.5px !important;
  }
}


/* v0.34: restore bold header and increase cost table header by +1 */
.cost-table-head span {
  color: var(--gold) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

@media (max-width: 390px) {
  .cost-table-head span {
    font-size: 14px !important;
    font-weight: 900 !important;
  }
}


/* v0.35: left align only the menu name data cell in cost table */
.cost-table-row:not(.cost-table-head) .cost-menu-name {
  text-align: left !important;
  justify-self: stretch !important;
}

.cost-table-row:not(.cost-table-head) .cost-menu-name strong,
.cost-table-row:not(.cost-table-head) .cost-menu-name small {
  text-align: left !important;
}

/* Keep header and numeric data centered */
.cost-table-head span,
.cost-table-row span:not(.cost-menu-name) {
  text-align: center !important;
}


/* v0.36: ingredient master price database screens */
.ingredient-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ingredient-overview-grid div {
  min-height: 62px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ingredient-overview-grid span {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 7px;
}

.ingredient-overview-grid strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}


/* v0.38: ingredient input/edit screen */
.ingredient-manage-row {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.075);
  background: transparent;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  text-align: left;
  color: inherit;
  font: inherit;
}

.ingredient-manage-row:first-of-type {
  border-top: 0;
}

.ingredient-manage-row strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.ingredient-manage-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 5px;
}

.ingredient-manage-row em {
  flex: 0 0 auto;
  color: var(--gold);
  font-style: normal;
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
}

.ingredient-form {
  padding: 20px !important;
  display: grid;
  gap: 14px;
}

.ingredient-form-head span {
  display: block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 850;
  margin-bottom: 8px;
}

.ingredient-form-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.ingredient-form-head p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ingredient-form-head strong {
  color: var(--gold);
}

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

.ingredient-form label span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 750;
}

.ingredient-form input,
.ingredient-form textarea {
  width: 100%;
  border: 1px solid rgba(217,184,126,0.22);
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  color: var(--text);
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.35;
  outline: none;
}

.ingredient-form textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ingredient-save-button {
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #d9b87e, #9f7843);
  color: #17120b;
  min-height: 54px;
  padding: 15px 16px;
  font-size: 17px;
  font-weight: 900;
}

.linked-menu-card {
  margin-top: 14px;
}

.linked-menu-row {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.075);
  background: transparent;
  color: inherit;
  font: inherit;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  text-align: left;
}

.linked-menu-row:first-of-type {
  border-top: 0;
}

.linked-menu-row span {
  color: var(--muted);
  font-size: 15px;
}

.linked-menu-row strong {
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

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

  .ingredient-manage-row strong {
    font-size: 19px;
  }
}


/* v0.39: support split display amount and costing amount labels */
.linked-menu-row {
  align-items: flex-start;
}

.linked-menu-row strong {
  white-space: normal !important;
  text-align: right;
  line-height: 1.35;
}



/* v0.41: supplier dropdown and custom supplier field */
.ingredient-form select {
  width: 100%;
  border: 1px solid rgba(217,184,126,0.22);
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  color: var(--text);
  padding: 13px 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(217,184,126,0.86) 50%),
    linear-gradient(135deg, rgba(217,184,126,0.86) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.ingredient-form select:focus {
  border-color: rgba(217,184,126,0.55);
  box-shadow: 0 0 0 2px rgba(217,184,126,0.08);
}

.supplier-custom-label {
  display: none !important;
}

.supplier-custom-label.is-visible {
  display: grid !important;
}


/* v0.43: calculation type selector and costing unit guidance */
.calc-type-field {
  margin-top: 2px;
}

.ingredient-form input[readonly] {
  opacity: 0.82;
  color: var(--gold);
  font-weight: 800 !important;
}

/* v0.49: one structural typography system for ingredient form controls */
.ingredient-form :where(input, select, textarea) {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(217,184,126,0.22);
  border-radius: 14px;
  background-color: rgba(0,0,0,0.28);
  color: var(--text);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.025em;
  outline: none;
}

.ingredient-form :where(input, select, textarea)::placeholder {
  color: rgba(239, 234, 224, 0.68);
  opacity: 1;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.ingredient-form :where(input, select, textarea):focus {
  border-color: rgba(217,184,126,0.55);
  box-shadow: 0 0 0 2px rgba(217,184,126,0.08);
}

.ingredient-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(217,184,126,0.86) 50%),
    linear-gradient(135deg, rgba(217,184,126,0.86) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.ingredient-form textarea {
  min-height: 112px;
  resize: vertical;
}

.ingredient-form input[readonly] {
  color: var(--gold);
  font-weight: 800;
  opacity: 0.82;
}

/* v0.50: unified actual value and placeholder text states */
.ingredient-form :where(input, select, textarea) {
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.025em !important;
  color: rgba(239, 234, 224, 0.96) !important;
  -webkit-text-fill-color: rgba(239, 234, 224, 0.96) !important;
}

.ingredient-form :where(input, textarea)::placeholder {
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.025em !important;
  color: rgba(239, 234, 224, 0.72) !important;
  -webkit-text-fill-color: rgba(239, 234, 224, 0.72) !important;
  opacity: 1 !important;
}

.ingredient-form select,
.ingredient-form select option {
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: rgba(239, 234, 224, 0.96) !important;
}

.ingredient-form textarea {
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: rgba(239, 234, 224, 0.96) !important;
}

.ingredient-form input[readonly] {
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold) !important;
  font-weight: 800 !important;
}

/* v0.51: tighten visual gap between real values and placeholders */
.ingredient-form :where(input, select, textarea) {
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.025em !important;
  color: rgba(239, 234, 224, 0.92) !important;
  -webkit-text-fill-color: rgba(239, 234, 224, 0.92) !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.ingredient-form :where(input, textarea)::placeholder {
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.025em !important;
  color: rgba(239, 234, 224, 0.82) !important;
  -webkit-text-fill-color: rgba(239, 234, 224, 0.82) !important;
  opacity: 1 !important;
}

.ingredient-form :where(input, textarea)::-webkit-input-placeholder {
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.025em !important;
  color: rgba(239, 234, 224, 0.82) !important;
  -webkit-text-fill-color: rgba(239, 234, 224, 0.82) !important;
  opacity: 1 !important;
}

.ingredient-form :where(input, select) {
  height: 48px;
}

.ingredient-form textarea {
  min-height: 112px;
  padding-top: 13px !important;
}

.ingredient-form select {
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: rgba(239, 234, 224, 0.92) !important;
  -webkit-text-fill-color: rgba(239, 234, 224, 0.92) !important;
}

.ingredient-form input[readonly] {
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold) !important;
  font-weight: 800 !important;
}

/* v0.52: remove basis unit field and restore storage custom visibility */
.storage-custom-label {
  display: none !important;
}

.storage-custom-label.is-visible {
  display: grid !important;
}

/* v0.53: calculation type alignment and title status placement */
.ingredient-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.ingredient-title-row h3 {
  margin: 0;
  min-width: 0;
}

.unit-cost-preview {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
  transform: translateY(-2px);
}

.calc-type-select {
  text-align: center;
  text-align-last: center;
  padding-left: 40px !important;
}

.calc-type-select option {
  text-align: center;
}

/* v0.58: editable menu price in cost tab */
.price-editor-card {
  padding: 20px !important;
}

.price-editor-form {
  display: grid;
  gap: 12px;
}

.price-editor-form label {
  display: grid;
  gap: 7px;
}

.price-editor-form label span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 750;
}

.price-editor-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(217,184,126,0.22);
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  color: rgba(239, 234, 224, 0.92);
  -webkit-text-fill-color: rgba(239, 234, 224, 0.92);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.025em;
  outline: none;
}

.price-editor-form input::placeholder {
  color: rgba(239, 234, 224, 0.82);
  -webkit-text-fill-color: rgba(239, 234, 224, 0.82);
  opacity: 1;
}

.price-editor-form input:focus {
  border-color: rgba(217,184,126,0.55);
  box-shadow: 0 0 0 2px rgba(217,184,126,0.08);
}

.price-editor-form button {
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #d9b87e, #9f7843);
  color: #17120b;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 900;
  font-family: inherit;
}



/* v0.60: ingredient status badges and migration-aware ingredient list */
.ingredient-meta-line {
  display: block;
}

.ingredient-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px 3px;
  margin-right: 6px;
  border-radius: 999px;
  border: 1px solid rgba(217,184,126,0.28);
  color: var(--gold);
  background: rgba(217,184,126,0.08);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  vertical-align: 1px;
}

.ingredient-status-badge.is-unused {
  color: var(--muted);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

.ingredient-status-badge.is-replaced,
.ingredient-status-badge.is-deprecated {
  color: rgba(255,210,150,0.92);
  border-color: rgba(255,210,150,0.22);
  background: rgba(255,210,150,0.06);
}


/* v0.61: grouped ingredient dashboard */
.ingredient-section-note {
  margin: -2px 0 4px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
}

.ingredient-manage-row.archived strong {
  color: rgba(242,235,220,0.72);
}

.ingredient-manage-row.archived em {
  color: rgba(255,210,150,0.82);
}

.ingredient-manage-row.archived .ingredient-meta-line {
  color: rgba(242,235,220,0.52);
}


/* v0.62: standards dashboard */
.standards-page {
  gap: 12px;
}

.standard-rule-list {
  display: grid;
  gap: 8px;
}

.standard-rule-list p {
  margin: 0;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.standard-rule-list b {
  color: var(--gold);
  font-size: 13px;
}

.standard-template-card pre {
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  color: rgba(242,235,220,0.88);
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.standard-check-list {
  display: grid;
  gap: 8px;
}

.standard-check-list span {
  position: relative;
  padding-left: 18px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.standard-check-list span::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 900;
}


/* v0.63: data backup dashboard */
.data-tools-page {
  gap: 12px;
}

.data-tool-card p {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.data-tool-card.caution p {
  color: rgba(255,210,150,0.86);
}

.wide-action {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(217,184,126,0.28);
  border-radius: 16px;
  background: rgba(217,184,126,0.13);
  color: var(--gold);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.wide-action.secondary {
  background: rgba(255,255,255,0.06);
  color: rgba(242,235,220,0.92);
  border-color: rgba(255,255,255,0.12);
}

.hidden-file-input {
  display: none;
}

.data-tool-message {
  min-height: 22px;
  margin: 0 4px 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.data-tool-message.ok {
  color: var(--gold);
}

.data-tool-message.error {
  color: rgba(255,150,130,0.95);
}


/* v0.64: static food-state file export */
.data-tool-card p b {
  color: var(--gold);
  font-weight: 850;
}


/* v0.65: food admin server save */
.wide-action:disabled {
  opacity: 0.58;
  pointer-events: none;
}

.server-save-card {
  border-color: rgba(217,184,126,0.18);
}


/* v0.66: food admin server status */
.admin-server-status {
  display: grid;
  gap: 4px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.16);
}

.admin-server-status span {
  font-size: 13px;
  font-weight: 900;
  color: rgba(242,235,220,0.9);
}

.admin-server-status small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
  word-break: break-all;
}

.admin-server-status.checking {
  border-color: rgba(217,184,126,0.22);
  background: rgba(217,184,126,0.06);
}

.admin-server-status.online {
  border-color: rgba(217,184,126,0.32);
  background: rgba(217,184,126,0.1);
}

.admin-server-status.online span {
  color: var(--gold);
}

.admin-server-status.offline {
  border-color: rgba(255,150,130,0.22);
  background: rgba(255,120,90,0.06);
}

.admin-server-status.offline span {
  color: rgba(255,160,140,0.96);
}


/* v0.67: new menu draft helper */
.new-menu-draft-page {
  gap: 12px;
}

.menu-draft-form {
  display: grid;
  gap: 10px;
}

.menu-draft-form label {
  display: grid;
  gap: 6px;
}

.menu-draft-form label span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.menu-draft-form input,
.menu-draft-form textarea,
.menu-draft-output {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  color: rgba(242,235,220,0.92);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  outline: none;
}

.menu-draft-form textarea,
.menu-draft-output {
  resize: vertical;
}

.menu-draft-form input::placeholder,
.menu-draft-form textarea::placeholder,
.menu-draft-output::placeholder {
  color: rgba(242,235,220,0.34);
}

.menu-draft-form input:focus,
.menu-draft-form textarea:focus,
.menu-draft-output:focus {
  border-color: rgba(217,184,126,0.38);
  box-shadow: 0 0 0 2px rgba(217,184,126,0.08);
}

.menu-draft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.menu-draft-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.wide-action.ghost {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
  color: var(--muted);
}

.menu-draft-message {
  min-height: 22px;
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.menu-draft-message.ok {
  color: var(--gold);
}

.menu-draft-message.error {
  color: rgba(255,150,130,0.95);
}


/* v0.68: ingredient change draft helper */
.ingredient-change-draft-page {
  gap: 12px;
}


/* v0.69: work request archive */
.work-requests-page {
  gap: 12px;
}

.work-request-card {
  display: grid;
  gap: 10px;
}

.work-request-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.work-request-head > div {
  display: grid;
  gap: 3px;
}

.work-request-head b {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.work-request-head strong {
  color: rgba(242,235,220,0.94);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.work-request-head span {
  color: var(--dim);
  font-size: 12px;
}

.work-request-text {
  min-height: 150px;
}


/* v0.71: work request status */
.work-request-status {
  display: inline-flex;
  width: fit-content;
  min-height: 18px;
  align-items: center;
  padding: 2px 7px 3px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(242,235,220,0.78);
  background: rgba(255,255,255,0.05);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.work-request-status.is-pending {
  color: var(--gold);
  border-color: rgba(217,184,126,0.3);
  background: rgba(217,184,126,0.08);
}

.work-request-status.is-sent {
  color: rgba(180,215,255,0.94);
  border-color: rgba(180,215,255,0.22);
  background: rgba(120,170,255,0.08);
}

.work-request-status.is-done {
  color: rgba(170,230,185,0.94);
  border-color: rgba(170,230,185,0.22);
  background: rgba(120,220,160,0.08);
}


/* v0.72: work request filter and search */
.work-request-filter-card {
  display: grid;
  gap: 10px;
}

.work-request-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.work-request-filter-grid label,
.work-request-search-label {
  display: grid;
  gap: 6px;
}

.work-request-filter-grid label span,
.work-request-search-label span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.work-request-filter-grid select,
.work-request-search-label input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  color: rgba(242,235,220,0.92);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  outline: none;
}

.work-request-filter-grid select:focus,
.work-request-search-label input:focus {
  border-color: rgba(217,184,126,0.38);
  box-shadow: 0 0 0 2px rgba(217,184,126,0.08);
}

.work-request-search-label input::placeholder {
  color: rgba(242,235,220,0.34);
}

.work-request-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim);
  font-size: 12px;
}

.inline-reset-button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(242,235,220,0.82);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

@media (max-width: 380px) {
  .work-request-filter-grid {
    grid-template-columns: 1fr;
  }
}


/* v0.73: work request applied version */
.work-request-version-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 18px;
  align-items: center;
  padding: 2px 7px 3px;
  border-radius: 999px;
  border: 1px solid rgba(217,184,126,0.22);
  color: rgba(217,184,126,0.98);
  background: rgba(217,184,126,0.07);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.work-request-version-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}

.work-request-version-row label {
  display: grid;
  gap: 6px;
}

.work-request-version-row label span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.work-request-version-row input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  color: rgba(242,235,220,0.92);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  outline: none;
}

.work-request-version-row input:focus {
  border-color: rgba(217,184,126,0.38);
  box-shadow: 0 0 0 2px rgba(217,184,126,0.08);
}

.work-request-version-row input::placeholder {
  color: rgba(242,235,220,0.34);
}

@media (max-width: 380px) {
  .work-request-version-row {
    grid-template-columns: 1fr;
  }
}


/* v0.74: work request memo and priority */
.work-request-priority-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.work-request-priority-summary span,
.work-request-priority {
  display: inline-flex;
  width: fit-content;
  min-height: 18px;
  align-items: center;
  padding: 2px 7px 3px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(242,235,220,0.76);
  background: rgba(255,255,255,0.04);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.work-request-priority.is-important {
  color: rgba(255,210,150,0.96);
  border-color: rgba(255,210,150,0.24);
  background: rgba(255,185,90,0.08);
}

.work-request-priority.is-urgent {
  color: rgba(255,150,130,0.98);
  border-color: rgba(255,150,130,0.26);
  background: rgba(255,90,60,0.08);
}

.work-request-meta-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.work-request-meta-box label {
  display: grid;
  gap: 6px;
}

.work-request-meta-box label span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.work-request-meta-box select,
.work-request-meta-box textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  color: rgba(242,235,220,0.92);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  outline: none;
}

.work-request-meta-box textarea {
  resize: vertical;
}

.work-request-meta-box select:focus,
.work-request-meta-box textarea:focus {
  border-color: rgba(217,184,126,0.38);
  box-shadow: 0 0 0 2px rgba(217,184,126,0.08);
}

.work-request-meta-box textarea::placeholder {
  color: rgba(242,235,220,0.34);
}


/* v0.75: work request data draft */
.work-request-draft-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(217,184,126,0.16);
  background: rgba(217,184,126,0.045);
}

.work-request-draft-box.is-empty {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.work-request-draft-box p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.55;
}

.work-request-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.work-request-draft-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.work-request-draft-head b {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 7px 3px;
  border: 1px solid rgba(217,184,126,0.18);
  color: rgba(242,235,220,0.78);
  background: rgba(0,0,0,0.12);
  font-size: 11px;
  font-weight: 900;
}

.work-request-data-draft {
  min-height: 210px;
}


/* v0.76: refined new menu data draft */
.work-request-data-draft {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}


/* v0.77: refined ingredient change data draft */
/* Uses the same monospaced data draft surface introduced in v0.76. */


/* v0.78: draft review status */
.work-request-draft-status,
.work-request-ready-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 18px;
  align-items: center;
  padding: 2px 7px 3px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(242,235,220,0.76);
  background: rgba(255,255,255,0.04);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.work-request-draft-status.is-drafted {
  color: rgba(180,215,255,0.94);
  border-color: rgba(180,215,255,0.22);
  background: rgba(120,170,255,0.08);
}

.work-request-draft-status.is-reviewed {
  color: rgba(170,230,185,0.94);
  border-color: rgba(170,230,185,0.22);
  background: rgba(120,220,160,0.08);
}

.work-request-ready-badge {
  color: rgba(217,184,126,0.98);
  border-color: rgba(217,184,126,0.28);
  background: rgba(217,184,126,0.1);
}


/* v0.79: ready apply bundle */
.work-request-apply-bundle-card {
  display: grid;
  gap: 10px;
}

.work-request-apply-bundle {
  min-height: 190px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}


/* v0.80: ready apply completion */
.work-request-complete-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}

.work-request-complete-row label {
  display: grid;
  gap: 6px;
}

.work-request-complete-row label span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.work-request-complete-row input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  color: rgba(242,235,220,0.92);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  outline: none;
}

.work-request-complete-row input:focus {
  border-color: rgba(217,184,126,0.38);
  box-shadow: 0 0 0 2px rgba(217,184,126,0.08);
}

@media (max-width: 380px) {
  .work-request-complete-row {
    grid-template-columns: 1fr;
  }
}


/* v0.81: welcome operating dashboard */
.welcome-ops {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(217,184,126,0.16);
  background: linear-gradient(180deg, rgba(217,184,126,0.08), rgba(255,255,255,0.025));
  box-shadow: 0 16px 38px rgba(0,0,0,0.24);
}

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

.welcome-ops-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.welcome-ops-head strong {
  color: rgba(242,235,220,0.96);
  font-size: 16px;
  line-height: 1.25;
  text-align: right;
}

.welcome-ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.welcome-ops-grid button {
  appearance: none;
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(0,0,0,0.16);
  color: rgba(242,235,220,0.88);
  padding: 10px 11px;
  font-family: var(--font);
}

.welcome-ops-grid button span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 750;
}

.welcome-ops-grid button strong {
  color: rgba(242,235,220,0.96);
  font-size: 18px;
  font-weight: 950;
}

.welcome-ops p {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}


/* v0.82: backup integrity check */
.backup-check-card {
  display: grid;
  gap: 10px;
}

.backup-check-report {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}


/* v0.83: first complete polish */
.first-complete-card {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(170,230,185,0.16);
  background: linear-gradient(180deg, rgba(120,220,160,0.07), rgba(255,255,255,0.025));
  box-shadow: 0 16px 38px rgba(0,0,0,0.22);
}

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

.first-complete-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.first-complete-head strong {
  color: rgba(242,235,220,0.96);
  font-size: 16px;
  line-height: 1.25;
  text-align: right;
}

.first-complete-card p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.55;
}

.first-complete-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.first-complete-actions button {
  appearance: none;
  border: 1px solid rgba(217,184,126,0.18);
  border-radius: 16px;
  background: rgba(217,184,126,0.06);
  color: rgba(242,235,220,0.9);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
}

.first-complete-check-output {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}


/* v0.84: v1 release candidate prep */
.release-candidate-card {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(217,184,126,0.18);
  background: linear-gradient(180deg, rgba(217,184,126,0.075), rgba(255,255,255,0.025));
  box-shadow: 0 16px 38px rgba(0,0,0,0.22);
}

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

.release-candidate-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.release-candidate-head strong {
  color: rgba(242,235,220,0.96);
  font-size: 16px;
  line-height: 1.25;
  text-align: right;
}

.release-candidate-card p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.55;
}

.release-candidate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.release-candidate-actions button {
  appearance: none;
  border: 1px solid rgba(217,184,126,0.18);
  border-radius: 16px;
  background: rgba(217,184,126,0.06);
  color: rgba(242,235,220,0.9);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
}

.release-candidate-memo-output {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}


/* v0.85: release candidate decision sheet */
.release-candidate-actions {
  grid-template-columns: 1fr 1fr 1fr;
}

.release-candidate-decision-output {
  min-height: 230px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 380px) {
  .release-candidate-actions {
    grid-template-columns: 1fr;
  }
}


/* v0.86: v1 transition declaration */
.release-candidate-actions {
  grid-template-columns: 1fr 1fr;
}

.v1-transition-output {
  min-height: 210px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}


/* v1.0 rc1 build card */
.rc-build-card {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 15px;
  border-radius: 24px;
  border: 1px solid rgba(217,184,126,0.24);
  background: linear-gradient(180deg, rgba(217,184,126,0.12), rgba(255,255,255,0.03));
  box-shadow: 0 18px 42px rgba(0,0,0,0.26);
}

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

.rc-build-head span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.rc-build-head strong {
  color: rgba(242,235,220,0.98);
  font-size: 17px;
  line-height: 1.25;
  text-align: right;
}

.rc-build-card p {
  margin: 0;
  color: rgba(242,235,220,0.72);
  font-size: 13px;
  line-height: 1.55;
}

.rc1-operation-output {
  min-height: 190px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}


/* v1.0 rc2 stability report */
.rc2-stability-output {
  min-height: 230px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}


/* v1.0 final operation */
.final-operation-output {
  min-height: 170px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}


/* v1.1: recipe image fallback for menus without final photography */
.menu-thumb,
.detail-thumb {
  object-fit: cover;
  background: #090807;
}

.image-placeholder {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(239, 234, 224, 0.72);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
  border: 1px solid rgba(217, 184, 126, 0.22) !important;
  background:
    radial-gradient(circle at 28% 22%, rgba(217, 184, 126, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(31, 26, 18, 0.98), rgba(8, 7, 6, 0.98)) !important;
}

/* v1.5/v1.5.1: ingredient search, status filters, category groups */
.ingredient-filter-card {
  display: grid;
  gap: 16px;
}

.ingredient-search-field {
  display: grid;
  gap: 8px;
}

.ingredient-search-field span,
.ingredient-filter-block > span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.ingredient-search-field input {
  width: 100%;
  border: 1px solid rgba(255, 210, 150, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 14px;
  outline: none;
}

.ingredient-search-field input:focus {
  border-color: rgba(226, 178, 104, 0.58);
  box-shadow: 0 0 0 3px rgba(226, 178, 104, 0.12);
}

.ingredient-search-field input::placeholder {
  color: rgba(242, 235, 220, 0.38);
  font-weight: 600;
}

.ingredient-filter-block {
  display: grid;
  gap: 9px;
}

.ingredient-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ingredient-filter-chips::-webkit-scrollbar {
  display: none;
}

.ingredient-filter-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 210, 150, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  padding: 9px 11px;
  white-space: nowrap;
}

.ingredient-filter-chip.is-active {
  color: var(--gold);
  border-color: rgba(226, 178, 104, 0.52);
  background: rgba(226, 178, 104, 0.105);
}

.ingredient-result-card {
  display: grid;
  gap: 12px;
}

.ingredient-result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.ingredient-result-head h3 {
  margin: 0;
}

.ingredient-result-head em {
  color: var(--gold);
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.ingredient-category-group {
  border-top: 1px solid rgba(255,255,255,0.075);
  padding-top: 12px;
}

.ingredient-category-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.ingredient-category-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}

.ingredient-category-head strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.ingredient-category-head span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.ingredient-category-mini {
  display: inline-flex !important;
  align-items: center;
  margin: 0 6px 0 0;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 150, 0.16);
  color: rgba(255, 210, 150, 0.86);
  background: rgba(255, 210, 150, 0.055);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  vertical-align: 1px;
}

/* v1.5.1: keep iPhone category strip interaction stable */
.category-filter-chips {
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

.ingredient-search-field input {
  -webkit-user-select: text;
  user-select: text;
}

/* v1.5.2: iPhone Safari Korean search input stabilization */
.ingredient-search-field input {
  letter-spacing: 0 !important;
  -webkit-text-size-adjust: 100%;
  ime-mode: active;
}


/* v1.5.4: readability font-size +2 for small labels and explanatory body copy
   Scope: small dashboard labels, home card descriptions, and detail-page helper/body text.
   Large titles, major numbers, and primary button labels are intentionally left unchanged. */

/* Home header and summary helpers */
.app-header p {
  font-size: 17px !important;
  line-height: 1.55 !important;
}

.welcome-stat span,
.price-box span {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.welcome-action small {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.welcome-ops-head span,
.welcome-ops-grid button span,
.first-complete-head span,
.release-candidate-head span {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.welcome-ops p,
.first-complete-card p,
.release-candidate-card p,
.rc-build-card p {
  font-size: 15px !important;
  line-height: 1.62 !important;
  color: rgba(242,235,220,0.76) !important;
}

/* Page subtitles and general section explanatory text */
.list-top p {
  font-size: 16px !important;
  line-height: 1.58 !important;
}

.section-card p,
.step-card p,
.note-card p,
.ingredient-card p,
.operation-note p {
  font-size: 17px !important;
  line-height: 1.62 !important;
}

.notice-list li,
.check-list li,
.service-list li {
  font-size: 17px !important;
  line-height: 1.55 !important;
}

.empty-state,
.empty-mini,
.warning-row span,
.work-request-draft-box p {
  font-size: 17px !important;
  line-height: 1.6 !important;
}

/* Management list helper text */
.manager-card p,
.cost-list-head small,
.cost-list-metrics span,
.ingredient-form-head p,
.data-tool-card p {
  font-size: 16px !important;
  line-height: 1.58 !important;
}

.manager-metrics span,
.cost-overview-grid span,
.ingredient-overview-grid span,
.manager-row span,
.ingredient-manage-row span,
.linked-menu-row span,
.admin-server-status small,
.data-tool-message,
.menu-draft-message,
.work-request-head span,
.work-request-filter-footer,
.ingredient-section-note {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Form and filter helper labels */
.ingredient-form label span,
.price-editor-form label span,
.menu-draft-form label span,
.work-request-filter-grid label span,
.work-request-search-label span,
.work-request-version-row label span,
.work-request-meta-box label span,
.work-request-complete-row label span,
.ingredient-search-field span,
.ingredient-filter-block > span,
.ingredient-category-head span {
  font-size: 15px !important;
  line-height: 1.4 !important;
}

/* Standards / data / request helper text */
.standard-rule-list p,
.standard-rule-list b,
.standard-check-list span,
.work-request-text,
.menu-draft-output,
.work-request-data-draft,
.work-request-apply-bundle,
.backup-check-report,
.first-complete-check-output,
.release-candidate-memo-output,
.release-candidate-decision-output,
.v1-transition-output,
.rc1-operation-output,
.rc2-stability-output,
.final-operation-output {
  font-size: 14px !important;
  line-height: 1.62 !important;
}

/* Small status badges: only modestly enlarged to preserve card balance. */
.ingredient-status-badge,
.ingredient-category-mini,
.work-request-status,
.work-request-version-badge,
.work-request-priority,
.work-request-priority-summary span,
.work-request-draft-status,
.work-request-ready-badge,
.work-request-draft-head b,
.work-request-draft-head span,
.work-request-head b {
  font-size: 13px !important;
  line-height: 1.15 !important;
}


/* v1.5.6: operational stability and data-sync diagnostics */
.data-health-card {
  border-color: rgba(217,184,126,0.2);
}

.data-health-card.ok,
.sync-health-card.ok {
  border-color: rgba(128,190,140,0.25);
  background: linear-gradient(145deg, rgba(90,140,100,0.12), rgba(0,0,0,0.16));
}

.data-health-card.warn,
.sync-health-card.warn {
  border-color: rgba(217,184,126,0.34);
  background: linear-gradient(145deg, rgba(217,184,126,0.11), rgba(0,0,0,0.18));
}

.data-health-card.error,
.sync-health-card.error {
  border-color: rgba(255,140,120,0.3);
  background: linear-gradient(145deg, rgba(255,120,90,0.08), rgba(0,0,0,0.18));
}

.data-health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.data-health-head h3 {
  margin: 0;
}

.data-health-head b {
  flex: 0 0 auto;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.data-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.data-health-grid div {
  min-height: 68px;
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  padding: 12px 14px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.data-health-grid span {
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  letter-spacing: -0.02em;
}

.data-health-grid strong {
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.04em;
  word-break: break-all;
}

.data-health-report {
  min-height: 260px;
  margin-top: 10px;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.sync-health-card p,
.data-health-card p {
  font-size: 16px !important;
  line-height: 1.58 !important;
}


/* v1.5.14 참고 영상 / 운영 메모 */
.reference-video-card,
.operation-memo-card {
  border-color: rgba(217,184,126,0.26);
}

.reference-video-guide,
.operation-memo-guide {
  margin: 0 0 14px;
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: var(--muted);
}

.reference-video-item {
  padding: 14px;
  border: 1px solid rgba(217,184,126,0.18);
  border-radius: 18px;
  background: rgba(0,0,0,0.16);
  display: grid;
  gap: 12px;
}

.reference-video-title {
  color: var(--text);
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.reference-video-button {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(217,184,126,0.38);
  background: linear-gradient(135deg, rgba(217,184,126,0.22), rgba(217,184,126,0.08));
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.reference-video-button.disabled {
  color: var(--muted);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.reference-point-list {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.reference-point-list li + li {
  margin-top: 6px;
}

.operation-memo-form {
  display: grid;
  gap: 12px;
}

.operation-memo-form textarea {
  width: 100%;
  min-height: 180px;
  border: 1px solid rgba(217,184,126,0.24);
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
  color: var(--text);
  padding: 14px;
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

.operation-memo-form textarea:focus {
  border-color: rgba(217,184,126,0.58);
  box-shadow: 0 0 0 3px rgba(217,184,126,0.10);
}

.operation-memo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operation-memo-actions span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.operation-memo-actions button {
  flex: 0 0 auto;
  border: 1px solid rgba(217,184,126,0.38);
  background: rgba(217,184,126,0.16);
  color: var(--gold);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 750;
}
