/* ══════════════════════════════════════════════════════════════
   TERAGEST DEV — Base / Reset / Typography
   ══════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 10px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fu { animation: fadeUp .25s ease both; }

html, body {
  height: 100%; font-family: var(--sans); background: var(--bg); color: var(--text);
  overflow: hidden; -webkit-tap-highlight-color: transparent;
}

.sp { border-radius: 50%; animation: spin .7s linear infinite; }
.sp-w { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; }
.sp-accent { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); }

.btn-pri {
  width: 100%; height: 44px; border-radius: 7px; border: none; background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--mono); letter-spacing: .4px;
  display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--sh-acc);
}
.btn-pri:disabled { opacity: .6; cursor: not-allowed; }

.btn-sec {
  padding: 8px 16px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface2);
  color: var(--text); font-family: var(--mono); font-size: 11px; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.btn-sec:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger {
  padding: 8px 16px; border-radius: 7px; border: none; background: var(--grad-stop); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(220,38,38,.2);
}
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }

.field { margin-bottom: 12px; }
.field label {
  display: block; font-family: var(--mono); font-size: 9px; color: var(--text3);
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); font-size: 14px; font-family: var(--sans);
  outline: none; transition: border-color .15s; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 60px; font-size: 13px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

.hidden { display: none !important; }
