body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
button { font: inherit; }
.bar .icon-btn.on { color: var(--orange); }
.bar .add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 36px; padding: 0 12px 0 10px; margin-right: 2px; border: 0;
  border-radius: 999px; cursor: pointer; flex: none;
  background: linear-gradient(135deg, #FFB74D, #F57C00); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: .01em;
  box-shadow: 0 4px 10px rgba(245,124,0,.28);
}
.bar .add-btn svg { width: 16px; height: 16px; flex: none; }
.bar .add-btn[hidden] { display: none; }
.page { max-width: 720px; margin: 0 auto; padding: 8px 0 24px; }
@media (min-width: 720px) { .page { padding: 8px 8px 24px; } }
.state {
  margin: 24px 16px; padding: 28px 20px; border-radius: 16px; background: #fff;
  text-align: center; border: 1px solid var(--line);
}
.state .cta.ghost {
  background: transparent; color: var(--orange); border: 1px solid color-mix(in srgb, var(--orange) 40%, #fff);
}
.state[hidden], #mine-list[hidden] { display: none; }
.mtile {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 10px; padding: 12px;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: inherit;
}
@media (min-width: 720px) {
  .mtile { border-radius: 14px; border: 1px solid color-mix(in srgb, var(--orange) 32%, #fff); }
}
.mtile .cover {
  flex: none; width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  background: #E6F0ED; display: grid; place-items: center; color: rgba(11,110,110,.4);
}
.mtile .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtile .cover svg { width: 28px; height: 28px; }
.mtile .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mtile .t {
  font-weight: 700; font-size: 14px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mtile .price { color: var(--orange); font-weight: 800; font-size: 15px; }
.mtile .stock { color: var(--muted); font-size: 12px; }
.mtile .stock.oos { color: #C0392B; font-weight: 700; }
.mtile .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.mtile .chip {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--chip, var(--orange)) 12%, #fff);
  color: var(--chip, var(--orange));
}
.sheet-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 80vh; overflow: auto;
  background: #fff; border-radius: 20px 20px 0 0; padding: 8px 16px 24px;
  box-shadow: 0 -8px 30px rgba(0,0,0,.12);
}
.sheet-handle {
  width: 36px; height: 4px; border-radius: 999px; background: rgba(28,36,35,.18);
  margin: 6px auto 12px;
}
.sheet-panel h2 { margin: 0 0 12px; font-size: 17px; }
.sheet-section {
  margin: 4px 4px 6px; font-size: 12px; font-weight: 800;
  color: rgba(28,36,35,.55); letter-spacing: .02em;
}
.sheet-divider {
  height: 1px; margin: 10px 0; background: var(--line); border: 0;
}
.sheet-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 4px; border: 0; border-bottom: 0;
  background: transparent; text-align: left; cursor: pointer; color: inherit;
}
.sheet-item .ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: var(--ico, #F57C00);
  background: color-mix(in srgb, var(--ico, #F57C00) 14%, #fff);
}
.sheet-item .ico svg { width: 20px; height: 20px; }
.sheet-item .meta { flex: 1; min-width: 0; }
.sheet-item .meta strong { display: block; font-size: 15px; }
.sheet-item .meta span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sheet-item .chev { color: var(--muted); flex: none; width: 18px; height: 18px; }
.sheet-item.on strong { color: var(--orange); }
.sheet-clear {
  display: block; width: 100%; margin-top: 12px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #F3F7F6; font-weight: 700; cursor: pointer;
}
