:root{--bg: #f8fafc;--card: #ffffff;--ink: #1e293b;--muted: #64748b;--line: #e2e8f0;--accent: #4f46e5;--accent-hover: #4338ca;--accent-soft: #eef2ff;--emerald: #10b981;--emerald-soft: #ecfdf5;--amber: #f59e0b;--amber-soft: #fffbeb;--rose: #ef4444;--rose-soft: #fef2f2}*{box-sizing:border-box}body{margin:0;font-family:Prompt,Inter,system-ui,-apple-system,sans-serif;background:var(--card);color:var(--ink);line-height:1.5;-webkit-font-smoothing:antialiased}.container{max-width:820px;margin:0 auto;padding:16px}.denied-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at top,#fee2e2 0%,var(--bg) 45%)}.denied-card{max-width:460px;width:100%;background:var(--card);border:1px solid #fecaca;border-radius:18px;padding:28px 24px;text-align:center;box-shadow:0 20px 40px -10px #ef44441f}.denied-icon{width:56px;height:56px;margin:0 auto 14px;border-radius:14px;background:var(--rose-soft);color:var(--rose);display:grid;place-items:center;font-size:26px}.denied-card h1{margin:0 0 6px;font-size:20px;font-weight:700}.denied-card p{margin:0 0 18px;font-size:13px;color:var(--muted)}.check-list{text-align:left;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:13px;display:flex;flex-direction:column;gap:8px}.check-item{display:flex;align-items:center;justify-content:space-between;gap:10px}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.badge-ok{background:var(--emerald-soft);color:#047857;border:1px solid #a7f3d0}.badge-fail{background:var(--rose-soft);color:#b91c1c;border:1px solid #fecaca}.meta-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid var(--line);font-size:12px}.meta-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:8px;background:#f8fafc;border:1px solid var(--line);color:var(--muted);font-weight:500}.meta-pill strong{color:var(--ink);font-weight:700}.section-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.section-title{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:var(--ink)}.section-title svg{color:var(--accent);flex-shrink:0}.section-note{font-size:12px;color:var(--muted)}.btn-send{width:100%;margin-top:14px;border:none;background:var(--accent);color:#fff;padding:11px 18px;border-radius:10px;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s ease,opacity .15s ease}.btn-send:hover:not(:disabled){background:var(--accent-hover)}.btn-send:disabled{opacity:.5;cursor:not-allowed}.alert{margin-top:12px;padding:10px 14px;border-radius:10px;font-size:13px;font-weight:500;display:flex;align-items:flex-start;gap:8px}.alert-ok{background:var(--emerald-soft);border:1px solid #a7f3d0;color:#065f46}.alert-err{background:var(--rose-soft);border:1px solid #fecaca;color:#991b1b}.hidden{display:none!important}.loading-state{min-height:160px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;font-weight:500}.dropzone{border:1.5px dashed #cbd5e1;border-radius:12px;background:#fff;padding:32px 16px;text-align:center;cursor:pointer;transition:all .16s ease}.dropzone:hover,.dropzone:focus-visible,.dropzone.dragover{border-color:var(--accent);background:var(--accent-soft);outline:none}.dropzone-icon{color:var(--accent);margin-bottom:8px;display:inline-flex;align-items:center;justify-content:center}.dropzone-title{font-size:14px;font-weight:600;color:var(--accent);margin-bottom:4px}.dropzone-sub{font-size:12px;color:var(--muted)}.file-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.file-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:#f8fafc;font-size:13px}.file-info{display:flex;align-items:center;gap:10px;min-width:0}.file-info-text{min-width:0}.file-thumb{width:36px;height:36px;border-radius:8px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:16px;overflow:hidden;flex-shrink:0}.file-thumb img{width:100%;height:100%;object-fit:cover}.file-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-size{font-size:11px;color:var(--muted)}.btn-remove{border:none;background:var(--rose-soft);color:var(--rose);width:26px;height:26px;border-radius:8px;cursor:pointer;font-weight:700;flex-shrink:0}.btn-remove:hover{background:#fecaca}.result-box{border:1px solid var(--line);border-radius:12px;background:#f8fafc;padding:14px;min-height:120px}.empty-state{color:var(--muted);font-size:13px;text-align:center;padding:28px 12px}.kv-list{display:flex;flex-direction:column;gap:8px}.kv-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:8px 10px;border-radius:8px;background:#fff;border:1px solid var(--line);font-size:13px}.kv-key{color:var(--muted);font-weight:500;flex-shrink:0}.kv-val{color:var(--ink);font-weight:600;text-align:right;word-break:break-word}details.raw-details{margin-top:12px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 12px}details.raw-details summary{cursor:pointer;font-size:12px;font-weight:600;color:var(--muted)}pre.json-box{margin:10px 0 0;background:#0f172a;color:#e2e8f0;padding:12px;border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.55;overflow-x:auto;max-height:300px;overflow-y:auto}.btn-fetch{width:100%;margin-top:14px;border:none;background:var(--accent);color:#fff;padding:11px 18px;border-radius:10px;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s ease,opacity .15s ease}.btn-fetch:hover:not(:disabled){background:var(--accent-hover)}.btn-fetch:disabled{opacity:.5;cursor:not-allowed}.home-header{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}.home-title{margin:0 0 4px;font-size:20px;font-weight:700;color:var(--ink)}.home-subtitle{margin:0;font-size:13px;color:var(--muted)}.home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.home-card{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:12px;border:1px solid var(--line);background:#f8fafc;text-decoration:none;color:var(--ink);transition:border-color .15s ease,background .15s ease,transform .15s ease}.home-card:hover{border-color:var(--accent);background:var(--accent-soft);transform:translateY(-1px)}.home-card-icon{font-size:24px;line-height:1}.home-card-title{font-size:15px;font-weight:700}.home-card-desc{font-size:12px;color:var(--muted);flex:1}.home-card-path{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;font-weight:600;color:var(--accent)}.sticker-theme{--accent: #06c755;--accent-hover: #05b04b;--accent-soft: #ecfdf5}.sticker-theme .tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.sticker-theme .tab-btn{white-space:nowrap;border:1px solid var(--line);background:#f8fafc;color:var(--muted);padding:6px 12px;border-radius:999px;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s ease}.sticker-theme .tab-btn:hover{border-color:#cbd5e1;color:var(--ink)}.sticker-theme .tab-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.sticker-theme .sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;max-height:310px;overflow-y:auto}.sticker-theme .sticker-item{border:2px solid transparent;border-radius:12px;background:#fff;padding:8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;transition:all .15s ease;box-shadow:0 1px 3px #0f172a0a}.sticker-theme .sticker-item:hover{border-color:#bbf7d0;transform:translateY(-1px)}.sticker-theme .sticker-item.selected{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 4px 12px #06c7552e}.sticker-theme .sticker-item img{width:58px;height:58px;object-fit:contain;display:block}.sticker-theme .sticker-id-label{font-size:10px;color:var(--muted);font-family:ui-monospace,monospace}.sticker-theme .selected-preview{margin-top:14px;padding:14px 16px;border-radius:14px;border:1px solid #a7f3d0;background:var(--accent-soft);display:flex;flex-direction:row;align-items:center;text-align:left;gap:16px;font-size:13px}.sticker-theme .selected-preview img{width:120px;height:120px;object-fit:contain;background:#fff;border-radius:14px;padding:8px;border:1px solid #d1fae5;box-shadow:0 4px 12px #06c7551f}.sticker-theme .selected-preview-title{font-weight:700;font-size:14px}.sticker-theme .selected-preview-info{font-size:12px;color:#065f46;margin-top:4px;line-height:1.6}.not-found-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--bg)}.not-found-card{max-width:440px;width:100%;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px 24px;text-align:center}.not-found-card h1{margin:0 0 8px;font-size:20px;font-weight:700}.not-found-card p{margin:0 0 18px;font-size:13px;color:var(--muted)}.btn-home{display:inline-block;text-decoration:none;background:var(--accent);color:#fff;padding:9px 18px;border-radius:10px;font-size:13px;font-weight:600}.btn-home:hover{background:var(--accent-hover)}
