/* v105 (часть Г): подсказка ⓘ (static/js/hint.js, templates/_hint.html), ровная сетка полей настроек (.hf-grid / .hf),
   блок «Как это работает» (.hw), полоса ядер сервера (.hw-cores). Общие для всех страниц админки. */
.hint-wrap { display: inline-flex; vertical-align: middle; }
button.hint {
  display: inline-grid; place-items: center; width: 22px; height: 22px; min-width: 22px; padding: 0; margin: 0 0 0 4px;
  border: 1px solid var(--line, #DADDE2); border-radius: 50%; background: var(--surface, #fff); color: var(--graphite, #5B6170);
  font: 600 13px/1 var(--text, system-ui); cursor: pointer;
}
button.hint:hover, button.hint[aria-expanded="true"] { border-color: var(--ishkor, #2E9C99); color: var(--ishkor, #2E9C99); }
button.hint:focus-visible { outline: 2px solid var(--ishkor, #2E9C99); outline-offset: 2px; }
.hint-pop {
  position: fixed; z-index: 1000; box-sizing: border-box; width: max-content; max-width: min(360px, calc(100vw - 16px));
  padding: 12px 14px; border: 1px solid var(--line, #DADDE2); border-radius: var(--r, 10px); background: var(--surface, #fff);
  color: var(--ink, #171A21); box-shadow: 0 8px 28px rgba(23, 26, 33, .16); font: 400 14px/1.5 var(--text, system-ui);
  text-align: left; white-space: normal; overflow-wrap: anywhere;
}
.hint-pop .hint-body, .hint-pop .hint-p { display: block; }
.hint-pop .hint-p + .hint-p { margin-top: 8px; }
.hint-pop .hint-ex { color: var(--graphite, #5B6170); }
.hint-tech { margin-top: 8px; font-size: 13px; color: var(--graphite, #5B6170); }
.hint-tech summary { cursor: pointer; }
.hint-tech code { font-size: 12px; overflow-wrap: anywhere; }

/* сетка полей: подписи на одной линии, поля на одной линии, описания под полями; 1–4 колонки по ширине */
.hf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 12px 0; }
.hf {
  display: grid; grid-template-rows: auto auto 1fr; gap: 6px; align-content: start; min-width: 0;
  padding: 12px; border: 1px solid var(--line, #DADDE2); border-radius: var(--r, 10px); background: var(--surface, #fff);
}
@supports (grid-template-rows: subgrid) {
  .hf-grid { grid-auto-rows: auto auto auto; }
  .hf { grid-row: span 3; grid-template-rows: subgrid; }
}
.hf-l { display: flex; align-items: flex-start; gap: 2px; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.hf-l label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.hf input, .hf select { width: 100%; min-width: 0; align-self: start; }
.hf-d { display: block; color: var(--graphite, #5B6170); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.hf-d a { white-space: normal; }

/* «Как это работает» */
.hw { margin: 12px 0; border: 1px solid var(--line, #DADDE2); border-radius: var(--r, 10px); background: var(--surface, #fff); }
.hw > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
.hw-body { padding: 0 14px 12px; font-size: 14px; }
.hw-body p { margin: 0 0 8px; }
.hw-scheme { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 13px; }
.hw-scheme span { padding: 4px 10px; border-radius: 999px; background: var(--ishkor-wash, #E2F3F2); color: #1C6765; }
.hw-scheme i { font-style: normal; color: var(--graphite, #5B6170); }

/* полоса «Ядер сервера: N · отдано · свободно» */
.hw-cores { margin: 6px 0 2px; }
.hw-cores p { margin: 0 0 6px; overflow-wrap: anywhere; }
.hw-bar { height: 8px; border-radius: 999px; background: var(--line, #DADDE2); overflow: hidden; }
.hw-bar span { display: block; height: 100%; background: var(--ishkor, #2E9C99); }
.hw-cores.is-over .hw-bar span { background: var(--danger, #B4362C); }
.hw-cores.is-over p { color: var(--danger, #B4362C); }
