@font-face {
  font-family: "Открытые формы";
  src: url("fonts/open-forms-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Открытые формы";
  src: url("fonts/open-forms-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f3f5f7;
  --surface: #fff;
  --glass-rgb: 235 244 252;
  --glass-opacity: .82;
  --glass-blur: 14px;
  --glass-ink: #394d62;
  --glass-edge: #a9bfd5;
  --sidebar: #eaf0f5;
  --title-tint: #dee8f3;
  --ink: #252d37;
  --muted: #526071;
  --line: #d5dce4;
  --control: #758498;
  --accent: #45678a;
  --on-accent: #fff;
  --accent-hover: #365779;
  --accent-pressed: #294560;
  --selected: #dbe6f2;
  --on-selected: #304f70;
  --hover: #edf2f7;
  --focus: #386c9d;
  --series: #456f98;
  --grid: #dce3eb;
  --good: #225f4a;
  --good-bg: #e8f3ed;
  --caution: #74501f;
  --caution-bg: #f7efdf;
  --bad: #923e49;
  --bad-bg: #faedf0;
  --neutral-bg: #eaf0f5;
  --shadow: 0 12px 42px #24334d16;
  --button-radius: 7px;
  --panel-radius: 10px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --page-gutter: var(--space-8);
  --panel-inset: var(--space-4);
  --table-row-inset: var(--space-2);
  --font: "Открытые формы", system-ui, sans-serif;
  --font-body: 14px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #171c23;
  --surface: #202730;
  --glass-rgb: 29 43 59;
  --glass-opacity: .85;
  --glass-ink: #c5d3e4;
  --glass-edge: #49647f;
  --sidebar: #1c222b;
  --title-tint: #2a4057;
  --ink: #e9eef5;
  --muted: #aebbcd;
  --line: #384452;
  --control: #77869a;
  --accent: #82a3c5;
  --on-accent: #152433;
  --accent-hover: #9bb8d5;
  --accent-pressed: #7493b4;
  --selected: #2d4258;
  --on-selected: #d4e5f6;
  --hover: #293747;
  --focus: #9bbce0;
  --series: #8daed0;
  --grid: #374351;
  --good: #9ad4b9;
  --good-bg: #243a33;
  --caution: #e4c092;
  --caution-bg: #413526;
  --bad: #f1aeb8;
  --bad-bg: #472f39;
  --neutral-bg: #303a46;
  --shadow: 0 12px 42px #0005;
}
:root[data-palette="steel"] {
  --canvas: #f4f1ed; --surface: #fdfbf8; --sidebar: #ede8e1; --title-tint: #dde6ec; --ink: #302f32; --muted: #5b5660;
  --line: #ddd6ce; --control: #80797a; --accent: #4c667e; --on-accent: #fff; --accent-hover: #3f566e; --accent-pressed: #35495e;
  --selected: #dce6ed; --on-selected: #384e64; --hover: #ece7e0; --focus: #4b7191; --series: #527791; --grid: #e0d9d0; --neutral-bg: #ebe5de;
  --glass-rgb: 241 239 235; --glass-ink: #454b58; --glass-edge: #b6c0c8;
}
:root[data-palette="steel"][data-theme="dark"] {
  --canvas: #201f22; --surface: #29272b; --sidebar: #252328; --title-tint: #303e4b; --ink: #f0ece8; --muted: #c6c0c2;
  --line: #48434a; --control: #968d92; --accent: #9ab5cd; --on-accent: #1b2a37; --accent-hover: #adc8df; --accent-pressed: #89a6bf;
  --selected: #344656; --on-selected: #d9e6f0; --hover: #34323a; --focus: #a8bed4; --series: #a0bcd1; --grid: #46424b; --neutral-bg: #3b373e;
  --glass-rgb: 43 43 48; --glass-ink: #d3d3dd; --glass-edge: #627188;
}
:root[data-palette="teal"] {
  --canvas: #edf2f0; --surface: #fafcfb; --sidebar: #e5ece9; --title-tint: #d5e7e2; --ink: #253230; --muted: #4f625d;
  --line: #d1dfda; --control: #718780; --accent: #3c6563; --on-accent: #fff; --accent-hover: #345755; --accent-pressed: #294746;
  --selected: #d7e8e3; --on-selected: #30544e; --hover: #e4eee9; --focus: #467974; --series: #4b7772; --grid: #d8e4df; --neutral-bg: #e3ece8;
  --glass-rgb: 229 242 238; --glass-ink: #3a544f; --glass-edge: #a7bfb8;
}
:root[data-palette="teal"][data-theme="dark"] {
  --canvas: #191f1f; --surface: #222b29; --sidebar: #1d2524; --title-tint: #27423e; --ink: #eaf1ec; --muted: #b5c8c1;
  --line: #384844; --control: #7f9991; --accent: #91b9b2; --on-accent: #182e2d; --accent-hover: #a5cbc3; --accent-pressed: #80a9a2;
  --selected: #2d4945; --on-selected: #d2e9e2; --hover: #2d3836; --focus: #a5cfc6; --series: #97c0b7; --grid: #3a4945; --neutral-bg: #323f3d;
  --glass-rgb: 34 52 50; --glass-ink: #c6ddd6; --glass-edge: #597e76;
}
:root[data-palette="plum"] {
  --canvas: #f2eff4; --surface: #fcfafd; --sidebar: #eae5ef; --title-tint: #e6dcf0; --ink: #302840; --muted: #60556b;
  --line: #ddd4e5; --control: #82728d; --accent: #67547e; --on-accent: #fff; --accent-hover: #57446d; --accent-pressed: #48365b;
  --selected: #e6def0; --on-selected: #544366; --hover: #ede6f3; --focus: #775d91; --series: #745d90; --grid: #e1d8e9; --neutral-bg: #eae3ef;
  --glass-rgb: 241 234 248; --glass-ink: #514461; --glass-edge: #bfaad0;
}
:root[data-palette="plum"][data-theme="dark"] {
  --canvas: #211e29; --surface: #292534; --sidebar: #262131; --title-tint: #3e3052; --ink: #f0ebf5; --muted: #c9bfd5;
  --line: #484055; --control: #9485a6; --accent: #b8a4cf; --on-accent: #2c203a; --accent-hover: #cbb8e1; --accent-pressed: #a992c2;
  --selected: #493a5b; --on-selected: #eadcf5; --hover: #372e46; --focus: #d0b8e5; --series: #bda6d6; --grid: #443951; --neutral-bg: #3c3448;
  --glass-rgb: 48 37 64; --glass-ink: #ded0ea; --glass-edge: #78648c;
}
:root[data-palette="clay"] {
  --canvas: #f5efe9; --surface: #fdfaf6; --sidebar: #efe5dc; --title-tint: #ecddd1; --ink: #352c29; --muted: #645750;
  --line: #e0d4ca; --control: #88756a; --accent: #795947; --on-accent: #fff; --accent-hover: #684a39; --accent-pressed: #573c2e;
  --selected: #eddfd2; --on-selected: #624734; --hover: #f0e7df; --focus: #90664e; --series: #86624e; --grid: #e4d9cf; --neutral-bg: #eee5dc;
  --glass-rgb: 249 238 227; --glass-ink: #5c493e; --glass-edge: #c8ae9c;
}
:root[data-palette="clay"][data-theme="dark"] {
  --canvas: #221f1c; --surface: #2d2824; --sidebar: #28231f; --title-tint: #473629; --ink: #f1ebe5; --muted: #d0c0b5;
  --line: #4a4038; --control: #988474; --accent: #c9a691; --on-accent: #39291f; --accent-hover: #dcbaa4; --accent-pressed: #b99882;
  --selected: #503c30; --on-selected: #f0ded0; --hover: #3b3029; --focus: #dbb9a4; --series: #c9a48c; --grid: #473b33; --neutral-bg: #40352e;
  --glass-rgb: 54 43 36; --glass-ink: #e4d2c5; --glass-edge: #836753;
}
:root[data-glass="clearer"] { --glass-opacity: .72; --glass-blur: 10px; }
:root[data-glass="clearer"][data-theme="dark"] { --glass-opacity: .76; }
* { box-sizing: border-box; }
