/* Квадрат Пифагора на редизайне. Разметку результата рисует /js/ezoterika/kvadrat-pifagora.js,
   блок «Эта же дата» — /js/ezoterika/date-transfer.js (его style#dt-style перебивается специфичностью).
   JS ставит выходам display:block и инлайн-отступы заголовкам — возвращаем свою раскладку через !important.
   Раскладка результата зависит от ширины блока результата (container query), а не окна. */

/* ===== форма ===== */
.rd #kp-calc .rda-form { display: flex; flex-direction: column; gap: 28px; margin: 0; }
.rd #kp-calc .kp-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rd #kp-calc .kp-tabs { display: inline-flex; gap: 0; margin: 0; padding: 3px; border-radius: 999px; background: var(--pill); }
.rd #kp-calc .kp-tab { flex: none; width: auto; min-width: 0; margin: 0; padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font: 400 13px/1.2 var(--f-ui); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.rd #kp-calc .kp-tab.is-active { background: var(--tile); color: var(--ink); font-weight: 500; }
.rd #kp-calc .kp-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rd #kp-calc .kp-intro-line { margin: 0; font: 400 15px/1.5 var(--f-ui); color: var(--mute); opacity: 1; }
.rd #kp-calc #kp-partner > .kp-intro-line { margin: 0 0 16px; }

.rd #kp-calc .kp-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.rd #kp-calc .kp-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.rd #kp-calc .kp-field > label { margin: 0; padding: 0; opacity: 1; font: 400 11px/1.3 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.rd #kp-calc .kp-sel { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 100%; height: 48px; margin: 0; padding: 0 44px 0 16px; background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B7075' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; outline: none; font: 500 16px/1 var(--f-ui); color: var(--ink); cursor: pointer; }
.rd #kp-calc input.kp-sel { padding: 0 16px; background-image: none; cursor: text; -moz-appearance: textfield; }
.rd #kp-calc input.kp-sel::-webkit-outer-spin-button, .rd #kp-calc input.kp-sel::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rd #kp-calc .kp-sel::placeholder { color: var(--mute); opacity: .6; }
.rd #kp-calc .kp-sel:focus { border-color: var(--accent); box-shadow: none; }

/* расширенный метод */
.rd #kp-calc .kp-ext-toggle { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--tile); cursor: pointer; }
.rd #kp-calc .kp-ext-toggle input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.rd #kp-calc .kp-ext-box { position: relative; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; box-sizing: border-box; transition: background .15s, border-color .15s; }
.rd #kp-calc .kp-ext-toggle input:checked + .kp-ext-box { background: var(--ink); border-color: var(--ink); }
.rd #kp-calc .kp-ext-toggle input:checked + .kp-ext-box::after { content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rd #kp-calc .kp-ext-toggle input:focus-visible + .kp-ext-box { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.rd #kp-calc .kp-ext-txt { display: flex; flex-direction: column; gap: 4px; font: 500 15px/1.4 var(--f-ui); color: var(--ink); }
.rd #kp-calc .kp-ext-hint { display: block; opacity: 1; font: 400 13px/1.5 var(--f-ui); color: var(--mute); }

/* кнопки */
.rd #kp-calc .rda-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rd #kp-calc .rda-btn, .rd #kp-calc .kp-chip-ex { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0; width: auto; height: auto; border: 1px solid transparent; border-radius: 999px; box-shadow: none; opacity: 1; text-decoration: none; white-space: nowrap; cursor: pointer; }
.rd #kp-calc .rda-btn--ink { padding: 13px 28px; background: var(--ink); color: #fff; font: 500 15px/1 var(--f-ui); }
.rd #kp-calc .rda-btn--pill { padding: 14px 24px; background: var(--pill); color: var(--ink); font: 400 13px/1 var(--f-ui); }
.rd #kp-calc .kp-chip-ex { padding: 13px 16px; background: transparent; border-color: var(--line); color: var(--mute); font: 400 13px/1 var(--f-ui); }
.rd #kp-calc .rda-btn:hover, .rd #kp-calc .kp-chip-ex:hover { opacity: .85; }
.rd #kp-calc .kp-chip-ex:hover { border-color: var(--line); color: var(--ink); }

