/* Руководство тестировщика. Верхний блок, стеклянная оболочка, панели и
   номера шагов берутся у страницы «Файлы»; здесь только справочник. */

.gm-guide .gm-stage .page-stage-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gm-guide .gm-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.gm-guide .gm-back-mark {
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.gm-guide .gm-back:hover {
  color: #ffffff;
  border-color: rgba(0, 255, 102, 0.34);
  background: rgba(0, 255, 102, 0.045);
}

.gm-guide .gm-back:hover .gm-back-mark {
  transform: translateX(-3px) rotate(45deg);
}

.gm-guide .gm-stage h1 {
  max-width: 22ch;
}

/* ---------- Консоль команд: одна строка из трёх шагов ---------- */

.gm-guide .gm-cli {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 22px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.gm-guide .gm-cli h2 {
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1.16;
  font-weight: 800;
}

.gm-guide .gm-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gm-guide .gm-flow li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.gm-guide .gm-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(0, 255, 102, 0.5);
  border-right: 2px solid rgba(0, 255, 102, 0.5);
  transform: rotate(45deg);
}

.gm-guide .gm-flow .step-index {
  width: 28px;
  height: 28px;
  font-size: 12px;
  line-height: 26px;
}

.gm-guide .gm-cli-note {
  margin: 0 0 0 auto;
  color: var(--dim) !important;
  font-size: 13px;
  font-weight: 600;
}

.gm-guide kbd {
  display: inline-block;
  min-width: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
  font: 700 12px/1.6 "JetBrains Mono", Consolas, monospace;
  text-align: center;
}

/* ---------- Окно администратора (Ctrl + G): снимок и карточки функций ---------- */

.gm-guide .gm-console-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 44px);
  padding: 22px;
}

.gm-guide .gm-console-shot {
  margin: 0;
  line-height: 0;
}

.gm-guide .gm-console-shot img {
  display: block;
  width: 461px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(0, 0, 0, 0.18);
}

.gm-guide .gm-console-info {
  min-width: 0;
}

/* Как открыть окно: крупно, над списком функций. */
.gm-guide .gm-open-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #ffffff !important;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
}

.gm-guide .gm-combo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.gm-guide .gm-open-keys kbd {
  min-width: 44px;
  padding: 4px 12px;
  border-color: rgba(0, 255, 102, 0.5);
  color: var(--green);
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.16);
  font-size: 16px;
}

.gm-guide .gm-console-how {
  margin: 8px 0 16px;
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.gm-guide .gm-ability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.gm-guide .gm-ability {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(11, 17, 18, 0.66);
}

.gm-guide .gm-ability-wide {
  grid-column: 1 / -1;
}

.gm-guide .gm-ability h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}

/* Грань камня: тот же маркер свойств, что в тестовом разделе страницы. */
.gm-guide .gm-ability h3::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(0, 255, 102, 0.62);
  background: rgba(0, 255, 102, 0.2);
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
  transform: rotate(45deg);
}

.gm-guide .gm-ability p {
  margin: 0;
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.gm-guide .gm-ability .gm-hint {
  margin-top: 4px;
  color: var(--dim) !important;
}

.gm-guide .gm-ability kbd {
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- Поиск и разделы: прилипают при прокрутке ---------- */

/* На узких экранах тема обрезает холст страницы через overflow: hidden, и
   прилипание перестаёт работать. clip режет так же, но не создаёт своей
   прокрутки. Файл подключается только на странице руководства. */
body .l-canvas {
  overflow: clip !important;
}

.gm-guide .gm-toolbar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(12, 16, 17, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.gm-guide .gm-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gm-guide .gm-search {
  position: relative;
  flex: 0 1 620px;
  min-width: 0;
  margin: 0;
}

.gm-guide .gm-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
  transition: stroke 0.18s ease;
}

.gm-guide .gm-search:focus-within svg {
  stroke: var(--green);
}

.gm-guide #gm-search {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px 0 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.18);
  font: 600 14px/1.4 Montserrat, "Segoe UI", Arial, sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.gm-guide #gm-search::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.gm-guide #gm-search:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.gm-guide #gm-search:focus {
  outline: none;
  border-color: rgba(0, 255, 102, 0.6);
  background: rgba(0, 0, 0, 0.36);
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.12);
}

