/* ==========================================================================
   Несущий слой (nessloy.xyz) — калькулятор Н.П. Пузыревского (v1.3.0)
   Палитра сайта:
   - фон #F0F4F8, карточки #FFFFFF / #F7F9FB, рамки #D5E0E8 / #B8C7D4
   - акцент (графитово-синий сланец) #3E5463, темный угольный #2B343B
   - теплый акцент (грунт, зоны сдвига) #8C6239
   Все правила ограничены контейнером .nessloy-puz-wrapper; ключевые свойства
   элементов управления защищены !important от стилей темы WordPress.
   ========================================================================== */

.nessloy-puz-wrapper {
    --ns-bg-main: #F0F4F8;
    --ns-bg-card: #FFFFFF;
    --ns-bg-subtle: #F7F9FB;
    --ns-accent: #3E5463;
    --ns-accent-dark: #2C3E4B;
    --ns-accent-muted: #5A7182;
    --ns-accent-soft: #E6EDF2;
    --ns-charcoal: #2B343B;
    --ns-text-main: #2B343B;
    --ns-text-body: #333333;
    --ns-text-muted: #5C6B77;
    --ns-border: #D5E0E8;
    --ns-border-strong: #B8C7D4;
    --ns-warm-accent: #8C6239;
    --ns-ok: #2F6B4F;
    --ns-error-bg: #FDF2F2;
    --ns-error-border: #E3B4B4;
    --ns-error-text: #8A2E2E;
    --ns-radius: 10px;
    --ns-radius-sm: 6px;
    --ns-shadow: 0 1px 2px rgba(43, 52, 59, .04), 0 6px 18px rgba(43, 52, 59, .06);
    --ns-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ns-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    position: relative;
    box-sizing: border-box;
    max-width: 1280px;
    margin: 8px auto 24px;
    padding: 0 0 20px;
    background-color: var(--ns-bg-main);
    border: 1px solid var(--ns-border);
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--ns-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ns-text-main);
    text-align: left;
    -webkit-text-size-adjust: 100%;
}
.nessloy-puz-wrapper *,
.nessloy-puz-wrapper *::before,
.nessloy-puz-wrapper *::after { box-sizing: border-box; }
.nessloy-puz-wrapper p, .nessloy-puz-wrapper dl, .nessloy-puz-wrapper dd, .nessloy-puz-wrapper dt { margin: 0; padding: 0; }
.nessloy-puz-wrapper sub { font-size: .72em; line-height: 0; vertical-align: -.25em; }
.nessloy-puz-wrapper em { font-style: italic; }

/* Honeypot */
.nessloy-puz-hp {
    position: absolute !important; left: -9999px !important; top: -9999px !important;
    width: 1px !important; height: 1px !important; overflow: hidden !important;
    opacity: 0 !important; pointer-events: none !important;
}