.rd #kp-calc .kp-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font: 500 14px/1.45 var(--f-ui); text-align: left; }

/* ===== результат ===== */
.rd #kp-calc .rda-result { display: flex; flex-direction: column; gap: 28px; padding: 28px; border-radius: 20px; background: var(--tile); container: kpres / inline-size; }
.rd #kp-calc .rda-result:has(> #kp-output[style*="none"]):has(> #kp-child-output[style*="none"]):has(> #kp-pair-output[style*="none"]) { display: none; }
.rd #kp-calc #dt-transfer-wrap:empty { display: none; }

.rd #kp-calc #kp-output:not([style*="none"]) { display: flex !important; flex-direction: column; gap: 32px; }
.rd #kp-calc #kp-banner-wrap:empty { display: none; }
.rd #kp-calc .kp-blk { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rd #kp-calc .kp-blk__head { display: flex; flex-direction: column; gap: 6px; }

.rd #kp-calc .kp-h { margin: 0 !important; padding: 0; border: 0; font: 600 20px/1.25 var(--f-ui); letter-spacing: -.2px; color: var(--ink); }
.rd #kp-calc .kp-sub, .rd #kp-calc .kp-lead, .rd #kp-calc .kp-hint, .rd #kp-calc .kp-note { margin: 0; opacity: 1; font: 400 14px/1.5 var(--f-ui); color: var(--mute); }
.rd #kp-calc .kp-lead b, .rd #kp-calc .kp-note b { font-weight: 600; color: var(--ink); }

.rd #kp-calc .kp-banner { margin: 0; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--accent-soft); font: 400 15px/1.5 var(--f-ui); color: var(--ink); }
.rd #kp-calc .kp-banner b { font-weight: 600; }
.rd #kp-calc .kp-banner--on { background: #FBF0C4; }

/* сетка квадрата и выбранная ячейка */
.rd #kp-calc .kp-sq { display: flex; flex-direction: column; gap: 12px; }
.rd #kp-calc #kp-detail:empty, .rd #kp-calc #kp-child-detail:empty { display: none; }
.rd #kp-calc .kp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 364px; max-width: 100%; margin: 0; }
.rd #kp-calc .kp-cell { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 4px; box-sizing: border-box; min-width: 0; height: 104px; margin: 0; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--card); box-shadow: none; color: var(--ink); text-align: left; cursor: pointer; transition: background .15s, box-shadow .15s; }
.rd #kp-calc .kp-cell:hover { box-shadow: inset 0 0 0 1px var(--accent-mid); }
.rd #kp-calc .kp-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd #kp-calc .kp-cell__idx { position: static; font: 400 11px/1.2 var(--f-mono); letter-spacing: 1px; color: var(--mute); opacity: 1; }
.rd #kp-calc .kp-cell__run { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 26px/1 var(--f-ui); letter-spacing: -.5px; color: var(--ink); }
.rd #kp-calc .kp-cell--empty .kp-cell__run { font: 400 18px/1.2 var(--f-ui); letter-spacing: 0; color: var(--mute); }
.rd #kp-calc .kp-cell__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px/1.3 var(--f-ui); color: var(--mute); }
.rd #kp-calc .kp-cell--hi { box-shadow: inset 0 0 0 1.5px #F6D965; }
.rd #kp-calc .kp-cell.is-sel { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rd #kp-calc .kp-cell.is-sel .kp-cell__idx { color: var(--accent); }