.gm-guide .gm-count {
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.gm-guide .gm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gm-guide .gm-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  padding: 6px 8px 6px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  font: 700 12px/1.3 Montserrat, "Segoe UI", Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.gm-guide .gm-filter span {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  text-align: center;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.gm-guide .gm-filter:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 102, 0.34);
  color: #ffffff;
  background: rgba(0, 255, 102, 0.045);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.gm-guide .gm-filter:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
  transition-duration: 0.08s;
}

.gm-guide .gm-filter.is-active {
  border-color: rgba(0, 255, 102, 0.55);
  color: #ffffff;
  background: rgba(0, 255, 102, 0.1);
  box-shadow: inset 0 0 10px rgba(0, 255, 102, 0.08);
}

.gm-guide .gm-filter.is-active span {
  color: #0b0d0c;
  background: var(--green);
}

/* ---------- Разделы команд: панели с ячейками, как «Компоненты» ---------- */

.gm-guide .gm-results {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.gm-guide .gm-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

.gm-guide .gm-group-head h2 {
  margin: 0 0 4px;
}

.gm-guide .gm-group-head p {
  margin: 0;
  color: var(--dim) !important;
  font-size: 13px;
  font-weight: 600;
}

.gm-guide .gm-group-size {
  flex-shrink: 0;
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
}

.gm-guide .gm-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.gm-guide .gm-command {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 22px;
  background: rgba(11, 17, 18, 0.66);
  transition: background-color 0.18s ease;
}

.gm-guide .gm-command:hover,
.gm-guide .gm-command:focus-within {
  background: rgba(0, 255, 102, 0.045);
}

.gm-guide .gm-command-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.gm-guide .gm-command h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
}

.gm-guide .gm-command-id {
  flex-shrink: 0;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  font: 700 11px/1.6 "JetBrains Mono", Consolas, monospace;
}

.gm-guide .gm-effect {
  margin: 8px 0 14px;
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.gm-guide .gm-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.18s ease;
}

.gm-guide .gm-command:hover .gm-code-row {
  border-color: rgba(0, 255, 102, 0.22);
}

.gm-guide .gm-code-row code {
  flex: 1;
  min-width: 0;
  padding: 0;
  color: #b8f7cd;
  background: transparent;
  font: 600 13px/1.7 "JetBrains Mono", Consolas, monospace;
  white-space: normal;
  overflow-wrap: anywhere;
  user-select: all;
}

.gm-guide .gm-copy {
  flex-shrink: 0;
  min-width: 112px;
  min-height: 34px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  font: 700 12px/1.3 Montserrat, "Segoe UI", Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.gm-guide .gm-copy:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 102, 0.4);
  color: #ffffff;
  background: rgba(0, 255, 102, 0.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.gm-guide .gm-copy:active {
  transform: translateY(0) scale(0.96);
  box-shadow: none;
  transition-duration: 0.08s;
}

.gm-guide .gm-copy.is-copied {
  border-color: rgba(0, 255, 102, 0.7);
  color: #0b0d0c;
  background: var(--green);
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.4);
}

.gm-guide .gm-hint {
  margin: 10px 0 0;
  color: var(--dim) !important;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.gm-guide .gm-command-caution::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.gm-guide .gm-command-caution .gm-effect,
.gm-guide .gm-command-caution .gm-hint {
  color: #f3cf7a !important;
}

/* ---------- Свойства для d 10804: номер свойства и что оно даёт ---------- */

.gm-guide .gm-addons {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.gm-guide .gm-addons-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 14px;
}

.gm-guide .gm-addons-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
}