/* ---------------- Шапка (в стиле меню сайта) ---------------- */
.nessloy-puz-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 20px 24px;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #2B343B 0%, #34414B 100%);
    border-bottom: 3px solid var(--ns-accent);
}
.nessloy-puz-header-main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; flex: 1 1 520px; }
.nessloy-puz-badge {
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    min-width: 64px; height: 52px; padding: 0 10px; border-radius: 8px;
    background: var(--ns-accent); color: #fff; border: 1px solid rgba(255,255,255,.18);
    font: 700 14px/1 var(--ns-mono); white-space: nowrap;
}
.nessloy-puz-wrapper .nessloy-puz-title {
    margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; background: none !important;
    font: 700 21px/1.3 var(--ns-font) !important; letter-spacing: 0 !important; text-transform: none !important;
    color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; text-shadow: none !important;
}
.nessloy-puz-wrapper .nessloy-puz-subtitle {
    margin: 0 !important; max-width: 900px;
    font-size: 13.5px; line-height: 1.5; color: #C9D4DC !important; -webkit-text-fill-color: #C9D4DC !important;
}
.nessloy-puz-subtitle strong { color: #FFFFFF; }

.nessloy-puz-status {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    color: #FFFFFF; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.nessloy-puz-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9AABB8; flex: none; }
.nessloy-puz-status[data-state="ok"] .nessloy-puz-status-dot { background: #6FCF97; box-shadow: 0 0 0 3px rgba(111,207,151,.25); }
.nessloy-puz-status[data-state="busy"] .nessloy-puz-status-dot { background: #E6C27A; animation: nessloy-puz-pulse 1s infinite; }
.nessloy-puz-status[data-state="stale"] .nessloy-puz-status-dot { background: #E6C27A; }
.nessloy-puz-status[data-state="error"] .nessloy-puz-status-dot { background: #E58B8B; }
@keyframes nessloy-puz-pulse { 50% { opacity: .35; } }

/* ---------------- Сетка ---------------- */
.nessloy-puz-grid {
    display: grid;
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 0 20px;
}

/* ---------------- Карточки ---------------- */
.nessloy-puz-card {
    background-color: var(--ns-bg-card);
    border: 1px solid var(--ns-border);
    border-radius: var(--ns-radius);
    padding: 20px;
    box-shadow: var(--ns-shadow);
    min-width: 0;
}
.nessloy-puz-card-header {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 12px; margin-bottom: 16px;
    border-bottom: 1px solid var(--ns-border);
}
.nessloy-puz-section-num {
    flex: none; padding: 3px 8px; border-radius: 4px;
    background: var(--ns-accent); color: #FFFFFF;
    font: 700 12px/1.4 var(--ns-mono);
}
.nessloy-puz-wrapper .nessloy-puz-card-title {
    margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
    font: 700 16px/1.35 var(--ns-font) !important; letter-spacing: 0 !important; text-transform: none !important;
    color: var(--ns-text-main) !important; -webkit-text-fill-color: var(--ns-text-main) !important; text-shadow: none !important;
}

/* ---------------- Поля ввода ---------------- */
.nessloy-puz-form { margin: 0; }
.nessloy-puz-wrapper .nessloy-puz-field-group {
    min-width: 0;
    margin: 0 0 14px; padding: 14px;
    background: var(--ns-bg-subtle);
    border: 1px solid var(--ns-border); border-radius: 8px;
}
.nessloy-puz-wrapper .nessloy-puz-group-label {
    float: left; width: 100%;
    margin: 0 0 12px; padding: 0 0 6px;
    border-bottom: 1px solid var(--ns-border);
    font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--ns-accent); line-height: 1.35;
}
.nessloy-puz-group-label + * { clear: both; }

.nessloy-puz-field { display: flex; flex-direction: column; margin-bottom: 12px; min-width: 0; }
.nessloy-puz-field:last-child { margin-bottom: 0; }
.nessloy-puz-wrapper .nessloy-puz-field label {
    display: block; margin: 0 0 5px; padding: 0;
    font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ns-text-main);
}
.nessloy-puz-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; margin-bottom: 12px; }
.nessloy-puz-row-2:last-child { margin-bottom: 0; }
.nessloy-puz-row-2 .nessloy-puz-field { margin-bottom: 0; }

.nessloy-puz-input-wrap {
    display: flex; align-items: stretch;
    min-height: 44px;
    background: #FFFFFF;
    border: 1px solid var(--ns-border-strong); border-radius: var(--ns-radius-sm);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.nessloy-puz-input-wrap:hover { border-color: #93A7B6; }
.nessloy-puz-input-wrap:focus-within { border-color: var(--ns-accent); box-shadow: 0 0 0 3px rgba(62, 84, 99, .16); }
.nessloy-puz-wrapper .nessloy-puz-input-wrap input {
    flex: 1 1 auto; min-width: 0; width: 100% !important; height: auto !important; max-width: none !important;
    margin: 0 !important; padding: 8px 10px !important;
    border: none !important; border-radius: 0 !important; background: transparent !important;
    box-shadow: none !important; outline: none !important;
    font: 600 16px/1.2 var(--ns-font) !important; /* 16px — без авто-зума iOS */
    font-variant-numeric: tabular-nums;
    color: var(--ns-text-main) !important; -webkit-text-fill-color: var(--ns-text-main) !important;
    -webkit-appearance: none; appearance: none;
}
.nessloy-puz-unit {
    display: flex; align-items: center; flex: none;
    padding: 0 10px; min-width: 44px; justify-content: center;
    background: var(--ns-bg-subtle); border-left: 1px solid var(--ns-border);
    font-size: 12.5px; font-weight: 600; color: var(--ns-text-muted); white-space: nowrap;
}
.nessloy-puz-hint { display: block; margin-top: 5px; font-size: 12px; line-height: 1.4; color: var(--ns-text-muted); }
.nessloy-puz-field-error { display: none; margin-top: 5px; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--ns-error-text); }
.nessloy-puz-field.has-error .nessloy-puz-field-error { display: block; }
.nessloy-puz-field.has-error .nessloy-puz-input-wrap { border-color: #C87A7A; background: var(--ns-error-bg); box-shadow: 0 0 0 3px rgba(200, 122, 122, .15); }
.nessloy-puz-field.has-error .nessloy-puz-unit { background: #F8E6E6; border-color: #E3B4B4; }

/* Переключатель способа задания q */
.nessloy-puz-mode-switch {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    margin: 0 0 12px; padding: 4px;
    background: var(--ns-accent-soft); border: 1px solid var(--ns-border); border-radius: 8px;
}
.nessloy-puz-wrapper .nessloy-puz-radio-label {
    position: relative; display: flex !important; align-items: center; justify-content: center;
    margin: 0 !important; cursor: pointer; user-select: none;
}
.nessloy-puz-radio-label input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.nessloy-puz-radio-label span {
    display: block; width: 100%; padding: 8px 6px; border-radius: 6px; text-align: center;
    font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ns-accent-muted);
    transition: background .15s, color .15s;
}
.nessloy-puz-radio-label:hover span { background: rgba(255,255,255,.65); color: var(--ns-charcoal); }
.nessloy-puz-radio-label input:checked + span { background: var(--ns-accent); color: #FFFFFF; box-shadow: 0 1px 3px rgba(43,52,59,.2); }
.nessloy-puz-radio-label input:focus-visible + span { outline: 2px solid var(--ns-accent); outline-offset: 2px; }

/* Сообщение об ошибке */
.nessloy-puz-error {
    margin: 0 0 12px; padding: 10px 12px;
    background: var(--ns-error-bg); border: 1px solid var(--ns-error-border); border-left: 4px solid #C87A7A;
    border-radius: var(--ns-radius-sm);
    color: var(--ns-error-text); font-size: 13px; font-weight: 600; line-height: 1.4;
}

/* Кнопка расчета (все состояния — от стилей темы) */
.nessloy-puz-wrapper .nessloy-puz-btn-submit,
.nessloy-puz-wrapper .nessloy-puz-btn-submit:focus {
    display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px;
    width: 100% !important; min-height: 48px !important; height: auto !important;
    margin: 4px 0 0 !important; padding: 12px 16px !important;
    background: var(--ns-accent) !important; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important;
    border: 1px solid var(--ns-accent) !important; border-radius: 8px !important;
    font: 700 15px/1.2 var(--ns-font) !important; letter-spacing: .01em !important; text-transform: none !important;
    text-decoration: none !important; text-shadow: none !important;
    box-shadow: 0 2px 6px rgba(43, 52, 59, .18) !important;
    cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
}
.nessloy-puz-wrapper .nessloy-puz-btn-submit:hover,
.nessloy-puz-wrapper .nessloy-puz-btn-submit:active {
    background: var(--ns-charcoal) !important; border-color: var(--ns-charcoal) !important;
    color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; text-decoration: none !important;
}
.nessloy-puz-wrapper .nessloy-puz-btn-submit:focus-visible { outline: 3px solid rgba(62, 84, 99, .35) !important; outline-offset: 2px !important; }
.nessloy-puz-wrapper .nessloy-puz-btn-submit:disabled,
.nessloy-puz-wrapper .nessloy-puz-btn-submit:disabled:hover {
    background: var(--ns-accent-muted) !important; border-color: var(--ns-accent-muted) !important; cursor: progress; opacity: .9;
}
.nessloy-puz-btn-spinner { align-items: center; gap: 8px; }
.nessloy-puz-spin {
    display: inline-block; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35); border-top-color: #FFFFFF;
    animation: nessloy-puz-spin .7s linear infinite;
}
@keyframes nessloy-puz-spin { to { transform: rotate(360deg); } }
.nessloy-puz-autonote { margin-top: 8px; font-size: 12px; color: var(--ns-text-muted); text-align: center; }

/* ---------------- Формулы ---------------- */
.nessloy-puz-theory-box {
    margin-top: 18px; padding: 14px 16px;
    background: var(--ns-bg-subtle);
    border: 1px solid var(--ns-border); border-left: 4px solid var(--ns-accent);
    border-radius: 8px;
}
.nessloy-puz-theory-title {
    margin-bottom: 10px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ns-accent);
}
.nessloy-puz-formula-item + .nessloy-puz-formula-item { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--ns-border); }
.nessloy-puz-formula-tag { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--ns-text-muted); }
.nessloy-puz-math {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
    font-size: 16px; color: var(--ns-charcoal);
    overflow-x: auto;
}
.nessloy-puz-frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 2px; }
.nessloy-puz-num { padding: 0 4px 2px; border-bottom: 1.5px solid var(--ns-charcoal); white-space: nowrap; }
.nessloy-puz-den { padding: 2px 4px 0; white-space: nowrap; }
.nessloy-puz-theory-note { margin-top: 10px; font-size: 12px; color: var(--ns-text-muted); }

/* ---------------- Результаты ---------------- */
.nessloy-puz-results-body { transition: opacity .2s; }
.nessloy-puz-wrapper.is-stale .nessloy-puz-results-body { opacity: .5; }

.nessloy-puz-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nessloy-puz-kpi-box {
    position: relative; display: flex; flex-direction: column; gap: 6px;
    padding: 16px 16px 14px;
    background: #FFFFFF; border: 1px solid var(--ns-border); border-radius: 8px;
    overflow: hidden;
}
.nessloy-puz-kpi-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.nessloy-puz-kpi-p1::before { background: var(--ns-accent-muted); }
.nessloy-puz-kpi-r { background: linear-gradient(180deg, #F2F6FA 0%, #FFFFFF 100%); }
.nessloy-puz-kpi-r::before { background: var(--ns-accent); }
.nessloy-puz-kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nessloy-puz-kpi-name { font-size: 13px; font-weight: 600; color: var(--ns-text-main); line-height: 1.35; }
.nessloy-puz-kpi-code {
    flex: none; padding: 2px 8px; border-radius: 999px;
    background: var(--ns-accent-soft); color: var(--ns-accent);
    font: 600 11.5px/1.5 var(--ns-mono); white-space: nowrap;
}
.nessloy-puz-kpi-value-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.nessloy-puz-kpi-val {
    font-size: 34px; font-weight: 750; line-height: 1.1; letter-spacing: -.01em;
    color: var(--ns-charcoal); font-variant-numeric: tabular-nums;
}
.nessloy-puz-kpi-r .nessloy-puz-kpi-val { color: var(--ns-accent-dark); }
.nessloy-puz-kpi-unit { font-size: 14px; font-weight: 600; color: var(--ns-text-muted); }
.nessloy-puz-kpi-sub { font: 500 12.5px/1.4 var(--ns-mono); color: var(--ns-accent-muted); }
.nessloy-puz-kpi-desc { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--ns-border); font-size: 12.5px; line-height: 1.45; color: var(--ns-text-muted); }

.nessloy-puz-delta-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    margin-top: 14px;
    background: var(--ns-bg-subtle); border: 1px solid var(--ns-border); border-radius: 8px;
}
.nessloy-puz-delta-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-width: 0; }
.nessloy-puz-delta-item + .nessloy-puz-delta-item { border-left: 1px solid var(--ns-border); }
.nessloy-puz-delta-label { font-size: 12px; line-height: 1.35; color: var(--ns-text-muted); }
.nessloy-puz-delta-val { font-size: 17px; font-weight: 700; color: var(--ns-charcoal); font-variant-numeric: tabular-nums; }