.rd #kp-calc .kp-card { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 20px; border: 0; border-radius: 16px; background: var(--card); box-shadow: none; }
.rd #kp-calc .kp-card__body { display: contents; }
.rd #kp-calc .kp-card__eyebrow { order: -1; margin: 0; font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--accent); opacity: 1; }
.rd #kp-calc .kp-card__badge { width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; overflow-wrap: anywhere; font: 600 44px/1 var(--f-ui); letter-spacing: -1.5px; color: var(--ink); }
.rd #kp-calc .kp-card__title { margin: 0; padding: 0; border: 0; font: 600 16px/1.35 var(--f-ui); letter-spacing: 0; color: var(--ink); }
.rd #kp-calc .kp-card__key { margin: -6px 0 0; font: 400 13px/1.45 var(--f-ui); color: var(--mute); opacity: 1; }
.rd #kp-calc .kp-card__interp { margin: 0; font: 400 14px/1.5 var(--f-ui); color: var(--ink); opacity: 1; }
.rd #kp-calc .kp-detail.kp-pop .kp-card { animation: kp-pop .22s ease-out; }
@keyframes kp-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* рабочие числа */
.rd #kp-calc #kp-work-wrap { display: flex; flex-direction: column; gap: 12px; }
.rd #kp-calc .kp-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.rd #kp-calc .kp-wnum { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; margin: 0; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--card); text-align: left; }
.rd #kp-calc .kp-wnum__lbl { font: 400 11px/1.3 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); opacity: 1; }
.rd #kp-calc .kp-wnum b { font: 600 24px/1 var(--f-ui); letter-spacing: -.5px; color: var(--ink); }

/* ячейки квадрата и воспитание по ячейкам (в детской пункты лежат прямо в выходе) */
.rd #kp-calc #kp-cells { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rd #kp-calc #kp-cells > .kp-lead { grid-column: 1 / -1; }
.rd #kp-calc .kp-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: start; gap: 10px; min-width: 0; margin: 0; padding: 16px; border: 0; border-radius: 16px; background: var(--card); }
.rd #kp-calc .kp-item__run { justify-self: start; max-width: 100%; margin: 0; padding: 4px 10px; border: 0; border-radius: 8px; background: var(--accent-soft); overflow-wrap: anywhere; font: 600 14px/1.3 var(--f-ui); color: var(--accent); }
.rd #kp-calc .kp-item--empty .kp-item__run { background: var(--pill); color: var(--mute); }
.rd #kp-calc .kp-item__body { display: contents; }
.rd #kp-calc .kp-item__title { grid-column: 2; margin: 0; font: 600 14px/1.3 var(--f-ui); color: var(--ink); }
.rd #kp-calc .kp-item__idx { display: inline; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.rd #kp-calc .kp-item__idx::after { content: " ·"; }
.rd #kp-calc .kp-item__interp { grid-column: 1 / -1; margin: 0; font: 400 14px/1.5 var(--f-ui); color: var(--ink); opacity: 1; }

/* линии, столбцы, диагонали */
.rd #kp-calc #kp-lines { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rd #kp-calc #kp-lines > .kp-lead { grid-column: 1 / -1; }
.rd #kp-calc .kp-line { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 20px; border: 0; border-radius: 16px; background: var(--card); box-shadow: none; }
.rd #kp-calc .kp-line__head { --kp-lv: 50%; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.rd #kp-calc .kp-line__head::after { content: ""; flex: 0 0 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--kp-lv), var(--pill) var(--kp-lv)); }
.rd #kp-calc .kp-line--weak .kp-line__head { --kp-lv: 25%; }
.rd #kp-calc .kp-line--mid .kp-line__head { --kp-lv: 50%; }
.rd #kp-calc .kp-line--strong .kp-line__head { --kp-lv: 75%; }
.rd #kp-calc .kp-line--vstrong .kp-line__head { --kp-lv: 100%; }
.rd #kp-calc .kp-line__name { flex: 0 0 100%; font: 600 16px/1.3 var(--f-ui); color: var(--ink); }
.rd #kp-calc .kp-line__meta { flex: 0 0 100%; margin: -4px 0 0; padding: 0; border: 0; background: none; font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); opacity: 1; }
.rd #kp-calc .kp-line__desc { margin: 0; font: 400 13px/1.4 var(--f-ui); color: var(--mute); opacity: 1; }
.rd #kp-calc .kp-line__interp { margin: 0; font: 400 14px/1.5 var(--f-ui); color: var(--ink); opacity: 1; }

