/* TokenLab 离线兜底样式（不依赖 Tailwind CDN，file:// 可打开） */
:root {
  --ink: #0f1c24;
  --mist: #5b6b75;
  --panel: #f4faf8;
  --accent: #0d7a68;
  --deep: #085648;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f1f5f9 0%, #f0fdfa 45%, #f1f5f9 100%);
  min-height: 100vh;
}
.font-display { font-family: "Syne", system-ui, sans-serif; }
.font-mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.safe-bottom { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }

#app { max-width: 32rem; margin: 0 auto; padding: 1.25rem 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

.text-deep { color: var(--deep); }
.text-mist { color: var(--mist); }
.text-ink { color: var(--ink); }
.text-accent { color: var(--accent); }
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-emerald-800 { color: #065f46; }
.text-emerald-400 { color: #34d399; }
.text-emerald-300 { color: #6ee7b7; }
.text-amber-600 { color: #d97706; }
.text-3xl { font-size: 1.875rem; line-height: 1.1; }
.text-lg { font-size: 1.125rem; }
.text-base { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.font-extrabold { font-weight: 800; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wider { letter-spacing: 0.06em; }
.tracking-\[0\.14em\] { letter-spacing: 0.14em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-words { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.hidden { display: none !important; }
.last\:border-b-0:last-child { border-bottom: 0 !important; }
.model-list {
  border: none;
  box-shadow: none;
  background: transparent;
}
.model-group {
  background: rgba(255, 255, 255, 0.96);
}
.model-group--solo {
  border: 2px solid rgba(15, 28, 36, 0.18);
  box-shadow: 0 2px 8px rgba(15, 28, 36, 0.06);
}
.model-group--bundle {
  border: 2.5px solid rgba(13, 122, 104, 0.55);
  box-shadow: 0 4px 16px rgba(13, 122, 104, 0.14);
}
.model-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 0;
}
.model-row--split {
  border-top: 1.5px solid rgba(13, 122, 104, 0.18);
}
.model-row--official {
  padding-left: 0.85rem;
  border-left: 3px solid rgba(13, 122, 104, 0.7);
  background: rgba(13, 122, 104, 0.035);
}
.font-extrabold { font-weight: 800; }
.text-\[15px\] { font-size: 15px; }
.text-\[12px\] { font-size: 12px; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.border-accent\/30 { border-color: rgba(13, 122, 104, 0.3); }
.ad-banner img {
  max-height: 104px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 640px) {
  .sm\:flex { display: flex !important; }
  .sm\:w-\[168px\] { width: 168px; }
  .sm\:w-\[230px\] { width: 230px; }
  .sm\:w-\[250px\] { width: 250px; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:shrink-0 { flex-shrink: 0; }
  .sm\:gap-0\.5 { gap: 0.125rem; }
  .sm\:hidden { display: none !important; }
  .model-row {
    flex-direction: row;
    align-items: center;
  }
  .ad-banner img {
    max-height: none;
  }
}

.w-full { width: 100%; }
.w-24 { width: 6rem; }
.min-w-0 { min-width: 0; }
.h-auto { height: auto; }
.h-64 { height: 16rem; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.self-center { align-self: center; }
.text-\[9px\] { font-size: 9px; }
.w-\[200px\] { width: 200px; }
.w-\[220px\] { width: 220px; }
@media (min-width: 640px) {
  .sm\:w-\[168px\] { width: 168px; }
  .sm\:w-\[230px\] { width: 230px; }
  .sm\:w-\[250px\] { width: 250px; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
}
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }
.block { display: block; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.object-cover { object-fit: cover; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.gap-1\.5 { gap: 0.375rem; }
.rounded-full { border-radius: 9999px; }
.bg-amber-50 { background: #fffbeb; }
.text-amber-700 { color: #b45309; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.text-\[10px\] { font-size: 10px; }
.border { border: 1px solid rgba(0,0,0,0.1); }
.border-2 { border-width: 2px; }
.border-b { border-bottom: 1px solid rgba(0,0,0,0.08); }
.border-t { border-top: 1px solid rgba(0,0,0,0.05); }
.border-black\/10 { border-color: rgba(0,0,0,0.1); }
.border-gray-700 { border-color: #374151; }
.border-emerald-500\/50 { border-color: rgba(16,185,129,0.5); }
.bg-white\/85, .bg-white\/80, .bg-white\/90, .bg-white\/60 { background: rgba(255,255,255,0.92); }
.bg-panel, .bg-panel\/70, .bg-panel\/40, .bg-panel\/80 { background: var(--panel); }
.bg-slate-50\/80 { background: #f8fafc; }
.bg-gray-800 { background: #1f2937; }
.bg-black\/50, .bg-black\/30 { background: rgba(0,0,0,0.4); }
.bg-accent\/10 { background: rgba(13,122,104,0.12); }
.bg-emerald-500 { background: #10b981; }
.bg-emerald-700 { background: #047857; }
.from-emerald-50 { --g1: #ecfdf5; }
.to-teal-50 { --g2: #f0fdfa; }
.bg-gradient-to-r { background: linear-gradient(90deg, var(--g1, #ecfdf5), var(--g2, #f0fdfa)); }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.shadow-md { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.shadow-emerald-500\/10 { box-shadow: 0 8px 24px rgba(16,185,129,0.12); }

select, input[type="number"], input[type="range"], textarea, button {
  font: inherit;
}
select, input[type="number"] {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  background: var(--panel);
  padding: 0.65rem 0.75rem;
}
textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #374151;
  background: rgba(0,0,0,0.45);
  color: #a7f3d0;
  padding: 0.75rem;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
button { border: 0; cursor: pointer; }
.list-disc { list-style: disc; }
.pl-4 { padding-left: 1rem; }
.divide-y > * + * { border-top: 1px solid rgba(0,0,0,0.05); }
.min-w-full { min-width: 100%; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.5rem; text-align: left; vertical-align: top; }
.no-underline { text-decoration: none; }
.hover\:bg-emerald-100\/60:hover { background: rgba(209,250,229,0.6); }
.hover\:scale-\[1\.005\]:hover { transform: scale(1.005); }
.transition-all { transition: all .15s ease; }
.backdrop-blur { backdrop-filter: blur(6px); }
.outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(13,122,104,0.25); }
.accent-accent { accent-color: var(--accent); }

.w-\[148px\] { width: 148px; }
.w-\[220px\] { width: 220px; }
@media (min-width: 640px) {
  .sm\:w-\[168px\] { width: 168px; }
  .sm\:w-\[250px\] { width: 250px; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
}

#error-banner {
  display: none;
  margin: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 14px;
}
