@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Единая типографическая основа складского контура.
   Шкала намеренно совпадает с калькулятором: 400 / 500 / 600 / 700. */
:root {
  --font-sans: "Montserrat", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --weight-body: 500;
  --weight-control: 600;
  --weight-strong: 700;
  --tracking-label: .06em;
}

html {
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, button, input, select, textarea { font-family: var(--font-sans); }
body { font-weight: var(--weight-body); line-height: 1.5; }
small, .hint, .muted, .text-muted { font-weight: var(--weight-body) !important; }

/* Заголовки и смысловые значения — единственный сильный уровень. */
h1, h2, h3, h4, h5, h6,
strong, b,
.size-value, .value,
.numeric b, td b,
.account-identity b, .workbench-account-identity b {
  font-weight: var(--weight-strong) !important;
}

/* Управляющие элементы и метки образуют второй, спокойный уровень. */
button, input, select, textarea,
label, legend, th,
.eyebrow, .section-kicker,
.source-tag, .grade-tag, .species-tag,
.source-tab span, .source-tab small,
.account-dropdown button, .account-menu-link,
.workbench-account-dropdown button, .workbench-menu-link {
  font-weight: var(--weight-control) !important;
}

button, input, select, textarea { letter-spacing: normal; }
label, legend { letter-spacing: .02em !important; }
.eyebrow, .section-kicker, th { letter-spacing: var(--tracking-label) !important; }

/* Вопросительный знак — часть того же набора, а не отдельный декоративный шрифт. */
.help-button, .stage-help-toggle {
  font-family: var(--font-sans) !important;
  font-weight: var(--weight-strong) !important;
}

/* Числа в учёте не должны «прыгать» между строками и состояниями. */
.numeric, .value, .size-value, input[type="number"], .build-version, .workbench-build-version {
  font-variant-numeric: tabular-nums;
}