/* детская психоматрица */
.rd #kp-calc #kp-child-output:not([style*="none"]) { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rd #kp-calc #kp-child-output > * { margin: 0 !important; }
.rd #kp-calc #kp-child-output > :not(.kp-item) { grid-column: 1 / -1; }
.rd #kp-calc #kp-child-output > .kp-lead + .kp-grid, .rd #kp-calc #kp-child-output > .kp-sum + .kp-h { margin-top: 12px !important; }
.rd #kp-calc .kp-sum { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rd #kp-calc .kp-sum__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 18px; border: 0; border-radius: 16px; background: var(--card); }
.rd #kp-calc .kp-sum__col--strong { background: var(--accent-soft); }
.rd #kp-calc .kp-sum__t { font: 600 15px/1.3 var(--f-ui); color: var(--ink); }
.rd #kp-calc .kp-sum__col p { margin: 0; font: 400 14px/1.5 var(--f-ui); color: var(--ink); opacity: 1; }

/* совместимость */
.rd #kp-calc #kp-pair-result { display: flex; flex-direction: column; gap: 16px; }
.rd #kp-calc #kp-pair-result > * { margin: 0 !important; }
.rd #kp-calc .kp-harmony { display: flex; align-items: center; gap: 18px; padding: 20px; border: 0; border-radius: 16px; background: var(--card); }
.rd #kp-calc .kp-harmony__big { flex: none; font: 600 44px/1 var(--f-ui); letter-spacing: -1.5px; color: var(--accent); }
.rd #kp-calc .kp-harmony__txt { font: 400 14px/1.45 var(--f-ui); color: var(--ink); }
.rd #kp-calc .kp-harmony__txt b { font-weight: 600; }
.rd #kp-calc .kp-cmp { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.rd #kp-calc .kp-cmp__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 7.5rem; align-items: center; gap: 6px 14px; margin: 0; padding: 14px 16px 14px 20px; border: 0; border-radius: 12px; background: var(--card); box-shadow: inset 4px 0 0 var(--mute); }
.rd #kp-calc .kp-cmp__row--green { box-shadow: inset 4px 0 0 #2FA35A; }
.rd #kp-calc .kp-cmp__row--yellow { box-shadow: inset 4px 0 0 #E0A021; }
.rd #kp-calc .kp-cmp__row--red { box-shadow: inset 4px 0 0 var(--bad); }
.rd #kp-calc .kp-cmp__name { font: 600 15px/1.3 var(--f-ui); color: var(--ink); }
.rd #kp-calc .kp-cmp__vals { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--f-mono); color: var(--ink); }
.rd #kp-calc .kp-cmp__dash { color: var(--mute); }
.rd #kp-calc .kp-cmp__badge { justify-self: end; padding: 4px 10px; border-radius: 999px; background: var(--pill); font: 500 12px/1.3 var(--f-ui); color: var(--ink); white-space: nowrap; }
.rd #kp-calc .kp-cmp__desc { grid-column: 1 / -1; font: 400 13px/1.45 var(--f-ui); color: var(--mute); }

