/* base.css — Biến màu/cỡ dùng chung, reset cơ bản, kiểu nút chung. Không chứa bố cục (xem layout.css). */

:root {
  --c-bg: #eef1f6;
  --c-panel: #ffffff;
  --c-border: #d9dee8;
  --c-text: #1d2433;
  --c-muted: #6b7486;
  --c-accent: #3d6ff5;
  --c-accent-soft: #e5ecff;
  --c-canvas: #ffffff;
  --c-grid: #d3d8e2;
  --c-danger: #c4320a;
  --c-danger-soft: #fdeee9;
  --c-danger-border: #f2b8a6;

  --topbar-h: 52px;
  --toolbar-w: 84px;
  --props-w: 260px;
  --bottombar-h: 68px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(20, 30, 50, .08), 0 4px 16px rgba(20, 30, 50, .06);

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-text-size-adjust: 100%;
}

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

html, body { height: 100%; margin: 0; }

body { overflow: hidden; }

h1, h2, p { margin: 0; }

button, input { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-panel);
  cursor: pointer;
}
.btn:hover { background: var(--c-accent-soft); }
.btn--ghost { background: transparent; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