.gm-guide .gm-addons-head p {
  margin: 0;
  color: var(--dim) !important;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.gm-guide .gm-addons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.gm-guide .gm-addon-set {
  min-width: 0;
  padding: 14px 16px 16px;
  background: rgba(11, 17, 18, 0.66);
}

.gm-guide .gm-addon-set h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
  margin: 0 0 12px;
  padding: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}

.gm-guide .gm-addon-set h4 span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
}

.gm-guide .gm-addon-row + .gm-addon-row {
  margin-top: 12px;
}

.gm-guide .gm-addon-row p {
  margin: 0 0 6px;
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.gm-guide .gm-addon-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gm-guide .gm-addon-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 3px 9px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.gm-guide .gm-addon-row li:hover {
  border-color: rgba(0, 255, 102, 0.3);
  background: rgba(0, 255, 102, 0.05);
}

.gm-guide .gm-addon-row code {
  padding: 1px 6px;
  border-radius: 5px;
  color: #b8f7cd;
  background: rgba(0, 255, 102, 0.08);
  font: 700 12px/1.5 "JetBrains Mono", Consolas, monospace;
  user-select: all;
}

.gm-guide .gm-item-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  list-style: none;
}

.gm-guide .gm-item-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  background: rgba(11, 17, 18, 0.66);
}

.gm-guide .gm-item-list code {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 5px;
  color: #b8f7cd;
  background: rgba(0, 255, 102, 0.08);
  font: 700 12px/1.5 "JetBrains Mono", Consolas, monospace;
  user-select: all;
}

.gm-guide .gm-item-list span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.gm-guide .gm-item-list strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.gm-guide .gm-item-list small {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.gm-guide .gm-ability .gm-hint code {
  padding: 0 5px;
  border-radius: 5px;
  color: #b8f7cd;
  background: rgba(0, 255, 102, 0.08);
  font: 700 12px/1.5 "JetBrains Mono", Consolas, monospace;
}

.gm-guide .gm-empty {
  padding: 48px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.gm-guide .gm-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.gm-guide .gm-empty p {
  margin: 0 0 20px;
  color: var(--dim) !important;
  font-size: 13px;
  font-weight: 600;
}

.gm-guide #gm-reset {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  font: 700 13px/1.2 Montserrat, "Segoe UI", Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.gm-guide #gm-reset:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 102, 0.34);
  background: rgba(0, 255, 102, 0.045);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.gm-guide #gm-reset:active {
  transform: translateY(0) scale(0.97);
}

.gm-guide .gm-faq {
  margin-top: 22px;
}

.gm-guide .gm-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.gm-guide .gm-faq-grid > div {
  padding: 18px 20px;
  background: rgba(11, 17, 18, 0.66);
}

.gm-guide .gm-faq h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}

