/* Paintking — мольберт и рисование герба. Все классы с префиксом .ed- */

.ed {
  display: grid;
  grid-template-columns: clamp(226px, 16.5vw, 264px) minmax(0, 1fr) clamp(286px, 22vw, 350px);
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1560px, calc(100vw - 20px));
  height: min(980px, calc(100vh - 20px));
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

/* ---------- Шапка ---------- */
.ed-head {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: 16px;
  padding: 8px 18px 6px;
  border-bottom: 1.5px solid var(--line);
}
.ed-title { font-size: 26px; line-height: 1.15; }
.ed-keys { font-size: 12px; color: var(--ink-3); }
.ed-keys kbd { margin: 0 1px; }
.ed-head .spacer { flex: 1; }
.ed-mode {
  font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  border: 1.5px solid var(--ink-2); color: var(--ink-2);
}
.ed-mode.live { border-color: var(--gold-2); color: var(--gold-2); background: rgba(212, 160, 23, .1); }

/* ---------- Подписи разделов ---------- */
.ed-label {
  font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px;
}
.ed-label b { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); font-family: var(--font-hand); }

/* ---------- Инструменты слева ---------- */
.ed-tools {
  padding: 12px 12px 12px 14px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto; overflow-x: hidden;
  border-right: 1.5px solid var(--line);
}
.ed-seg { display: flex; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--ink); }
.ed-seg > button {
  flex: 1; border: 0; background: var(--paper); padding: 6px 4px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.ed-seg > button + button { border-left: 2px solid var(--ink); }
.ed-seg > button:hover { background: var(--paper-2); }
.ed-seg > button.on { background: var(--ink); color: var(--paper); }
.ed-seg > button:disabled { color: var(--ink-3); cursor: default; background: var(--paper); }

.ed-weapons { display: flex; flex-direction: column; gap: 5px; }
.ed-weapon {
  display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 8px;
  text-align: left; padding: 5px 8px; min-height: 44px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: background .12s ease, border-color .12s ease;
}
.ed-weapon:hover { background: var(--paper-2); border-color: var(--ink-3); }
.ed-weapon.on { border: 2px solid var(--ink); background: #fff; box-shadow: 0 2px 0 var(--ink); padding: 4px 7px; }
.ed-weapon svg { width: 28px; height: 28px; grid-row: span 2; color: var(--ink); }
.ed-weapon.on svg { color: var(--gold-2); }
.ed-weapon b { font-size: 14px; line-height: 1.15; }
.ed-weapon span { font-size: 11.5px; line-height: 1.2; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-weapon > b, .ed-weapon > span { min-width: 0; }
.ed-wnote { font-size: 11.5px; line-height: 1.3; color: var(--ink-3); margin-top: 5px; font-style: italic; }

/* Стиль боя: карточки «имя + строка» */
.ed-styles { display: grid; grid-template-columns: 1fr; gap: 4px; }
.ed-style {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left;
  padding: 5px 9px 6px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: background .12s ease, border-color .12s ease; min-width: 0;
}
.ed-style:hover { background: var(--paper-2); border-color: var(--ink-3); }
.ed-style b { font-size: 13.5px; line-height: 1.15; }
.ed-style span { font-size: 11.5px; line-height: 1.25; color: var(--ink-3); }
.ed-style.on { border: 2px solid var(--ink); background: #fff; box-shadow: 0 2px 0 var(--gold-2); padding: 4px 8px 5px; }
.ed-style.on b { color: var(--ink); }
.ed-style.on b::before { content: "● "; color: var(--gold-2); font-size: 10px; vertical-align: 1px; }

/* Стрелы, метательное, снаряд: кнопки-фишки */
.ed-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ed-chip {
  padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.ed-chip:hover { border-color: var(--ink-3); color: var(--ink); background: #fff; }
.ed-chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ed-chip.ar-fire.on { background: #b8421d; border-color: #b8421d; }
.ed-chip.ar-poison.on { background: #4f7d2a; border-color: #4f7d2a; }
.ed-chip.ar-pierce.on { background: #3d4f66; border-color: #3d4f66; }
.ed-chipnote { font-size: 11.5px; line-height: 1.3; color: var(--ink-3); margin-top: 5px; }
.ed-extra { border: 1.5px dashed var(--gold); border-radius: var(--radius); padding: 7px 8px 8px; background: rgba(212, 160, 23, .05); }
.ed-count { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 12.5px; color: var(--ink-2); }
.ed-seg.ed-seg-sm { flex: 1; box-shadow: 0 1.5px 0 var(--ink); border-width: 1.5px; }
.ed-seg.ed-seg-sm > button { padding: 3px 4px; font-size: 13px; }
.ed-seg.ed-seg-sm > button + button { border-left-width: 1.5px; }

/* Справа: каждая часть — сколько краски к обычной и что даёт (щелчок — выбрать часть) */
.ed-dur { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 5px 6px 6px; background: #fff; }
.ed-dur-row {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 7px;
  font: inherit; font-size: 13px; line-height: 1.2; color: var(--ink); text-align: left;
  width: 100%; padding: 3px 4px; border: 0; border-radius: 6px; background: none;
}
button.ed-dur-row { cursor: pointer; }
button.ed-dur-row:hover { background: var(--paper-2); }
.ed-dur-row i { display: flex; color: var(--ink-2); }
.ed-dur-row i svg { width: 18px; height: 18px; }
.ed-dur-row > span { display: flex; flex-direction: column; min-width: 0; }
.ed-dur-row b { font-weight: 600; }
.ed-dur-row small { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-dur-row em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--ink-2); }
.ed-dur-row.off { color: var(--ink-3); }
.ed-dur-row.off i { opacity: .5; }
.ed-dur-row.off em { font-weight: 600; color: var(--ink-3); }
.ed-dur-row.cur { background: rgba(212, 160, 23, .1); }
.ed-dur-row.cur i, .ed-dur-row.cur em { color: var(--gold-2); }
.ed-dur-row.flesh { border-top: 1px dashed var(--line); border-radius: 0; padding-top: 5px; margin-top: 2px; }
.ed-dur-row.flesh i, .ed-dur-row.flesh em { color: var(--danger); }

.ed-size input { margin: 0; }
.ed-size .ed-ticks { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: -2px; }
.ed-size .ed-sizenum { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ed-need { margin-top: 5px; font-size: 12px; line-height: 1.25; color: var(--ink-3); }
.ed-need.lvl { color: var(--gold-2); font-weight: 700; }
.ed-need.lvl::before { content: "▲ "; font-size: 9px; vertical-align: 1px; }
.ed-pv-cap.one { grid-template-columns: 1fr; }

.ed-pal { display: flex; gap: 7px; flex-wrap: wrap; }
.ed-sw {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; padding: 0;
  position: relative; transition: transform .1s ease;
}
.ed-sw:hover { transform: scale(1.08); }
.ed-sw.on { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold); }
.ed-sw i {
  position: absolute; right: -5px; bottom: -6px; font: 600 10px/1 var(--font-ui); font-style: normal;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 1px 3px; color: var(--ink-3);
}
.ed-palname { font-size: 12px; color: var(--ink-2); margin-top: 6px; min-height: 16px; }

.ed-brushes { display: flex; gap: 6px; align-items: center; }
.ed-brush {
  width: 38px; height: 38px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.ed-brush:hover { background: var(--paper-2); border-color: var(--ink-3); }
.ed-brush.on { border: 2px solid var(--ink); background: #fff; box-shadow: 0 2px 0 var(--ink); }
.ed-brush i { display: block; border-radius: 50%; background: var(--ink); }
.ed-brush svg { width: 22px; height: 22px; }
.ed-brushes .ed-gap { flex: 1; }

.ed-hist { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.ed-row2 { display: flex; gap: 6px; }
.ed-row2 .btn { flex: 1; }
.ed-hist .btn svg { width: 18px; height: 18px; }
.ed-hist .ed-clear { justify-content: center; gap: 6px; }
.ed-hist .ed-clear-all { box-shadow: none; border-width: 1.5px; border-color: var(--line); color: var(--ink-2); font-weight: 600; }
.ed-hist .ed-clear-all:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }

/* ---------- Холст в центре ---------- */
.ed-stage {
  position: relative; min-width: 0; min-height: 0;
  padding: 10px 14px 14px;
  background: var(--paper-2);
  display: flex; flex-direction: column; gap: 10px;
}

/* Части сверху: Шлем, Броня, Щит, Оружие (у чудища — Тело, Лапы, Ноги).
   Вкладки и кнопки «Только эта часть» / «Всё поле» не наезжают друг на друга ни при какой ширине:
   не хватает места — кнопки уходят на вторую строку, а вкладки переносятся внутри своей строки. */
.ed-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ed-parts { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; max-width: 100%; }
.ed-togs { display: flex; gap: 8px; flex: none; margin-left: auto; }
.ed-part {
  position: relative;
  display: grid; grid-template-columns: 28px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  text-align: left; padding: 5px 22px 5px 9px; min-width: 108px; max-width: 100%;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.ed-part:hover { border-color: var(--ink-3); background: #fff; }
.ed-part-ic { grid-row: span 2; display: flex; }
.ed-part-ic svg { width: 26px; height: 26px; }
.ed-part b { font-size: 15px; line-height: 1.1; }
.ed-part small { font-size: 11px; line-height: 1.15; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ed-part kbd {
  position: absolute; right: 4px; top: 3px; font-size: 9.5px; padding: 1px 3px; opacity: .55; border-color: var(--line);
}
.ed-part.on {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  box-shadow: 0 3px 0 var(--gold-2); transform: translateY(-1px);
}
.ed-part.on .ed-part-ic { color: var(--gold); }
.ed-part.on small { color: #d9cfbd; }
.ed-part.on kbd { color: var(--paper); border-color: rgba(251, 248, 241, .5); opacity: .7; }

.ed-tog {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none;
  padding: 6px 11px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
}
.ed-tog svg { width: 17px; height: 17px; }
.ed-tog:hover { border-color: var(--ink-3); color: var(--ink); background: #fff; }
.ed-tog.on { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 2px 0 var(--gold-2); }
.ed-tog.on svg { color: var(--gold); }
.ed-tog:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
/* «Видна только часть …» — на листе, пока включено «Только эта часть» */
.ed-solo-note {
  position: absolute; left: 10px; top: 10px; z-index: 1; pointer-events: none;
  font-size: 12.5px; font-weight: 600; color: var(--paper); background: var(--ink);
  border-radius: 999px; padding: 4px 12px; box-shadow: 0 2px 0 var(--gold-2);
}

/* Лист на столе: холст во всю ширину, бумагу рисует сам мольберт */
.ed-sheet {
  position: relative; flex: 1; min-width: 0; min-height: 0;
  border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, .35), transparent 70%),
    #e6dece;
  box-shadow: inset 0 1px 6px rgba(29, 27, 26, .12);
}
.ed-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: none; }
.ed-sheet-note {
  position: absolute; left: 10px; bottom: 10px; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); pointer-events: none;
  max-width: min(360px, calc(100% - 70px));
  transition: opacity .2s ease;
  background: rgba(251, 248, 241, .9); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px;
}
.ed.drawing .ed-sheet-note { opacity: .2; }
.ed-zoom {
  position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column-reverse;
  border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--paper);
}
.ed-zoom button { width: 32px; height: 30px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.ed-zoom button + button { border-bottom: 1px solid var(--line); }
.ed-zoom button:hover { background: #fff; color: var(--ink); }
.ed-zoom svg { width: 16px; height: 16px; }

/* ---------- Правая колонка ---------- */
.ed-side {
  display: flex; flex-direction: column; min-height: 0;
  border-left: 1.5px solid var(--line);
}
.ed-side-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 6px; display: flex; flex-direction: column; gap: 11px; }

.ed-name { display: flex; flex-direction: column; gap: 3px; }
.ed-name input {
  width: 100%; font-family: var(--font-hand); font-weight: 700; font-size: 19px; padding: 4px 10px;
  border: 1.5px solid var(--line); background: #fff;
}
.ed-name input:hover { border-color: var(--ink-3); }
.ed-name-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); min-height: 18px; }
.ed-link {
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--gold-2); font-size: 12px; font-weight: 600;
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.ed-link:hover { color: var(--ink); }

.ed-zone {
  border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 7px 10px 8px; min-height: 76px;
  flex-shrink: 0;   /* в колонке .ed-side-body min-height заменяет авто-минимум — без этого карточка сжимается и текст вылезает за рамку */
  background: rgba(212, 160, 23, .07);
  font-size: 13px; line-height: 1.3; color: var(--ink-2); transition: border-color .15s ease, background .15s ease;
}
.ed-zone-h { display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: 7px; margin-bottom: 4px; }
.ed-zone-ic { display: flex; color: var(--gold-2); }
.ed-zone-ic svg { width: 21px; height: 21px; }
.ed-zone-h b { font-family: var(--font-hand); font-size: 16px; color: var(--ink); line-height: 1.1; }
.ed-zone-bar { position: relative; height: 7px; overflow: visible; }
.ed-zone-bar > i { background: var(--gold-2); transition: width .2s ease; }
.ed-zone-bar > u { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.ed-zone-main { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.ed-zone-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.ed-zone.warn { border-color: #d27a2c; background: rgba(210, 122, 44, .08); }
.ed-zone.warn .ed-zone-sub { color: #a4521a; }
.ed-zone.warn .ed-zone-bar > i { background: #d27a2c; }

.ed-stats { display: flex; flex-direction: column; gap: 6px; }
.ed-stat { display: grid; grid-template-columns: 82px 1fr 76px; align-items: center; gap: 8px; font-size: 13px; }
.ed-stat > span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-stat .bar { height: 9px; position: relative; }
.ed-stat .bar > u { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--paper); opacity: .9; }
.ed-stat .bar > i { transition: width .25s ease, background .25s ease; }
.ed-stat .bar > i.up { background: var(--gold-2); }
.ed-stat .bar > i.down { background: var(--danger); }
.ed-stat > b { text-align: right; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.ed-stat > b small { font-weight: 400; color: var(--ink-3); font-size: 11px; }
.ed-stat.off { opacity: .45; }
.ed-stat.crawl > b small { color: #a4521a; font-weight: 600; }

.ed-cost { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; }
.ed-cost > div {
  border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 4px 6px 5px; text-align: center; background: #fff;
}
.ed-cost > div:first-child { border-color: var(--gold-2); background: rgba(212, 160, 23, .08); }
.ed-cost b { display: block; font-family: var(--font-hand); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ed-cost span { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.1; }

.ed-pv { display: flex; flex-direction: column; gap: 3px; }
.ed-preview {
  width: 100%; height: 132px; display: block; border-radius: 8px; border: 1.5px solid var(--line); background: #fffdf9;
}
.ed-pv-cap { display: grid; grid-template-columns: 36% 1fr; text-align: center; font-size: 11px; color: var(--ink-3); }
.ed-verdict { font-family: var(--font-hand); font-size: 16px; line-height: 1.25; text-align: center; color: var(--ink); min-height: 20px; }

.ed-foot { padding: 8px 14px 12px; border-top: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ed-note { font-size: 13px; text-align: center; font-weight: 600; color: var(--ink-2); }
.ed-note.live { color: var(--gold-2); }
.ed-buttons { display: flex; gap: 8px; }
.ed-buttons .btn { flex: 1; }
.ed-buttons .btn.primary { flex: 1.6; }

/* ---------- Подтверждение поверх мольберта ---------- */
.ed-ask {
  position: absolute; inset: 0; z-index: 5; background: rgba(251, 248, 241, .72);
  display: flex; align-items: center; justify-content: center;
}
.ed-ask .dialog { max-width: 380px; text-align: center; }
.ed-ask .dialog p { margin: 4px 0 0; color: var(--ink-2); }
.ed-ask .actions { justify-content: center; }

.ed-toast {
  position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 6;
  background: var(--ink); color: var(--paper); padding: 7px 16px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow); pointer-events: none; animation: pk-toast 2.8s ease forwards; white-space: nowrap;
}

/* ---------- Герб ---------- */
.ed.ed-bn {
  grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 320px);
  width: min(1180px, calc(100vw - 20px));
  height: min(760px, calc(100vh - 20px));
}
.ed-bn .ed-stage { padding: 18px; }
.ed-bn .ed-sheet { display: flex; align-items: center; justify-content: center; background: transparent; border: 0; box-shadow: none; }
.ed-bn .ed-canvas { cursor: none; }
.ed-bn-side { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; }
.ed-bn-side .ed-pal { gap: 8px; }
.ed-bn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-bn-row .btn { flex: 1; }
.ed-bn-row .btn svg { width: 18px; height: 18px; }
.ed-flag { width: 100%; height: 170px; display: block; border-radius: 8px; border: 1.5px solid var(--line); background: #fffdf9; }
.ed-bn .ed-side { border-left: 1.5px solid var(--line); }

/* Узкие и низкие окна */
@media (max-height: 800px) {
  .ed-head { padding: 5px 16px 4px; }
  .ed-title { font-size: 22px; }
  .ed-tools { gap: 10px; padding-top: 9px; }
  .ed-weapon { min-height: 40px; padding-top: 3px; padding-bottom: 3px; }
  .ed-side-body { gap: 8px; padding-top: 9px; }
  .ed-preview { height: 118px; }
  .ed-cost b { font-size: 23px; }
  .ed-zone { min-height: 68px; padding: 5px 9px 6px; }
  .ed-part { padding-top: 3px; padding-bottom: 3px; }
  .ed-stage { padding-top: 8px; gap: 8px; }
}
@media (max-width: 1340px) {
  .ed-part { min-width: 0; padding-right: 12px; }
  .ed-part kbd { display: none; }
  .ed-tog { padding: 6px 9px; }
}
@media (max-width: 1100px) {
  .ed-part { column-gap: 6px; padding-left: 7px; padding-right: 9px; }
  .ed-part-ic svg { width: 22px; height: 22px; }
  .ed-part b { font-size: 14px; }
  .ed-solo-note { font-size: 12px; padding: 3px 10px; }
}
@media (min-height: 900px) and (min-width: 1500px) {
  .ed-preview { height: 190px; }
  .ed-stat { font-size: 14px; grid-template-columns: 94px 1fr 80px; }
}

/* ================= Крупный интерфейс (html.big-ui, §10.7): текст от 12 px, кнопки от 32 px ================= */
.big-ui .ed {
  grid-template-columns: clamp(238px, 18vw, 280px) minmax(0, 1fr) clamp(300px, 23.5vw, 370px);
}
.big-ui .ed-keys { font-size: 13px; }
.big-ui .ed-label { font-size: 12px; }
.big-ui .ed-label b { font-size: 15px; }
.big-ui .ed-seg > button { min-height: 36px; font-size: 15px; }
.big-ui .ed-seg.ed-seg-sm > button { min-height: 32px; font-size: 14px; }
.big-ui .ed-weapon { min-height: 46px; }
.big-ui .ed-weapon b { font-size: 15px; }
.big-ui .ed-weapon span, .big-ui .ed-wnote, .big-ui .ed-chipnote { font-size: 12px; }
.big-ui .ed-style { min-height: 40px; }
.big-ui .ed-style b { font-size: 14px; }
.big-ui .ed-style span { font-size: 12px; }
.big-ui .ed-style.on b::before { font-size: 12px; vertical-align: 0; }
.big-ui .ed-chip { min-height: 32px; font-size: 13px; padding: 5px 12px; }
.big-ui .ed-count { font-size: 13px; }
.big-ui .ed-dur-row { min-height: 34px; font-size: 14px; }
.big-ui .ed-dur-row small { font-size: 12px; }
.big-ui .ed-dur-row em { font-size: 13px; }
.big-ui .ed-size .ed-ticks { font-size: 12px; margin-top: 0; }
.big-ui .ed-need { font-size: 13px; }
.big-ui .ed-need.lvl::before { font-size: 12px; vertical-align: 0; }
.big-ui .ed-sw { width: 34px; height: 34px; }
.big-ui .ed-sw i { font-size: 12px; }
.big-ui .ed-palname { font-size: 13px; }
.big-ui .ed-brush { width: 40px; height: 40px; }
.big-ui .ed-part { min-height: 46px; }
.big-ui .ed-part b { font-size: 15px; }
.big-ui .ed-part small { font-size: 12px; }
.big-ui .ed-part kbd { font-size: 12px; }
.big-ui .ed-tog { min-height: 36px; font-size: 14px; }
.big-ui .ed-solo-note, .big-ui .ed-sheet-note { font-size: 13px; }
.big-ui .ed-zoom button { width: 38px; height: 36px; }
.big-ui .ed-zoom svg { width: 18px; height: 18px; }
.big-ui .ed-name input { min-height: 38px; font-size: 20px; }
.big-ui .ed-name-row { font-size: 12px; min-height: 32px; }
.big-ui .ed-link { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; }
.big-ui .ed-zone { font-size: 14px; }
.big-ui .ed-zone-main { font-size: 14px; }
.big-ui .ed-zone-sub { font-size: 13px; }
.big-ui .ed-stat { font-size: 14px; grid-template-columns: 90px 1fr 82px; }
.big-ui .ed-stat > b { font-size: 14px; }
.big-ui .ed-stat > b small { font-size: 12px; }
.big-ui .ed-cost span { font-size: 12px; }
.big-ui .ed-pv-cap { font-size: 12px; }
.big-ui .ed-verdict { font-size: 17px; }
.big-ui .ed-note { font-size: 14px; }
.big-ui .ed-toast { font-size: 16px; padding: 9px 18px; }
.big-ui .ed.ed-bn { grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 340px); }
@media (max-width: 1340px) {
  /* кнопки частей не теснятся: подписи клавиш прячутся, как и без крупного интерфейса */
  .big-ui .ed-part { padding-right: 10px; }
}
