/* style-damage.css */
/* ===== МЕНЮ НАСТРОЕК ===== */
.debug-toggle { margin: 24px 0 0 0; display: flex; align-items: center; gap: 10px; color: var(--text-dim); cursor: pointer; }
.debug-toggle--no-checkbox { margin: 22px 0 0 0; cursor: pointer; }
#open-offline-btn { margin: 10px 0 0 0; }
.debug-toggle label { cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--text-dim); transition: color 0.2s; }
.debug-toggle label:hover, .debug-toggle label:hover .inline-icon { color: var(--text-bright); }

.debug-toggle input[type="checkbox"],
.debug-toggle input[type="radio"] { accent-color: var(--text-dim); width: 16px; height: 16px; margin: 0; background: var(--bg-section); }

.debug-toggle--inline input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid color-mix(in srgb, var(--text-dim) 60%, #000);
    border-radius: 50%;
    background: var(--bg-section);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.debug-toggle--inline input[type="radio"]:checked {
    border-color: var(--text-bright);
    background: var(--bg-section);
}

.debug-toggle--inline input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-bright);
}
.debug-spacer { display: inline-block; width: 16px; height: 16px; }
.debug-clickable { color: var(--text-dim); font-size: 14px; font-family: 'Courier New', monospace; }
.debug-toggle--no-checkbox:hover .debug-clickable, .debug-toggle--no-checkbox:hover .inline-icon { color: var(--text-bright); }

/* Строка с радиокнопками в один ряд */
.debug-toggle--inline { gap: 20px; }
.debug-toggle--inline label { gap: 6px; }

/* ===== ЗАТЕМНЕНИЕ ПАНЕЛИ ПРИ ОТКРЫТОМ ОФЛАЙНЕ ===== */
#offline-dim {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(10, 8, 6, 0.7);
    z-index: 60;
    pointer-events: auto;
}
#offline-dim.active { display: block; }