.gm-guide .gm-faq p {
  margin: 0;
  color: var(--dim) !important;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.gm-guide .gm-copy-status {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 12px 18px;
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 10px;
  color: #ffffff !important;
  background: rgba(12, 16, 17, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gm-guide .gm-copy-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gm-guide [hidden] {
  display: none !important;
}

.gm-guide .gm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gm-guide button:focus-visible,
.gm-guide a:focus-visible,
.gm-guide code:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (min-width: 2200px) {
  .gm-guide .gm-command-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 2400px) {
  .gm-guide .gm-effect,
  .gm-guide .gm-hint,
  .gm-guide .gm-faq p,
  .gm-guide .gm-ability p,
  .gm-guide .gm-addons-head p,
  .gm-guide .gm-addon-row p,
  .gm-guide .gm-group-head p { font-size: 14px; }
  .gm-guide .gm-command h3,
  .gm-guide .gm-addons-head h3,
  .gm-guide .gm-addon-set h4,
  .gm-guide .gm-ability h3 { font-size: 17px; }
  .gm-guide .gm-addon-row li,
  .gm-guide .gm-addon-row code { font-size: 13px; }
  .gm-guide .gm-console-shot img { width: 560px; }
  .gm-guide .gm-code-row code { font-size: 14px; }
  .gm-guide .gm-filter,
  .gm-guide .gm-copy { font-size: 13px; }
}

@media (min-width: 3600px) {
  .gm-guide .gm-effect,
  .gm-guide .gm-hint,
  .gm-guide .gm-faq p,
  .gm-guide .gm-ability p,
  .gm-guide .gm-addons-head p,
  .gm-guide .gm-addon-row p,
  .gm-guide .gm-group-head p { font-size: 16px; }
  .gm-guide .gm-command h3,
  .gm-guide .gm-addons-head h3,
  .gm-guide .gm-addon-set h4,
  .gm-guide .gm-ability h3 { font-size: 20px; }
  .gm-guide .gm-addon-row li,
  .gm-guide .gm-addon-row code { font-size: 15px; }
  .gm-guide .gm-addons { padding: 24px 28px 28px; }
  .gm-guide .gm-open-keys { font-size: 22px; }
  .gm-guide .gm-console-shot img { width: 700px; }
  .gm-guide .gm-flow li { font-size: 17px; }
  .gm-guide .gm-command { padding: 26px 28px; }
  .gm-guide .gm-code-row code { font-size: 16px; }
  .gm-guide .gm-filter,
  .gm-guide .gm-copy,
  .gm-guide .gm-back { font-size: 15px; }
  .gm-guide #gm-search { height: 56px; font-size: 16px; }
}

@media (max-width: 1080px) {
  .gm-guide .gm-console-body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .gm-guide .gm-console-info { width: 100%; }
}

@media (max-width: 1280px) {
  .gm-guide .gm-addons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-guide .gm-addon-set:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .gm-guide .gm-command-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .gm-guide .gm-addons { padding: 16px; }
  .gm-guide .gm-addons-grid,
  .gm-guide .gm-item-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .gm-guide .gm-console-body { padding: 14px; }
  .gm-guide .gm-ability-grid { grid-template-columns: minmax(0, 1fr); }
  .gm-guide .gm-cli-note { margin-left: 0; }
}

@media (max-width: 720px) {
  .gm-guide .gm-toolbar {
    top: 8px;
    padding: 10px;
  }

  .gm-guide .gm-search-row {
    gap: 10px;
  }

  .gm-guide .gm-search {
    flex: 1 1 auto;
  }

  .gm-guide #gm-search {
    height: 44px;
    font-size: 13px;
  }

  .gm-guide .gm-count {
    font-size: 12px;
  }

  /* Разделы уезжают в одну прокручиваемую строку, чтобы прилипшая панель
     не занимала половину экрана телефона. */
  .gm-guide .gm-filters {
    flex-wrap: nowrap;
    margin: 0 -10px;
    padding: 2px 10px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gm-guide .gm-filters::-webkit-scrollbar {
    display: none;
  }

  .gm-guide .gm-filter:hover {
    transform: none;
  }

  .gm-guide .gm-group-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .gm-guide .gm-command {
    padding: 18px;
  }

  .gm-guide .gm-code-row {
    flex-wrap: wrap;
  }

  .gm-guide .gm-code-row code {
    flex-basis: 100%;
  }

  .gm-guide .gm-copy {
    width: 100%;
  }

  .gm-guide .gm-faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-guide *,
  .gm-guide *::before,
  .gm-guide *::after {
    animation: none !important;
    transition: none !important;
  }

  .gm-guide .gm-filter:hover,
  .gm-guide .gm-filter:active,
  .gm-guide .gm-copy:hover,
  .gm-guide .gm-copy:active,
  .gm-guide #gm-reset:hover,
  .gm-guide #gm-reset:active {
    transform: none !important;
  }
}
