:root{
  --bg: #f3fdf8; --panel: #ffffff; --panel-2: #e9f7ef; --line: #d3e9dd;
  --accent: #06c755; --accent-2: #04a848; --accent-soft: #c9f0d8; --accent-dim: #eefaf3;
  --text: #142b1e; --muted: #55705f; --muted-2: #92aa9c; --bad: #b3402f;
}

.section-box{ background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 18px; }
.label{ display: block; font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--text); }

.search-row{ display: flex; gap: 10px; flex-wrap: wrap; }
.input-box{ flex: 1; min-width: 200px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; box-sizing: border-box; font-family: 'JetBrains Mono', monospace; font-size: 13.5px; background: #fff; color: var(--text); }
.input-box:focus{ outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(4,168,72,.15); }
.hint{ font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.hint b{ font-family: 'JetBrains Mono', monospace; color: var(--accent-2); }

.app{ padding: 12px 20px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 13.5px; font-family: 'Inter', sans-serif; white-space: nowrap; transition: filter .15s ease, box-shadow .15s ease; box-shadow: 0 2px 8px rgba(6,199,85,.3); }
.app:hover{ filter: brightness(1.06); }
.app:disabled{ opacity: .6; cursor: default; filter: none; box-shadow: none; }
.app.ghost{ background: #fff; color: var(--accent-2); border: 1px solid var(--accent-2); box-shadow: none; }
.app.ghost:hover{ background: var(--accent-dim); }
.clear{ padding: 12px 20px; background: #fff; color: var(--bad); border: 1px solid #e6c4bd; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; font-family: 'Inter', sans-serif; }
.clear:hover{ background: #fbeeec; }

.pack-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pack-title{ font-size: 16px; font-weight: 800; color: var(--text); }

.result-box{ background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; min-height: 140px; }

.grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

.stat-card{ background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; animation: lsd-fade .25s ease-in; display: flex; flex-direction: column; gap: 8px; }
.sticker{ width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.card-title{ font-size: 11px; color: var(--muted); }
.dl-btn{ padding: 6px 10px; font-size: 11.5px; font-weight: 700; background: var(--accent-dim); color: var(--accent-2); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-family: inherit; }
.dl-btn:hover{ background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.dl-btn.done{ background: var(--accent); color: #fff; border-color: var(--accent); }

.loader{ grid-column: 1 / -1; text-align: center; padding: 34px 16px; color: var(--muted); animation: lsd-pulse 1s infinite; }
.error-box{ grid-column: 1 / -1; background: #f8e2df; color: var(--bad); border-radius: 8px; padding: 14px 16px; font-weight: 600; font-size: 13.5px; text-align: center; }

@keyframes lsd-pulse{ 0%{ opacity: .35; } 50%{ opacity: 1; } 100%{ opacity: .35; } }
@keyframes lsd-fade{ from{ opacity: 0; transform: translateY(4px); } to{ opacity: 1; transform: translateY(0); } }

.note{ margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.6; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.note code{ background: var(--accent-dim); border-radius: 4px; padding: 1px 5px; font-family: 'JetBrains Mono', monospace; }

@media (max-width: 560px){ .search-row{ flex-direction: column; align-items: stretch; } }
