:root {
  --bg: #f4f1ea;
  --panel: #fffdf8;
  --panel-soft: #fcfaf5;
  --line: #d8d1c4;
  --line-soft: #ece5d8;
  --text: #222222;
  --muted: #6b6b6b;
  --ok: #2e7d32;
  --warn: #b26a00;
  --off: #a94442;
  --unknown: #9e9e9e;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.08);
  --theme-toggle-bg: #efe7d8;
  --theme-toggle-text: #222222;
  --theme-toggle-border: #d8d1c4;
}

html[data-theme="dark"] {
  --bg: #1e1e1e;
  --panel: #2a2a2a;
  --panel-soft: #313131;
  --line: #3b3b3b;
  --line-soft: #474747;
  --text: #e8e8e8;
  --muted: #b6b6b6;
  --ok: #66bb6a;
  --warn: #ffb74d;
  --off: #ef5350;
  --unknown: #8a8a8a;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.28);
  --theme-toggle-bg: #353535;
  --theme-toggle-text: #f1f1f1;
  --theme-toggle-border: #4a4a4a;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px 24px 32px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.25;
}

p,
label,
small,
span,
strong {
  color: inherit;
}

.muted {
  color: var(--muted);
}

.page-header {
  margin-bottom: 22px;
}

.page-header h1 {
  margin-bottom: 6px;
}

.page-intro {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .container {
    padding: 16px 14px 24px;
  }

  .card {
    padding: 18px;
    border-radius: 18px;
  }
}
