:root {
  --font: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --bg: #eef2f4;
  --surface: #ffffff;
  --surface-2: #f5f7f8;
  --border: #dfe3e6;
  --text: #333b45;
  --text-2: #6a737f;
  --text-3: #a0a7b0;
  --accent: #2067b0;
  --accent-2: #3bc8f5;
  --accent-soft: #e5f4fd;
  --success: #6aa60d;
  --success-btn: #bbed21;
  --success-soft: #eef8dc;
  --danger: #d33f3f;
  --danger-soft: #fdeaea;
  --warning: #e8a317;
  --warning-soft: #fff5dc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .05);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.b24-page { padding: 16px; }
.install-box { max-width: 560px; margin: 40px auto; background: var(--surface); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.install-box h2, .install-box h3 { margin-top: 0; }
.warn { color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13px;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: #e8ecef; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--success-btn); color: #535c69; }
.btn-primary:hover { background: #d2f95f; }
.btn-blue { background: var(--accent-2); color: #fff; }
.btn-blue:hover { background: #3eddff; }
.btn-light { background: transparent; border-color: var(--border); }
.btn-light:hover { background: var(--surface-2); }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12px; border-radius: 14px; }
.btn-icon { width: 30px; height: 30px; padding: 0; border-radius: 50%; }
.btn-danger-text { color: var(--danger); }

.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 8px 12px; resize: vertical; min-height: 72px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(59, 200, 245, .18); }

.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer;
  font-size: 12px; user-select: none; transition: all .15s;
}
.chip:hover { border-color: var(--accent-2); }
.chip.is-on { background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent); font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge-like { background: var(--success-soft); color: var(--success); }
.badge-dislike { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: var(--warning-soft); color: #9a6a00; }

.muted { color: var(--text-2); }
.small { font-size: 12px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: #333b45; color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 13px;
  transition: all .2s; z-index: 1000; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