.nessloy-puz-breakdown-block { margin-top: 16px; }
.nessloy-puz-subhead {
    margin-bottom: 10px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ns-accent);
}
.nessloy-puz-stack {
    display: flex; height: 12px; margin-bottom: 12px;
    border-radius: 999px; overflow: hidden; background: #E2EAF0;
}
.nessloy-puz-stack-seg { display: block; height: 100%; width: 0; transition: width .45s ease; }
.nessloy-puz-stack-seg + .nessloy-puz-stack-seg { box-shadow: inset 2px 0 0 #FFFFFF; }
.nessloy-puz-bars { display: grid; gap: 10px; }
.nessloy-puz-bar-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; font-size: 13px; color: var(--ns-text-body); }
.nessloy-puz-bar-meta span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.nessloy-puz-bar-meta strong { flex: none; font-variant-numeric: tabular-nums; color: var(--ns-charcoal); white-space: nowrap; }
.nessloy-puz-swatch { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.nessloy-puz-bar-track { height: 8px; border-radius: 999px; background: #E2EAF0; overflow: hidden; }
.nessloy-puz-bar-fill { height: 100%; border-radius: 999px; transition: width .45s ease; }
.nessloy-fill-c { background-color: #3E5463; }
.nessloy-fill-q { background-color: #8FA3B3; }
.nessloy-fill-b { background-color: #8C6239; }

/* Промежуточные величины */
.nessloy-puz-details {
    margin-top: 16px;
    background: #FFFFFF; border: 1px solid var(--ns-border); border-radius: 8px;
}
.nessloy-puz-details > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--ns-text-main);
}
.nessloy-puz-details > summary::-webkit-details-marker { display: none; }
.nessloy-puz-details > summary::after {
    content: ""; width: 8px; height: 8px; margin-left: 10px;
    border-right: 2px solid var(--ns-accent-muted); border-bottom: 2px solid var(--ns-accent-muted);
    transform: rotate(45deg); transition: transform .2s;
}
.nessloy-puz-details[open] > summary { border-bottom: 1px solid var(--ns-border); }
.nessloy-puz-details[open] > summary::after { transform: rotate(-135deg); }
.nessloy-puz-details > summary:focus-visible { outline: 2px solid var(--ns-accent); outline-offset: -2px; }
.nessloy-puz-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 6px 14px 10px; }
.nessloy-puz-kv > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--ns-border); font-size: 13px; }
.nessloy-puz-kv dt { color: var(--ns-text-muted); }
.nessloy-puz-kv dd { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ns-charcoal); text-align: right; }