/* раскладка по ширине результата */
@container kpres (min-width: 480px) {
    .rd #kp-calc .kp-work { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rd #kp-calc .kp-wnum b { font-size: 28px; }
    .rd #kp-calc #kp-cells, .rd #kp-calc #kp-lines, .rd #kp-calc #kp-child-output:not([style*="none"]), .rd #kp-calc .kp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd #kp-calc .kp-item { padding: 18px; }
}
@container kpres (min-width: 640px) {
    .rd #kp-calc .kp-sq { flex-direction: row; align-items: flex-start; gap: 24px; }
    .rd #kp-calc #kp-grid-wrap { flex: 0 0 364px; }
    .rd #kp-calc #kp-detail { flex: 1 1 0; min-width: 0; }
    .rd #kp-calc #kp-cells, .rd #kp-calc #kp-child-output:not([style*="none"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* «Эта же дата в других расчётах» */
.rd #kp-calc .dt-transfer { margin: 0; text-align: left; }
.rd #kp-calc .dt-transfer__ttl { margin: 0 0 12px; opacity: 1; font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.rd #kp-calc .dt-transfer__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd #kp-calc .dt-transfer__link { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 4px 8px; min-width: 0; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; transition: box-shadow .15s; }
.rd #kp-calc .dt-transfer__link:hover { box-shadow: inset 0 0 0 1px var(--accent-mid); }
.rd #kp-calc .dt-transfer__link::after { content: ""; grid-column: 2; grid-row: 1 / 3; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234F5BD5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") no-repeat center / 16px; }
.rd #kp-calc .dt-transfer__link span { grid-column: 1; font: 600 15px/1.3 var(--f-ui); color: var(--ink); }
.rd #kp-calc .dt-transfer__link i { grid-column: 1; opacity: 1; font: 400 13px/1.35 var(--f-ui); font-style: normal; color: var(--mute); }

/* ===== статья и боковая колонка ===== */
.rd .rd-article__body .table-scroll { overflow-x: auto; }

.rd .rda-src h2.rd-label { margin: 0; padding: 0; border: 0; font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); scroll-margin-top: 16px; }
.rd .rda-src__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rd .rda-src__list li { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rd .rda-src__list li:last-child { padding-bottom: 0; border-bottom: 0; }
.rd .rda-src__list li::before { display: none; }
.rd .rda-src__list b { font: 600 14px/1.35 var(--f-ui); color: var(--ink); }
.rd .rda-src__list span { font: 400 13px/1.45 var(--f-ui); color: var(--mute); }
.rd .rda-src__list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-mid); text-underline-offset: 2px; }
.rd .rd-article__aside .ymyl-disclaimer { margin: 0; padding: 24px; border-radius: 22px; }
.rd .rd-article__aside .ymyl-disclaimer strong { display: block; margin-bottom: 10px; font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }

/* ===== телефон ===== */
@media (max-width: 639px) {
    .rd #kp-calc .rda-form { gap: 22px; }
    .rd #kp-calc .kp-mode { align-items: stretch; }
    .rd #kp-calc .kp-tabs { display: flex; }
    .rd #kp-calc .kp-tab { flex: 1 1 auto; padding: 9px 11px; }
    .rd #kp-calc .kp-fields { grid-template-columns: 84px minmax(0, 1fr) 96px; gap: 10px; }
    .rd #kp-calc .kp-sel { padding: 0 32px 0 12px; background-position: right 10px center; font-size: 15px; }
    .rd #kp-calc input.kp-sel { padding: 0 12px; }
    .rd #kp-calc .kp-ext-toggle { padding: 14px; }
    .rd #kp-calc .rda-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
    .rd #kp-calc .rda-btn--ink { grid-column: 1 / -1; padding-left: 16px; padding-right: 16px; }

    .rd #kp-calc .rda-result { gap: 22px; padding: 16px; }
    .rd #kp-calc #kp-output:not([style*="none"]) { gap: 26px; }
    .rd #kp-calc .kp-h { font-size: 18px; }
    .rd #kp-calc .kp-sub, .rd #kp-calc .kp-lead, .rd #kp-calc .kp-hint, .rd #kp-calc .kp-note { font-size: 13px; }
    .rd #kp-calc .kp-banner { padding: 12px 14px; font-size: 14px; }
    .rd #kp-calc .kp-grid { width: 100%; }
    .rd #kp-calc .kp-cell { height: 84px; padding: 10px 11px; }
    .rd #kp-calc .kp-cell__run { font-size: 22px; }
    .rd #kp-calc .kp-cell--empty .kp-cell__run { font-size: 16px; }
    .rd #kp-calc .kp-cell__name { font-size: 12px; }
    .rd #kp-calc .kp-card { padding: 18px; }
    .rd #kp-calc .kp-card__badge { font-size: 36px; letter-spacing: -1px; }
    .rd #kp-calc .kp-card__interp { font-size: 15px; }
    .rd #kp-calc .kp-line { padding: 16px; }
    .rd #kp-calc .kp-harmony { padding: 16px; gap: 14px; }
    .rd #kp-calc .kp-harmony__big { font-size: 36px; }
    .rd #kp-calc .kp-cmp__row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px 12px 18px; }
    .rd #kp-calc .kp-cmp__badge { grid-column: 1 / -1; justify-self: start; }
    .rd #kp-calc .dt-transfer__row { grid-template-columns: minmax(0, 1fr); }
    .rd .rd-article__aside .ymyl-disclaimer { padding: 20px; border-radius: 20px; }
}
