:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-soft: #f3f6fb;
  --text: #333333;
  --muted: #5f6b7a;
  --muted2: #7c8796;
  --border: #e2e8f0;
  --accent: #007bff;
  --accent-strong: #005fcb;
  --ok: #23a55a;
  --bad: #e25555;
  --shadow-soft: 0 10px 30px rgba(24, 39, 75, 0.08);
  --shadow-hover: 0 14px 34px rgba(24, 39, 75, 0.14);

  --page-gradient-start: #ffffff;
  --control-bg: #ffffff;
  --control-border: #d9e2ec;
  --control-hover-border: #b6c8de;
  --control-grad-start: #ffffff;
  --control-grad-end: #f4f7fb;
  --tag-border: #d8e4f2;
  --tag-bg: #f8fbff;
  --text-strong: #1f2a37;
  --text-mid: #3f4d5e;
  --accent-contrast: #ffffff;


  font-family: "Inter", "Noto Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  background: radial-gradient(circle at top, var(--page-gradient-start) 0%, var(--bg) 45%);
  color: var(--text);
  line-height: 1.65;
  padding: 28px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}


.topBar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.themeSwitch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.themeSwitchLabel {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.themeSwitch select {
  min-width: 120px;
}


.small {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.6;
}

@media (max-width: 720px) {
  body { padding: 16px; }
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  .topBar {
    flex-direction: column;
    align-items: stretch;
  }
  .themeSwitch {
    justify-content: flex-end;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111a2c;
  --surface-soft: #182338;
  --text: #e5edf8;
  --muted: #b4c0d4;
  --muted2: #8ea0ba;
  --border: #273955;
  --accent: #5b9dff;
  --accent-strong: #2f7ce8;
  --ok: #35c774;
  --bad: #f07474;
  --shadow-soft: 0 10px 26px rgba(5, 8, 15, 0.45);
  --shadow-hover: 0 14px 34px rgba(5, 8, 15, 0.62);
  --page-gradient-start: #152238;
  --control-bg: #1a2740;
  --control-border: #2f4467;
  --control-hover-border: #4d6996;
  --control-grad-start: #1f2f4b;
  --control-grad-end: #1a2740;
  --tag-border: #36527b;
  --tag-bg: #1a2942;
  --text-strong: #f1f5fd;
  --text-mid: #cfdbec;
  --accent-contrast: #ffffff;
}