/* ===== СВОРАЧИВАЕМЫЕ СЕКЦИИ ===== */
.collapsible-section { border-top: none; }
.section-settings { margin-top: 6px; margin-bottom: 0px; z-index: 50; position: relative; }
.section-settings .collapsible-header { background: transparent; }
.section-settings .collapsible-header.open { background: var(--green); }
.section-settings .collapsible-body { background: var(--bg-section); }
#settings-section { z-index: 50; }
#settings-section .collapsible-body { padding: 12px 16px 24px 16px; }
.inline-param { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.inline-param label { color: var(--text-dim); white-space: nowrap; }
.inline-param select { background: #0a0907; color: var(--text-dim); border: 1px solid color-mix(in srgb, var(--green) 60%, #000); border-radius: 3px; padding: 6px 8px; font-size: 14px; font-family: 'Courier New', monospace; width: 100px; }
.inline-param-wrapper { position: relative; display: flex; align-items: flex-start; margin-bottom: 8px; }
.inline-param-wrapper .help-icon { position: absolute; top: -4px; right: -4px; }

/* ===== ПОРАЖАЮЩИЕ ФАКТОРЫ ===== */
#damage-section { margin-top: 6px; margin-bottom: 0px; z-index: 50; position: relative; border: 1px solid #3f3927; border-radius: 6px; }
#damage-section.disabled { opacity: 0.4; pointer-events: none; }

#damage-section.active { z-index: 101; }

.section-danger .collapsible-header, .section-danger .collapsible-header:hover { background: transparent; }
.damage-row td { padding: 4px 8px; color: var(--text-dark); border-bottom: 1px solid color-mix(in srgb, var(--bg-light) 85%, #000); vertical-align: middle; font-size: 14px; }
.damage-check { width: 24px; text-align: center; }
.damage-check input[type="checkbox"] { accent-color: var(--text-dim); width: 14px; height: 14px; }
.damage-label { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; width: 100%; }
.damage-label--bold { font-weight: bold; letter-spacing: 1px; font-size: 12px; }
.damage-label--small { font-size: 11px; }

.damage-value { text-align: right; min-width: 0; font-family: 'Courier New', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.damage-value--bold { font-weight: bold; }
.damage-separator td { padding: 0; border-bottom: none; }
.damage-separator-line { border-top: 1px solid color-mix(in srgb, var(--bg-light) 80%, #000); margin: 6px 0; }
.damage-row--header { background: var(--text-bright); }
.damage-check--skull { text-align: center; }
.skull-icon { display: block; margin: 0 auto; opacity: 0.6; width: 26px; height: 26px; }
@keyframes flash-measure { 0% { background-color: rgba(125,92,40,0.5); } 100% { background-color: transparent; } }
.damage-row.flash td { animation: flash-measure 0.5s ease-out; }
.explication-table--no-hover tr { cursor: default !important; }
.explication-table--no-hover tr:hover td { background: transparent !important; }
.exposure-control { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.exposure-btn { width: 26px; height: 26px; padding: 0; margin: 0; background: var(--text-bright); color: var(--text-dark); border: 1px solid var(--text-dim); border-radius: 3px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; font-family: 'Courier New', monospace; flex-shrink: 0; }
.exposure-btn:hover { background: #f6f2ea; }
.exposure-input { width: 56px; background: var(--bg-light); color: var(--text-dark); border: 1px solid var(--text-dim); text-align: center; font-family: 'Courier New', monospace; font-size: 12px; padding: 0 2px; height: 26px; }
.exposure-input::-webkit-outer-spin-button, .exposure-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.exposure-input[type="number"] { -moz-appearance: textfield; }
#pipette-hint { display: none; text-align: center; font-size: 12px; color: var(--danger); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ===== ЗАГОЛОВОК СЕКЦИИ ПОРАЖЕНИЯ (с кнопкой дозиметра) ===== */
#damage-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
}
.damage-death-label {
    flex: 1;
    font-size: 14px;
    color: var(--text-bright);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}
#death-header-value {
    font-family: 'My Share Tech Mono', monospace;
    font-size: 22px;
    color: #eed8b3;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(238, 216, 179, 0.4);
    margin-left: 6px;
}

#pipette-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    flex-shrink: 0;
    position: static;
    justify-content: center;
}
#pipette-btn .btn-icon {
    position: static;
    margin: 0;
    width: 22px;
    height: 22px;
}
@keyframes pipette-pulse {
    0%   { background: var(--danger); border-color: color-mix(in srgb, var(--danger) 70%, #fff); box-shadow: 0 0 4px rgba(212, 160, 23, 0.2); }
    50%  { background: #9f4d01;         border-color: #d4a017;                                  box-shadow: 0 0 14px rgba(212, 160, 23, 0.5); }
    100% { background: var(--danger); border-color: color-mix(in srgb, var(--danger) 70%, #fff); box-shadow: 0 0 4px rgba(212, 160, 23, 0.2); }
}
#pipette-btn.active {
    background: #9f4d01;
    border-color: #d4a017;
    box-shadow: 0 0 12px rgba(212, 160, 23, 0.4);
    animation: pipette-pulse 2s ease-in-out infinite;
}

#help-dosimeter {
    width: 18px;
    height: 18px;
    font-size: 12px;
    background: transparent;
    color: var(--text-dim);
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}
#help-dosimeter:hover {
    background: transparent;
    color: var(--text-bright);
}

/* ===== ВИЗУАЛИЗАЦИЯ ===== */

.vis-panel { border: none; margin-top: 0; background: transparent; }

.vis-panel .collapsible-header { display: flex; align-items: center; gap: 9px; padding: 0 0px; margin: 22px 0 0 0; min-height: 36px; font-size: 14px; color: var(--text-dim); background: transparent; font-weight: 400; letter-spacing: normal; text-transform: none; cursor: pointer; border-radius: 4px; }
.vis-panel .collapsible-header.open { background: #0d0c0a; color: var(--text-bright); }
.vis-panel .collapsible-header .inline-icon { margin-right: 0; }
#vis-body { padding: 18px 16px 18px 38px; background: #16130f; }
.vis-eq-block { margin-bottom: 30px; }
.vis-eq-block:last-child { margin-bottom: 0; }
.vis-eq-header { display: flex; align-items: center; justify-content: space-between; color: #eed8b3; font-size: 12px; letter-spacing: 1px; margin-bottom: 16px; }
.vis-help { width: 26px; height: 26px; font-size: 16px; line-height: 26px; background: #8b7a6a; color: #fff; cursor: pointer; text-align: center; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; user-select: none; transition: all 0.2s; }
.vis-help:hover { background: #7d5c28; }
#equalizer-canvas { background: #0a0907; border: 1px solid #2c1f16; border-radius: 3px; display: block; margin: 0 0 12px 0; }
.vis-reset-btn { background: var(--green); color: var(--text-bright); border: 1px solid color-mix(in srgb, var(--green) 60%, #fff); border-radius: 4px; padding: 8px 14px; margin-top: 20px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; width: 141px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 16px rgba(100,180,100,0.15), inset 0 0 8px rgba(100,180,100,0.04); }
.vis-reset-btn:hover { background: color-mix(in srgb, var(--green) 85%, #fff); border-color: color-mix(in srgb, var(--green) 45%, #fff); box-shadow: 0 0 28px rgba(100,180,100,0.3), inset 0 0 12px rgba(100,180,100,0.08); }
#equalizer-sliders { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.eq-slider-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.eq-slider-label { font-size: 12px; color: #8B7A6A; width: 48px; text-align: right; flex-shrink: 0; }
.eq-slider-value { font-size: 12px; color: #8B7A6A; width: 48px; text-align: left; flex-shrink: 0; }
input[type="range"].vis-range { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; background: #0a0907; border-radius: 3px; outline: none; cursor: pointer; }
input[type="range"].vis-range::-webkit-slider-runnable-track { height: 6px; background: #0a0907; border-radius: 3px; }
input[type="range"].vis-range::-moz-range-track { height: 6px; background: #0a0907; border-radius: 3px; }
input[type="range"].vis-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #7d5c28; border: 2px solid #D4A017; cursor: pointer; margin-top: -4px; }
input[type="range"].vis-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #7d5c28; border: 2px solid #D4A017; cursor: pointer; }
.frac-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 2px 0; }
.frac-row:last-child { margin-bottom: 0; }
.frac-label { color: #8B7A6A; width: 24px; text-align: center; font-size: 12px; flex-shrink: 0; }
.frac-color { width: 28px; height: 22px; border: none; cursor: pointer; flex-shrink: 0; outline: none; padding: 0; }
.frac-color::-webkit-color-swatch-wrapper { padding: 0; }
.frac-color::-webkit-color-swatch { border: none; }
.frac-desc { color: #8B7A6A; font-size: 14px; flex: 1; text-align: left; white-space: nowrap; }

/* ===== БЛОК ЦВЕТОВ ПОРАЖАЮЩИХ ФАКТОРОВ ===== */
.vis-factors-block {
    margin-bottom: 30px;
}

.factor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 2px 0;
}

.factor-color-swatch {
    width: 28px;
    flex-shrink: 0;
    display: inline-flex;
}

.factor-color {
    width: 28px;
    height: 22px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    outline: none;
    padding: 0;
}

.factor-color::-webkit-color-swatch-wrapper { padding: 0; }
.factor-color::-webkit-color-swatch { border: none; }

.factor-desc {
    color: #8B7A6A;
    font-size: 14px;
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

.factor-row-checkbox {
    margin-top: 12px;
}

.factor-contours-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8B7A6A;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.factor-contours-label:hover {
    color: #eed8b3;
}

.factor-contours-label input[type="checkbox"] {
    accent-color: var(--text-dim);
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

/* ===== ОФЛАЙН ===== */
.offline-panel { border: none; margin-top: 0; background: transparent; position: relative; z-index: 70; }
.offline-panel .collapsible-header { display: flex; align-items: center; gap: 9px; padding: 0 8px; margin: 14px 0 0 0; min-height: 36px; font-size: 14px; color: var(--text-dim); background: transparent; font-weight: 400; letter-spacing: normal; text-transform: none; cursor: pointer; border-radius: 4px; }
.offline-panel .collapsible-header.open { background: #0d0c0a; color: var(--text-bright); }
#offline-body { padding: 18px 16px 18px 38px; background: #fbe9c8; background-image: linear-gradient(rgba(180,160,130,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(180,160,130,0.08) 1px, transparent 1px); background-size: 8px 8px; }
#offline-body .offline-content { display: flex; flex-direction: column; gap: 14px; }
.offline-description { font-size: 14px; color: #b63f00; margin: 0; text-align: left; line-height: 1.6; font-family: 'Courier New', monospace; }
#offline-body .inline-param { margin-bottom: 0; }
#offline-body .inline-param select { background: #eed8b3; color: #1a1a1a; border: 1px solid #8B7A6A; }
#offline-body .inline-param label { color: #3A2A1A; }
.offline-stats-row { display: flex; flex-direction: column; gap: 6px; }
#offline-body .save-check-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #3A2A1A; font-family: 'Courier New', monospace; }
#offline-body .save-check-label .inline-icon { color: #3A2A1A; margin-right: 0; }

/* Общий стиль для всех трёх кнопок офлайна — одинаковые размеры и шрифт */
#offline-body .offline-save-wide,
#offline-body .offline-bottom-row button {
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Ширина — разная: верхняя на всю ширину, нижние делят пополам */
#offline-body .offline-save-wide { width: 100%; }
#offline-body .offline-bottom-row { display: flex; gap: 8px; }
#offline-body .offline-bottom-row button { flex: 1 1 0; min-width: 0; }

#offline-body #clear-offline-btn { background: #1a1a1a; color: #8B7A6A; border: 1px solid #333; }
#offline-body #clear-offline-btn:hover { background: #2a2a2a; color: var(--text-bright); }

/* ===== ИНСТРУМЕНТЫ (яркость, линейка) ===== */
.inline-tools { display: flex; align-items: center; margin: 18px 0 1px 0; }
.visibility-control { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.visibility-control button { width: 36px; height: 36px; padding: 0; margin: 0; border-radius: 4px; flex-shrink: 0; min-width: 36px; }
.vis-label { font-weight: 600; color: var(--text-dim); min-width: 70px; text-align: center; font-size: 12px; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; }
.tool-spacer { flex: 1; min-width: 20px; }
#ruler-btn { width: auto; margin: 0; padding: 6px 12px; margin-left: auto; }
#ruler-btn.active { background: var(--danger); color: var(--text-bright); border-color: var(--gold); }

/* ===== БЛОК УСЛОВИЙ ЗАЩИТЫ ===== */
.shield-block {
    margin: 0 0 14px 0;
    padding: 12px 14px;
    background: rgb(238 216 179);
    border: 1px solid color-mix(in srgb, var(--bg-light) 75%, #000);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-dark);
}

.shield-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shield-title {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
}

.shield-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dark);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.shield-toggle input[type="radio"] {
    accent-color: var(--danger);
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.shield-toggle input[type="radio"]:checked + span {
    color: #3A2A1A;
    font-weight: 700;
}

#help-shield {
    width: 18px;
    height: 18px;
    font-size: 12px;
    background: transparent;
    color: var(--text-dark);
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
    cursor: pointer;
    margin-left: auto;
}
#help-shield:hover { color: #1a1a1a; }

.shield-details {
    margin-top: 10px;
}

.shield-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.shield-type-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 4px;
    background: rgba(238, 216, 179, 0.4);
    color: var(--text-dark);
    border: 1px solid color-mix(in srgb, var(--text-dark) 35%, transparent);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shield-type-btn:hover {
    background: rgba(238, 216, 179, 0.7);
}
.shield-type-btn.active {
    background: #7d5c28;
    color: #eed8b3;
    border-color: #5a3f1a;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(125, 92, 40, 0.4);
}

/* ===== ПОДТИП ДОМА ===== */
.shield-house-subtype-block {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.shield-house-subtype {
    flex: 0 1 auto;
    padding: 4px 6px;
    background: transparent;
    color: var(--text-dark);
    border: none;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    border-radius: 0;
    box-shadow: none;
}

.shield-house-subtype:hover {
    background: rgba(125, 92, 40, 0.15);
}

.shield-house-subtype.active {
    background: rgba(125, 92, 40, 0.35);
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: none;
    border-radius: 0;
}

.shield-subtype-sep {
    color: var(--text-dark);
    opacity: 0.5;
    flex-shrink: 0;
    font-size: 26px;
}

.shield-depth-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 10px 0;
    padding: 8px 10px;
    background: rgba(10, 8, 6, 0.15);
    border-radius: 3px;
}

.shield-depth-label {
    color: var(--text-dark);
    font-size: 12px;
    white-space: nowrap;
}

.shield-depth-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    background: #0a0907;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    min-width: 80px;
}

.shield-depth-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: #0a0907;
    border-radius: 3px;
}

.shield-depth-slider::-moz-range-track {
    height: 6px;
    background: #0a0907;
    border-radius: 3px;
}

.shield-depth-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #7d5c28;
    border: 2px solid #D4A017;
    cursor: pointer;
    margin-top: -5px;
}

.shield-depth-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #7d5c28;
    border: 2px solid #D4A017;
    cursor: pointer;
}

.shield-depth-value {
    font-family: 'Courier New', monospace;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 13px;
    min-width: 48px;
    text-align: right;
    white-space: nowrap;
}

.shield-status-row {
    margin-top: 8px;
    padding: 6px 10px;
    background: #efbd99;
    border-left: 3px solid var(--danger);
    border-radius: 3px;
}

.shield-status-row.shield-status--windows {
    background: rgb(225 176 78);
    border-left-color: #d4a017;
}

.shield-status {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
    display: block;
    color: var(--text-dark);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ (max-width: 600px) ===== */
@media (max-width: 600px) {
    .vis-panel .collapsible-header {
        min-height: 44px;
    }
    .offline-panel .collapsible-header {
        min-height: 44px;
    }
    #pipette-btn {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }
    #pipette-btn .btn-icon {
        width: 26px;
        height: 26px;
    }
    .inline-tools { margin: 6px 0; }
    .visibility-control button {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    #offline-body .offline-save-wide,
    #offline-body .offline-bottom-row button {
        height: 44px;
        min-height: 44px;
    }

    /* --- УСЛОВИЯ ЗАЩИТЫ (мобильный) --- */

    .shield-house-subtype {
        font-size: 11px;
        padding: 8px 2px;
        min-height: 44px;
        white-space: normal;
    }

    .shield-block {
        padding: 14px 12px;
        font-size: 14px;
    }
    .shield-title {
        font-size: 14px;
    }
    .shield-toggle {
        font-size: 15px;
        min-height: 44px;
        align-items: center;
    }
    .shield-toggle input[type="radio"] {
        width: 22px;
        height: 22px;
    }
    #help-shield {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .shield-type-buttons {
        gap: 8px;
    }
    .shield-type-btn {
        flex: 1 1 calc(50% - 4px);
        min-height: 44px;
        font-size: 14px;
        padding: 10px 8px;
    }
        .shield-depth-block {
        flex-wrap: nowrap;
        padding: 10px 12px;
        gap: 10px;
        align-items: center;
    }
    .shield-depth-label {
        font-size: 14px;
        flex-shrink: 0;
    }
    .shield-depth-slider {
        flex: 1;
        min-width: 0;
        height: 10px;
    }
    .shield-depth-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
        margin-top: -9px;
    }
    .shield-depth-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
    .shield-depth-value {
        font-size: 15px;
        flex-shrink: 0;
        min-width: 50px;
    }
    .shield-status {
        font-size: 14px;
    }

    /* --- ТАБЛИЦА СМЕРТНОСТИ (мобильный) --- */
    .damage-row td {
        padding: 10px 8px;
        font-size: 15px;
    }
    .damage-check {
        width: 44px;
    }
    .damage-check input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }
    .damage-label--small {
        font-size: 13px;
    }

    /* --- ПОРАЖАЮЩИЕ ФАКТОРЫ В ВИЗУАЛИЗАЦИИ (мобильный) --- */
    .vis-eq-header {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .factor-row {
        min-height: 44px;
        margin-bottom: 8px;
        gap: 12px;
    }
    .factor-color-swatch {
        width: 44px;
    }
    .factor-color {
        width: 44px;
        height: 36px;
    }
    .factor-desc {
        font-size: 15px;
    }
    .factor-contours-label {
        min-height: 44px;
        font-size: 15px;
        gap: 12px;
    }
    .factor-contours-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }

    /* --- ЭКВАЛАЙЗЕР ФРАКЦИЙ (мобильный) --- */
    .frac-row {
        min-height: 44px;
        margin-bottom: 8px;
    }
    .frac-label {
        font-size: 14px;
        width: 32px;
    }
    .frac-color {
        width: 44px;
        height: 36px;
    }
    .frac-desc {
        font-size: 15px;
    }
    .vis-reset-btn {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
    }
}
/* style-damage.css */