/* Схема */
.nessloy-puz-canvas-box {
    margin-top: 16px; padding: 12px;
    background: #FFFFFF; border: 1px solid var(--ns-border); border-radius: 8px;
}
.nessloy-puz-canvas-title { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ns-text-main); }
.nessloy-puz-canvas-box canvas { display: block; width: 100% !important; height: auto !important; max-width: 100%; margin: 0 auto; border-radius: 4px; }

/* ---------------- Адаптивность ---------------- */
@media (max-width: 1040px) {
    .nessloy-puz-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nessloy-puz-wrapper { border-radius: 10px; margin: 8px 0 20px; font-size: 14px; }
    .nessloy-puz-header { padding: 16px; margin-bottom: 14px; }
    .nessloy-puz-badge { display: none; }
    .nessloy-puz-wrapper .nessloy-puz-title { font-size: 18px !important; }
    .nessloy-puz-wrapper .nessloy-puz-subtitle { font-size: 13px; }
    .nessloy-puz-grid { padding: 0 12px; gap: 14px; }
    .nessloy-puz-card { padding: 14px; }
    .nessloy-puz-delta-bar { grid-template-columns: 1fr; }
    .nessloy-puz-delta-item { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 10px 12px; }
    .nessloy-puz-delta-item + .nessloy-puz-delta-item { border-left: 0; border-top: 1px solid var(--ns-border); }
    .nessloy-puz-delta-val { font-size: 15px; white-space: nowrap; }
    .nessloy-puz-kv { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nessloy-puz-kpi-grid { grid-template-columns: 1fr; }
    .nessloy-puz-kpi-val { font-size: 30px; }
    .nessloy-puz-canvas-box { padding: 8px; }
    .nessloy-puz-bar-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
    .nessloy-puz-math { font-size: 14.5px; }
}
@media (max-width: 380px) {
    .nessloy-puz-row-2 { grid-template-columns: 1fr; }
    .nessloy-puz-mode-switch { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .nessloy-puz-wrapper * { transition: none !important; animation: none !important; }
}
@media print {
    .nessloy-puz-wrapper { border: 0; background: #FFFFFF; }
    .nessloy-puz-header { background: #FFFFFF; border-bottom: 2px solid #2B343B; }
    .nessloy-puz-wrapper .nessloy-puz-title { color: #000 !important; -webkit-text-fill-color: #000 !important; }
    .nessloy-puz-wrapper .nessloy-puz-subtitle { color: #333 !important; -webkit-text-fill-color: #333 !important; }
    .nessloy-puz-status, .nessloy-puz-btn-submit, .nessloy-puz-autonote { display: none !important; }
    .nessloy-puz-grid { grid-template-columns: 1fr; }
    .nessloy-puz-card { box-shadow: none; break-inside: avoid; }
}
