/* ============================================================
 * panels.css — 设计 / 配方 / 顾客 / 商店 四个面板 v17.1
 * 新增：.cust-actions 底部操作条
 * ============================================================ */

/* ============ 设计页子导航 ============ */
.craft-subnav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px 8px 0;
  background: #EAD7BE;
}
.csn-btn {
  border: none; background: #FFFCF6; color: #A88A6A;
  font-family: inherit; font-size: 13px; font-weight: 800;
  padding: 10px 4px; cursor: pointer;
  box-shadow: inset -2px -2px 0 0 #D8C4A8, inset 2px 2px 0 0 #FFF;
  letter-spacing: 1px;
  transition: .12s;
}
.csn-btn.on {
  background: #FFA95C; color: #fff;
  box-shadow: inset -3px -3px 0 0 rgba(180,90,30,.35), inset 3px 3px 0 0 rgba(255,255,255,.35);
}
.csn-btn:active { transform: translateY(2px); }

.subpanel { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ============ 分类栏 ============ */
.cat-bar {
  flex-shrink: 0;
  display: flex; gap: 4px;
  padding: 8px;
  background: #F5E6D3;
  box-shadow: 0 3px 0 0 #E0CBB0;
}
.cat-btn {
  flex: 1; border: none;
  background: #EFE0CE; color: #8A6A50;
  font-family: inherit; font-size: 11px; font-weight: 700;
  padding: 8px 2px; cursor: pointer;
  box-shadow: inset -2px -2px 0 0 rgba(140,110,80,.18), inset 2px 2px 0 0 rgba(255,255,255,.6);
  transition: .1s;
}
.cat-btn.on {
  background: #FFA95C; color: #fff;
  box-shadow: inset -2px -2px 0 0 rgba(180,90,30,.35), inset 2px 2px 0 0 rgba(255,255,255,.35);
}
.cat-btn:active { transform: translateY(2px); }

/* ============ 原料格子 ============ */
.ing-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 8px;
  -webkit-overflow-scrolling: touch;
}
.ing-scroll::-webkit-scrollbar { width: 5px; }
.ing-scroll::-webkit-scrollbar-track { background: #EAD7BE; }
.ing-scroll::-webkit-scrollbar-thumb { background: #B89878; }

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

.ing-btn {
  border: none;
  background: #FFFCF6;
  color: #5A3A24;
  font-family: inherit;
  padding: 8px 6px 6px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  position: relative;
  box-shadow: inset -2px -2px 0 0 #E0CBB0, inset 2px 2px 0 0 #FFF;
  transition: box-shadow .12s;
  overflow: hidden;
}
.ing-btn.on {
  background: #FFD9A8;
  box-shadow: inset -2px -2px 0 0 #C99050, inset 2px 2px 0 0 #FFEAC8, 0 0 0 2px #E8703A;
}
.ing-btn.locked { opacity: .85; background: #E8DCC8; }
.ing-btn.locked .ing-img { filter: grayscale(.6) brightness(.85); }

.ing-btn .ing-img {
  width: 52px; height: 52px;
  image-rendering: pixelated;
  cursor: pointer;
  transition: transform .12s;
  flex-shrink: 0;
}
.ing-btn.on .ing-img { animation: ingBounce .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes ingBounce {
  0%   { transform: scale(1) rotate(0); }
  40%  { transform: scale(1.15) rotate(-8deg); }
  70%  { transform: scale(.94) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

.ing-btn .ing-name {
  font-size: 11px; font-weight: 800;
  text-align: center;
  line-height: 1.1;
  margin-top: 2px;
}
.ing-btn .ing-cost {
  font-size: 9px; color: #C4A88A;
  text-align: center;
}
.ing-btn.on .ing-cost { color: #A87040; }
.ing-btn .ing-lock {
  font-size: 9px; color: #E8703A; font-weight: 800;
  background: #FFF0D0;
  padding: 1px 5px;
  margin-top: 2px;
}

/* 用量 +/- 控件 */
.ing-qty {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  margin-top: 4px;
  gap: 2px;
}
.ing-qty-btn {
  width: 20px; height: 20px;
  border: none;
  background: #EFE0CE;
  color: #7A4A28;
  font-family: inherit;
  font-size: 13px; font-weight: 900;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset -1px -1px 0 0 rgba(140,110,80,.2), inset 1px 1px 0 0 rgba(255,255,255,.7);
  line-height: 1;
  padding: 0;
  transition: .08s;
  flex-shrink: 0;
}
.ing-qty-btn:active { transform: translateY(1px); }
.ing-qty-btn.plus { background: #FFA95C; color: #fff; }
.ing-qty-btn.plus:active { background: #E8703A; }
.ing-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.ing-qty-num {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #5A3A24;
  min-width: 24px;
}
.ing-qty-num.zero { color: #C4A88A; font-weight: 600; }

.ing-unlock-btn {
  width: 100%;
  border: none;
  background: #FFA95C;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 2px;
  margin-top: 4px;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 rgba(180,90,30,.35), inset 2px 2px 0 0 rgba(255,255,255,.35);
}
.ing-unlock-btn:active { transform: translateY(1px); }

/* ============ 动作条 ============ */
.action-bar {
  flex-shrink: 0;
  display: grid;
  gap: 5px;
  padding: 8px;
  background: #EAD7BE;
  box-shadow: inset 0 3px 0 0 #D0B896;
}
.action-bar.three { grid-template-columns: 1fr 1fr 1.4fr; }
.action-bar.three .pixel-btn { flex-direction: row; padding: 10px 4px; }
.action-bar.three .pixel-btn .btn-txt { font-size: 13px; }

/* ============ 定制内联面板 ============ */
.config-inline-scroll {
  flex: 1; overflow-y: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.config-inline-scroll::-webkit-scrollbar { width: 5px; }
.config-inline-scroll::-webkit-scrollbar-thumb { background: #B89878; }

.config-group {
  margin-bottom: 14px;
  background: #FFFCF6;
  padding: 10px;
  box-shadow: inset -3px -3px 0 0 #E0CBB0, inset 3px 3px 0 0 #FFF, 0 3px 0 0 #C9A07A;
}
.config-group-title {
  font-size: 12px; font-weight: 800; color: #8A6A50;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}
.config-group-title::before { content: ''; width: 3px; height: 12px; background: #E8703A; }

.config-options.six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.config-opt {
  border: none; background: #FFFCF6; color: #8A6A50;
  font-family: inherit; font-size: 11px; font-weight: 700;
  padding: 10px 6px 9px; cursor: pointer;
  box-shadow: inset -2px -2px 0 0 #E0CBB0, inset 2px 2px 0 0 #FFF;
  transition: transform .08s;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.config-opt:active { transform: scale(.96); }
.config-opt.on {
  background: #FFD9A8; color: #7A4A28;
  box-shadow: inset -2px -2px 0 0 #C99050, inset 2px 2px 0 0 #FFEAC8, 0 0 0 2px #E8703A;
}
.config-opt-preview {
  width: 56px; height: 56px;
  image-rendering: pixelated;
  background: #F5E8D8;
  box-shadow: inset -1px -1px 0 0 #D8C4A8, inset 1px 1px 0 0 #FFF;
}
.config-opt-name { font-size: 12px; font-weight: 800; }
.config-opt-desc { font-size: 9.5px; opacity: .85; text-align: center; }

.config-opt.locked {
  opacity: .78;
  background: #EDE0D0;
  box-shadow: inset -2px -2px 0 0 #D0C0A8, inset 2px 2px 0 0 #FFF8F0;
}
.config-opt.locked .config-opt-preview { filter: grayscale(.55) brightness(.85); }
.config-opt.locked .config-opt-name { color: #8A6A50; }
.config-opt-lock {
  font-size: 9px;
  color: #C06030;
  font-weight: 800;
  background: #FFF0D0;
  padding: 1px 5px;
}

/* ============ 图标设计器 ============ */
.icon-area {
  flex: 1; overflow-y: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.icon-area::-webkit-scrollbar { width: 5px; }
.icon-area::-webkit-scrollbar-thumb { background: #B89878; }

.icon-locked {
  text-align: center;
  padding: 30px 20px;
  background: #FFFCF6;
  box-shadow: inset -3px -3px 0 0 #E0CBB0, inset 3px 3px 0 0 #FFF, 0 3px 0 0 #C9A07A;
}
.icon-locked .lock-emoji { font-size: 40px; margin-bottom: 12px; display: block; opacity: .5; }
.icon-locked h3 { font-size: 14px; color: #5A3A24; margin-bottom: 8px; font-weight: 800; }
.icon-locked p { font-size: 11.5px; color: #8A6A50; line-height: 1.7; margin-bottom: 14px; }

.icon-section {
  background: #FFFCF6; padding: 10px; margin-bottom: 10px;
  box-shadow: inset -3px -3px 0 0 #E0CBB0, inset 3px 3px 0 0 #FFF, 0 3px 0 0 #C9A07A;
}
.icon-section h4 { font-size: 12px; color: #5A3A24; margin-bottom: 8px; font-weight: 800; display: flex; align-items: center; gap: 5px; }
.icon-section h4::before { content: ''; width: 3px; height: 12px; background: #E8703A; }

.icon-mode-row { display: flex; gap: 5px; margin-bottom: 10px; }
.icon-mode-btn {
  flex: 1; border: none; background: #EFE0CE; color: #8A6A50;
  font-family: inherit; font-size: 11px; font-weight: 800;
  padding: 7px; cursor: pointer;
  box-shadow: inset -2px -2px 0 0 rgba(140,110,80,.18), inset 2px 2px 0 0 rgba(255,255,255,.6);
}
.icon-mode-btn.on { background: #FFA95C; color: #fff; }

.icon-canvas-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
#icon-canvas {
  image-rendering: pixelated; image-rendering: crisp-edges;
  background: #FFF;
  box-shadow: inset 0 0 0 3px #A87B54, 0 4px 0 0 #7A5638;
  cursor: crosshair;
  touch-action: none;
  max-width: 100%;
}
.icon-palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 10px; }
.icon-color-btn { border: none; aspect-ratio: 1; cursor: pointer; box-shadow: inset -2px -2px 0 0 rgba(0,0,0,.2), inset 2px 2px 0 0 rgba(255,255,255,.4); position: relative; }
.icon-color-btn.on { box-shadow: inset -2px -2px 0 0 rgba(0,0,0,.3), inset 2px 2px 0 0 rgba(255,255,255,.6), 0 0 0 2px #E8703A; }
.icon-tool-row { display: flex; gap: 5px; margin-bottom: 10px; }
.icon-tool-btn {
  flex: 1; border: none; background: #EFE0CE; color: #8A6A50;
  font-family: inherit; font-size: 11px; font-weight: 800;
  padding: 7px; cursor: pointer;
  box-shadow: inset -2px -2px 0 0 rgba(140,110,80,.18), inset 2px 2px 0 0 rgba(255,255,255,.6);
}
.icon-tool-btn.on { background: #5EA83A; color: #fff; }
.icon-tool-btn.erase.on { background: #C04030; color: #fff; }
.icon-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }

/* ============ 配方页 ============ */
.queue-bar {
  flex-shrink: 0;
  background: #FFF8E8;
  padding: 8px 10px;
  box-shadow: 0 3px 0 0 #E0CBB0;
  min-height: 46px;
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto;
}
.queue-bar::-webkit-scrollbar { height: 3px; }
.queue-bar::-webkit-scrollbar-thumb { background: #B89878; }
.queue-empty { flex: 1; font-size: 11px; color: #B89878; font-style: italic; text-align: center; }
.queue-item {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  background: #FFFCF6; padding: 4px 8px 4px 4px;
  box-shadow: inset -2px -2px 0 0 #E0CBB0, inset 2px 2px 0 0 #FFF, 0 2px 0 0 #C9A07A;
  min-width: 140px;
}
.queue-item img { width: 32px; height: 32px; image-rendering: pixelated; background: #F5E8D8; }
.queue-info { flex: 1; min-width: 0; }
.queue-name { font-size: 10px; font-weight: 800; color: #5A3A24; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-progress-bar { height: 5px; background: #EAD7BE; margin-top: 2px; position: relative; overflow: hidden; }
.queue-progress-fill { height: 100%; background: #5EA83A; transition: width .1s linear; }
.queue-count { font-size: 10px; color: #E8703A; font-weight: 800; margin-left: 2px; }

.shelf-status {
  flex-shrink: 0;
  padding: 5px 10px;
  background: #6B4028;
  color: #FFE7C9;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 0 0 #4A2A18;
}
.shelf-status b { color: #FFD98A; font-size: 13px; }
.shelf-status .limit-warn { color: #FFA95C; }

.recipe-sort-row {
  flex-shrink: 0;
  display: flex; gap: 4px;
  padding: 6px 10px;
  background: #F5E6D3;
  box-shadow: inset 0 -2px 0 0 #E0CBB0;
}
.recipe-sort-btn {
  flex: 1;
  border: none;
  background: #EFE0CE;
  color: #8A6A50;
  font-family: inherit;
  font-size: 10.5px; font-weight: 800;
  padding: 6px 4px;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 rgba(140,110,80,.18), inset 2px 2px 0 0 rgba(255,255,255,.6);
  white-space: nowrap;
}
.recipe-sort-btn.on {
  background: #FFA95C; color: #fff;
  box-shadow: inset -2px -2px 0 0 rgba(180,90,30,.35), inset 2px 2px 0 0 rgba(255,255,255,.35);
}
.recipe-sort-btn .arrow { font-size: 9px; opacity: .9; margin-left: 2px; }

.recipe-scroll { flex: 1; overflow-y: auto; padding: 10px; -webkit-overflow-scrolling: touch; }
.recipe-scroll::-webkit-scrollbar { width: 5px; }
.recipe-scroll::-webkit-scrollbar-thumb { background: #B89878; }
.recipe-card {
  background: #FFFCF6; padding: 10px; margin-bottom: 8px;
  display: flex; gap: 10px;
  box-shadow: inset -3px -3px 0 0 #E0CBB0, inset 3px 3px 0 0 #FFF, 0 3px 0 0 #C9A07A;
  animation: custIn .25s ease-out;
}
.recipe-preview {
  width: 68px; height: 68px; flex-shrink: 0;
  background: #F5E8D8;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset -2px -2px 0 0 #D8C4A8, inset 2px 2px 0 0 #FFF;
  position: relative;
}
.recipe-preview img { width: 64px; height: 64px; image-rendering: pixelated; }
.recipe-preview .recipe-sticker {
  position: absolute; top: 2px; right: 2px;
  width: 24px; height: 24px;
  image-rendering: pixelated;
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.recipe-content { flex: 1; min-width: 0; }
.recipe-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.recipe-name { font-size: 13px; font-weight: 800; color: #5A3A24; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipe-price-tag { font-size: 12px; color: #E8703A; font-weight: 800; background: #FFE7C9; padding: 1px 6px; }
.recipe-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 5px; }
.recipe-tags .tag { font-size: 9.5px; }
.recipe-meta { font-size: 10px; color: #A88A6A; margin-bottom: 6px; }
.recipe-meta b { color: #E8703A; }
.recipe-actions { display: flex; gap: 4px; }
.recipe-actions .pixel-btn { flex: 1; flex-direction: row; font-size: 10px; padding: 7px 2px; gap: 2px; }
.recipe-actions .pixel-btn.edit { background: #FFD9A8; color: #7A4A28; box-shadow: inset -2px -2px 0 0 #C99050, inset 2px 2px 0 0 #FFEAC8, 0 3px 0 0 #B57040; }

/* ============ 顾客页 ============ */
.assistant-bar {
  flex-shrink: 0;
  padding: 6px 10px;
  background: linear-gradient(90deg, #4A6A30, #5EA83A);
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 3px 0 0 #2A4018;
}
.assistant-bar .ab-status { flex: 1; }
.assistant-bar .ab-toggle {
  border: none;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-family: inherit; font-size: 10px; font-weight: 800;
  padding: 4px 10px;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 rgba(0,0,0,.15), inset 2px 2px 0 0 rgba(255,255,255,.2);
}
.assistant-bar.off {
  background: linear-gradient(90deg, #5A5048, #7A6A58);
  box-shadow: 0 3px 0 0 #3A3028;
}

.shelf-bar {
  flex-shrink: 0;
  padding: 8px;
  background: #F5E6D3;
  box-shadow: 0 3px 0 0 #E0CBB0;
  display: flex; gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 96px;
}
.shelf-bar::-webkit-scrollbar { height: 4px; }
.shelf-bar::-webkit-scrollbar-thumb { background: #B89878; }
.shelf-empty { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #A88A6A; font-style: italic; padding: 20px 0; }
.shelf-item {
  flex-shrink: 0; width: 68px;
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 4px 2px;
  background: #FFFCF6;
  box-shadow: inset -2px -2px 0 0 #E0CBB0, inset 2px 2px 0 0 #FFF, 0 2px 0 0 #C9A07A;
  animation: shelfIn .3s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  cursor: pointer;
  transition: transform .08s;
}
.shelf-item:active { transform: scale(.95); }
@keyframes shelfIn {
  0%   { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.shelf-item img.shelf-img { width: 44px; height: 44px; image-rendering: pixelated; }
.shelf-name { font-size: 9px; font-weight: 700; color: #5A3A24; text-align: center; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.shelf-price { font-size: 10px; font-weight: 800; color: #E8703A; }
.shelf-hot { position: absolute; top: -3px; right: -3px; font-size: 8px; font-weight: 900; color: #fff; padding: 1px 4px; line-height: 1.2; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.shelf-hot.cheap { background: #5EA83A; }
.shelf-hot.mid { background: #E8703A; }
.shelf-hot.pricey { background: #A05020; }
.shelf-sticker {
  position: absolute;
  bottom: 18px; left: 2px;
  width: 18px; height: 18px;
  image-rendering: pixelated;
  opacity: .85;
}

.cust-scroll { flex: 1; overflow-y: auto; padding: 10px; -webkit-overflow-scrolling: touch; }
.cust-scroll::-webkit-scrollbar { width: 5px; }
.cust-scroll::-webkit-scrollbar-thumb { background: #B89878; }
.cust-card {
  background: #FFFCF6;
  padding: 10px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: inset -3px -3px 0 0 #E0CBB0, inset 3px 3px 0 0 #FFF, 0 3px 0 0 #C9A07A;
  animation: custIn .32s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}
@keyframes custIn {
  0%   { transform: translateX(40px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.cust-avatar {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #F0E0CC;
  box-shadow: inset -2px -2px 0 0 #D8C0A0, inset 2px 2px 0 0 #FFF;
}
.cust-avatar img { width: 44px; height: 44px; image-rendering: pixelated; animation: avatarBob 2s ease-in-out infinite; }
@keyframes avatarBob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-3px); }
}
.cust-info { flex: 1; min-width: 0; }
.cust-title { display: flex; align-items: baseline; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.cust-name { font-size: 13px; font-weight: 800; color: #5A3A24; }
.cust-budget {
  font-size: 10px; color: #C06030; font-weight: 800;
  background: #FFE7C9;
  padding: 1px 6px;
  box-shadow: inset -1px -1px 0 0 #D0B890, inset 1px 1px 0 0 #FFF0D0;
}
.cust-budget.high { background: #E8FFD8; color: #4A8820; box-shadow: inset -1px -1px 0 0 #B8E090, inset 1px 1px 0 0 #FFFFFF; }
.cust-line { font-size: 11px; color: #8A6A50; line-height: 1.4; font-style: italic; }
.cust-serve {
  flex-shrink: 0;
  border: none;
  background: #FFA95C; color: #fff;
  font-family: inherit; font-size: 11px; font-weight: 800;
  padding: 10px 11px;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 rgba(180,90,30,.35), inset 2px 2px 0 0 rgba(255,255,255,.35), 0 3px 0 0 #B5642F;
}
.cust-serve:active { transform: translateY(3px); box-shadow: inset -2px -2px 0 0 rgba(180,90,30,.35), inset 2px 2px 0 0 rgba(255,255,255,.35); }
.cust-serve:disabled { opacity: .35; }
.cust-empty { text-align: center; padding: 40px 20px; font-size: 12px; color: #A88A6A; line-height: 1.9; }
.cust-empty .big-ico {
  display: block; width: 48px; height: 48px;
  margin: 0 auto 10px;
  background: #D8B890;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: .5;
}

/* ★ 销售页底部操作条 */
.cust-actions {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 8px;
  background: #EAD7BE;
  box-shadow: inset 0 3px 0 0 #D0B896;
}
.cust-action-btn {
  border: none;
  background: #FFD9A8;
  color: #7A4A28;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 11px 8px;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 0 #C99050, inset 2px 2px 0 0 #FFEAC8, 0 3px 0 0 #B57040;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cust-action-btn:active { transform: translateY(3px); box-shadow: inset -2px -2px 0 0 #C99050, inset 2px 2px 0 0 #FFEAC8; }
.cust-action-btn.open {
  background: #FFA95C; color: #fff;
  box-shadow: inset -2px -2px 0 0 rgba(180,90,30,.35), inset 2px 2px 0 0 rgba(255,255,255,.35), 0 3px 0 0 #B5642F;
}
.cust-action-btn.paused {
  background: #5EA83A; color: #fff;
  box-shadow: inset -2px -2px 0 0 #3A7A20, inset 2px 2px 0 0 rgba(255,255,255,.3), 0 3px 0 0 #2A5A18;
}

/* ============ 商店 ============ */
.shop-scroll { flex: 1; overflow-y: auto; padding: 10px; -webkit-overflow-scrolling: touch; }
.shop-scroll::-webkit-scrollbar { width: 5px; }
.shop-scroll::-webkit-scrollbar-thumb { background: #B89878; }
.shop-money {
  text-align: center; padding: 10px; margin-bottom: 10px;
  background: #6B4028; color: #FFE7C9;
  font-size: 13px; font-weight: 700;
  box-shadow: inset -3px -3px 0 0 rgba(0,0,0,.25), inset 3px 3px 0 0 rgba(255,255,255,.12);
}
.shop-money b { color: #FFD98A; font-size: 17px; margin-left: 4px; }
.upg-card {
  display: flex; align-items: center; gap: 10px;
  background: #FFFCF6; padding: 10px; margin-bottom: 8px;
  box-shadow: inset -3px -3px 0 0 #E0CBB0, inset 3px 3px 0 0 #FFF, 0 3px 0 0 #C9A07A;
}
.upg-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  image-rendering: pixelated;
  background: #F5E8D8;
  box-shadow: inset -2px -2px 0 0 #D8C4A8, inset 2px 2px 0 0 #FFF;
}
.upg-info { flex: 1; min-width: 0; }
.upg-name { font-size: 13px; font-weight: 800; color: #5A3A24; margin-bottom: 2px; }
.upg-name .lv { font-size: 10px; color: #A88A6A; margin-left: 4px; font-weight: 600; }
.upg-desc { font-size: 10.5px; color: #8A6A50; line-height: 1.4; margin-bottom: 3px; }
.upg-cost { font-size: 10.5px; color: #C06030; font-weight: 700; }
.upg-cost.max { color: #5EA83A; }
.upg-buy {
  border: none;
  font-family: inherit; font-size: 11px; font-weight: 800;
  padding: 9px 11px;
  cursor: pointer;
  background: #FFA95C; color: #fff;
  box-shadow: inset -2px -2px 0 0 rgba(180,90,30,.35), inset 2px 2px 0 0 rgba(255,255,255,.35), 0 3px 0 0 #B5642F;
  flex-shrink: 0;
}
.upg-buy:active { transform: translateY(3px); box-shadow: inset -2px -2px 0 0 rgba(180,90,30,.35), inset 2px 2px 0 0 rgba(255,255,255,.35); }
.upg-buy:disabled { opacity: .35; }

/* ============ 图标库 ============ */
.icon-history-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.icon-history-item {
  position: relative;
  background: #F5E8D8;
  box-shadow: inset -2px -2px 0 0 #D8C4A8, inset 2px 2px 0 0 #FFF, 0 2px 0 0 #C9A07A;
  cursor: pointer;
  transition: transform .08s;
  padding: 3px;
  aspect-ratio: 1;
}
.icon-history-item:active { transform: scale(.94); }
.icon-history-item img {
  width: 100%; height: 100%;
  image-rendering: pixelated;
  display: block;
}
.icon-history-item.on {
  box-shadow: inset -2px -2px 0 0 #C99050, inset 2px 2px 0 0 #FFEAC8, 0 0 0 2px #E8703A;
}
.icon-history-del {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border: none;
  background: #C04030; color: #fff;
  font-family: inherit;
  font-size: 11px; font-weight: 900;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 0 rgba(120,30,20,.4);
  padding: 0;
}
.icon-history-del:active { transform: translateY(2px); box-shadow: none; }

/* ============ 窄屏 ============ */
@media (max-width: 360px) {
  .ing-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ing-btn .ing-img { width: 44px; height: 44px; }
  .config-options.six { grid-template-columns: repeat(2, 1fr); }
  .icon-history-grid { grid-template-columns: repeat(4, 1fr); }
}