/* DM Screen - base tokens and reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, monospace;

  /* dark theme (default) */
  --bg: #191512;
  --bg-panel: #211c18;
  --bg-panel-75: rgba(33, 28, 24, 0.75);   /* lets the watermark show through */
  --bg-raised: #2a241f;
  --bg-hover: #332c26;
  --border: #3d352d;
  --text: #e8e0d4;
  --text-dim: #a99d8a;
  --text-faint: #776c5c;
  --accent: #c9963c;
  --accent-text: #1a1613;
  --danger: #c05b4d;
  --success: #7d9c5b;
  --info: #6d94ad;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

  --radius: 8px;
  --radius-sm: 5px;
  --sidebar-w: 264px;
  --sidebar-collapsed-w: 56px;
  --tabbar-h: 58px;
}

:root[data-theme="light"] {
  --bg: #f3eee5;
  --bg-panel: #faf6ee;
  --bg-panel-75: rgba(250, 246, 238, 0.75);
  --bg-raised: #ffffff;
  --bg-hover: #ece4d6;
  --border: #d8cdbb;
  --text: #2c2519;
  --text-dim: #6b5f4d;
  --text-faint: #998d78;
  --accent: #a06d1f;
  --accent-text: #ffffff;
  --danger: #a33d2f;
  --success: #5a7a3a;
  --info: #3f6c86;
  --shadow: 0 4px 16px rgba(60, 45, 20, 0.15);
}

html { height: 100%; }
body {
  height: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
