*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #08080e;
  --surface:   #12121c;
  --border:    #1e1e30;
  --text:      #e4e4ef;
  --text-dim:  #6a6a8a;
  --accent:    #38bdf8;
  --green:     #34d399;
  --amber:     #fbbf24;
  --red:       #f87171;
  --purple:    #a78bfa;
  --orange:    #fb923c;
  --radius:    12px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
}

html { height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.input {
  width: 100%;
  background: #0f0f18;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.input:focus { border-color: var(--accent); }

.btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(167, 139, 250, .18));
  border-color: #2b2b46;
}
.btn.secondary { background: #0f0f18; }
.btn.ghost { background: transparent; color: var(--text-dim); }
.btn.danger { color: var(--red); }
.btn-sm { font-size: 12px; padding: 4px 10px; }

.range { width: 100%; accent-color: var(--accent); cursor: pointer; }
.range-val {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}
.subhint { font-size: 12px; color: var(--text-dim); line-height: 1.35; }
.error { color: var(--red); font-size: 12px; }
.empty { padding: 18px 14px; color: var(--text-dim); text-align: center; font-size: 13px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f0f18;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
