/* Несущий слой (nessloy.xyz) — устойчивость откоса (v3.0.0).
   Палитра сайта: фон #F0F4F8, карточки #FFF/#F7F9FB, рамки #D5E0E8/#B8C7D4, акцент #3E5463,
   угольный #2B343B, тёплый #8C6239/#B84A39. Всё изолировано в .nsl; элементы управления защищены от темы. */

.nsl {
	--l-bg: #F0F4F8; --l-card: #FFFFFF; --l-subtle: #F7F9FB;
	--l-accent: #3E5463; --l-accent-dark: #2C3E4B; --l-muted-accent: #5A7182; --l-soft: #E6EDF2;
	--l-ink: #2B343B; --l-body: #333333; --l-muted: #5C6B77;
	--l-line: #D5E0E8; --l-line2: #B8C7D4; --l-red: #B84A39;
	--l-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--l-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	position: relative; box-sizing: border-box; max-width: 1360px; margin: 8px auto 24px; padding: 0 0 20px;
	background: var(--l-bg); border: 1px solid var(--l-line); border-radius: 12px; overflow: hidden;
	font-family: var(--l-font); font-size: 15px; line-height: 1.5; color: var(--l-ink); text-align: left; -webkit-text-size-adjust: 100%;
}
.nsl *, .nsl *::before, .nsl *::after { box-sizing: border-box; }
.nsl p { margin: 0; }
.nsl sub { font-size: .72em; line-height: 0; vertical-align: -.25em; }
.nsl [hidden] { display: none !important; }
.nsl-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ---------- Шапка ---------- */
.nsl-head { 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(--l-accent); }
.nsl-head__main { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 520px; }
.nsl-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 8px; background: var(--l-accent); border: 1px solid rgba(255,255,255,.18); }
.nsl .nsl-title { margin: 0 0 4px !important; padding: 0 !important; border: 0 !important; background: none !important; font: 700 21px/1.3 var(--l-font) !important; letter-spacing: 0 !important; text-transform: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: none !important; }
.nsl .nsl-sub { font-size: 13.5px; color: #C9D4DC !important; -webkit-text-fill-color: #C9D4DC !important; }
.nsl-status { display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 600; }
.nsl-status__dot { width: 9px; height: 9px; border-radius: 50%; background: #9AABB8; }
.nsl-status[data-state="ok"] .nsl-status__dot { background: #6FCF97; box-shadow: 0 0 0 3px rgba(111,207,151,.25); }
.nsl-status[data-state="busy"] .nsl-status__dot { background: #E6C27A; animation: nsl-pulse 1s infinite; }
.nsl-status[data-state="warn"] .nsl-status__dot { background: #E6C27A; }
.nsl-status[data-state="error"] .nsl-status__dot { background: #E58B8B; }
@keyframes nsl-pulse { 50% { opacity: .35; } }

/* ---------- Сетка ---------- */
.nsl-grid { display: grid; grid-template-columns: minmax(330px, 410px) minmax(0, 1fr); gap: 20px; align-items: start; padding: 0 20px; }
.nsl-side, .nsl-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; }
.nsl-main { gap: 16px; }
.nsl-card { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 10px; padding: 16px; margin: 0; box-shadow: 0 1px 2px rgba(43,52,59,.04), 0 6px 18px rgba(43,52,59,.06); min-width: 0; }
.nsl .nsl-card__title { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font: 700 15px/1.35 var(--l-font) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--l-ink) !important; -webkit-text-fill-color: var(--l-ink) !important; }
.nsl .nsl-preset-label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--l-accent); }

/* Группы ввода */
.nsl-group { background: var(--l-card); border: 1px solid var(--l-line); border-radius: 10px; box-shadow: 0 1px 2px rgba(43,52,59,.04), 0 6px 18px rgba(43,52,59,.05); overflow: hidden; }
.nsl-group > summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 700; font-size: 14.5px; color: var(--l-ink); }
.nsl-group > summary::-webkit-details-marker { display: none; }
.nsl-group > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--l-muted-accent); border-bottom: 2px solid var(--l-muted-accent); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nsl-group[open] > summary::after { transform: rotate(225deg); }
.nsl-group > summary:focus-visible { outline: 2px solid var(--l-accent); outline-offset: -2px; }
.nsl-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--l-accent); color: #fff; font: 700 12px/1 var(--l-mono); flex: none; }
.nsl-count { padding: 1px 8px; border-radius: 999px; background: var(--l-soft); color: var(--l-accent); font: 600 11.5px/1.6 var(--l-mono); }
.nsl-group__body { padding: 14px; border-top: 1px solid var(--l-line); }
.nsl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nsl-field { display: flex; flex-direction: column; min-width: 0; }
.nsl-field--wide { grid-column: 1 / -1; }
.nsl .nsl-field label { display: block; margin: 0 0 5px; padding: 0; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--l-ink); }
.nsl-field label i { font-family: Georgia, "Times New Roman", serif; }
.nsl-input { display: flex; align-items: stretch; min-height: 40px; background: #fff; border: 1px solid var(--l-line2); border-radius: 6px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.nsl-input:hover { border-color: #93A7B6; }
.nsl-input:focus-within { border-color: var(--l-accent); box-shadow: 0 0 0 3px rgba(62,84,99,.16); }
.nsl .nsl-input input, .nsl .nsl-item__name {
	flex: 1 1 auto; min-width: 0; width: 100% !important; height: auto !important; max-width: none !important;
	margin: 0 !important; padding: 7px 9px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important;
	box-shadow: none !important; outline: none !important; font: 600 14.5px/1.2 var(--l-font) !important; font-variant-numeric: tabular-nums;
	color: var(--l-ink) !important; -webkit-text-fill-color: var(--l-ink) !important; -webkit-appearance: none; appearance: none;
}
.nsl .nsl-input input:disabled { color: #9AA8B4 !important; -webkit-text-fill-color: #9AA8B4 !important; }
.nsl-input:has(input:disabled) { background: var(--l-subtle); }
.nsl-unit { display: flex; align-items: center; justify-content: center; flex: none; min-width: 40px; padding: 0 8px; background: var(--l-subtle); border-left: 1px solid var(--l-line); font-size: 11.5px; font-weight: 600; color: var(--l-muted); white-space: nowrap; }
.nsl-hint { display: block; margin-top: 4px; font-size: 11px; color: var(--l-muted); }
.nsl-err { display: none; margin-top: 4px; font-size: 11px; font-weight: 600; color: #8A2E2E; }
.nsl-field.has-error .nsl-err { display: block; }
.nsl-field.has-error .nsl-hint { display: none; }
.nsl-field.has-error .nsl-input { border-color: #C87A7A; background: #FDF2F2; box-shadow: 0 0 0 3px rgba(200,122,122,.15); }
.nsl-note { font-size: 12px; line-height: 1.45; color: var(--l-muted); margin-top: 8px !important; }
.nsl-subhead { margin: 2px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--l-accent); }
.nsl-subhead:not(:first-child) { margin-top: 14px; }

.nsl-select { position: relative; }
.nsl .nsl-select select { width: 100% !important; height: 40px !important; margin: 0 !important; padding: 0 32px 0 10px !important; border: 1px solid var(--l-line2) !important; border-radius: 6px !important; background: #fff !important; box-shadow: none !important; font: 500 14px/1 var(--l-font) !important; color: var(--l-ink) !important; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.nsl .nsl-select select:focus { border-color: var(--l-accent) !important; box-shadow: 0 0 0 3px rgba(62,84,99,.16) !important; outline: none !important; }
.nsl-select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--l-muted-accent); border-bottom: 2px solid var(--l-muted-accent); transform: rotate(45deg); pointer-events: none; }

.nsl .nsl-switch { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-size: 13px; color: var(--l-body); }
.nsl-switch input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.nsl-switch__track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #C3CDD6; transition: background .2s; }
.nsl-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.nsl-switch input:checked + .nsl-switch__track { background: var(--l-accent); }
.nsl-switch input:checked + .nsl-switch__track::after { transform: translateX(16px); }
.nsl-switch input:disabled + .nsl-switch__track { opacity: .5; }
.nsl-switch input:focus-visible + .nsl-switch__track { box-shadow: 0 0 0 3px rgba(62,84,99,.25); }

/* Элементы списков */
.nsl-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.nsl-item { position: relative; padding: 10px; background: var(--l-subtle); border: 1px solid var(--l-line); border-left: 5px solid var(--sw, #E9D8BC); border-radius: 8px; }
.nsl-item--load { border-left-color: #B84A39; padding-right: 40px; }
.nsl-item__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.nsl .nsl-item__name { padding: 6px 8px !important; border: 1px solid transparent !important; border-radius: 5px !important; font-size: 14px !important; }
.nsl .nsl-item__name:hover { border-color: var(--l-line2) !important; background: #fff !important; }
.nsl .nsl-item__name:focus { border-color: var(--l-accent) !important; background: #fff !important; }
.nsl .nsl-color { flex: none; width: 30px !important; height: 30px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 1px solid var(--l-line2) !important; border-radius: 6px !important; background: #fff !important; cursor: pointer; }
.nsl-item__row { display: grid; gap: 8px; }
.nsl-item__row--4 { grid-template-columns: repeat(4, 1fr); }
.nsl-item__row--3 { grid-template-columns: repeat(3, 1fr); }
.nsl-item__row--2 { grid-template-columns: repeat(2, 1fr); }
.nsl-field--row label { font-size: 11px !important; color: var(--l-muted) !important; margin-bottom: 3px !important; }
.nsl-field--row .nsl-input { min-height: 36px; }
.nsl-field--row .nsl-unit { min-width: 0; padding: 0 5px; font-size: 10.5px; }
.nsl .nsl-field--row .nsl-input input { padding: 6px 6px !important; font-size: 13.5px !important; }
.nsl-field--row.has-error .nsl-input { border-color: #C87A7A; background: #FDF2F2; }

.nsl .nsl-del, .nsl .nsl-del:focus { flex: none; width: 30px !important; height: 30px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 1px solid transparent !important; border-radius: 6px !important; background: transparent !important; box-shadow: none !important; color: #99A6B2 !important; -webkit-text-fill-color: #99A6B2 !important; font: 400 20px/1 var(--l-font) !important; text-transform: none !important; cursor: pointer; }
.nsl-item--load .nsl-del { position: absolute; right: 6px; top: 6px; }
.nsl .nsl-del:hover { background: #FBEFEC !important; border-color: #EBC7BF !important; color: var(--l-red) !important; -webkit-text-fill-color: var(--l-red) !important; }

/* Кнопки */
.nsl .nsl-btn, .nsl .nsl-btn:focus { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px; min-height: 38px !important; height: auto !important; margin: 0 !important; padding: 7px 14px !important; border-radius: 7px !important; font: 600 13.5px/1.2 var(--l-font) !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; text-shadow: none !important; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.nsl .nsl-btn--ghost, .nsl .nsl-btn--ghost:focus { background: #fff !important; border: 1px dashed var(--l-line2) !important; color: var(--l-accent) !important; -webkit-text-fill-color: var(--l-accent) !important; box-shadow: none !important; }
.nsl .nsl-btn--ghost:hover, .nsl .nsl-btn--ghost:active { background: var(--l-soft) !important; border-color: var(--l-accent) !important; color: var(--l-ink) !important; -webkit-text-fill-color: var(--l-ink) !important; }
.nsl .nsl-btn--block { width: 100% !important; }
.nsl .nsl-btn--sm { min-height: 32px !important; padding: 4px 12px !important; border-style: solid !important; font-size: 12.5px !important; }
.nsl .nsl-btn:focus-visible { outline: 3px solid rgba(62,84,99,.35) !important; outline-offset: 2px !important; }

/* ---------- Результаты ---------- */
.nsl-kpis { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 10px; }
.nsl-kpi { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--l-line); border-radius: 8px; background: #fff; overflow: hidden; min-width: 0; }
.nsl-kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--l-muted-accent); }
.nsl-kpi--main { background: linear-gradient(180deg, #F2F6FA, #fff); }
.nsl-kpi--main::before { height: 4px; background: var(--l-accent); }
.nsl-kpi--main.is-ok::before { background: #4E8A6B; }
.nsl-kpi--main.is-warn::before { background: #D4A443; }
.nsl-kpi--main.is-bad::before { background: var(--l-red); }
.nsl-kpi__label { font-size: 11.5px; color: var(--l-muted); line-height: 1.3; }
.nsl-kpi__label b { color: var(--l-ink); }
.nsl-kpi__val { font-size: 34px; font-weight: 750; line-height: 1.1; color: var(--l-accent-dark); font-variant-numeric: tabular-nums; }
.nsl-kpi--main.is-bad .nsl-kpi__val { color: #8E2F22; }
.nsl-kpi__val--sm { font-size: 15px; color: var(--l-ink); font-weight: 700; margin-top: auto; }
.nsl-pill { align-self: flex-start; padding: 2px 9px; border-radius: 999px; font: 700 11px/1.6 var(--l-font); background: var(--l-soft); color: var(--l-accent); }
.nsl-pill.is-ok { background: #E3F1E8; color: #2F6B4F; }
.nsl-pill.is-warn { background: #FBF0D9; color: #7A4F0A; }
.nsl-pill.is-bad { background: #FBEFEC; color: #8E2F22; }
.nsl-alerts:empty { display: none; }
.nsl-alerts { margin-top: 10px; display: grid; gap: 6px; }
.nsl-alert { padding: 9px 12px; border-radius: 6px; background: #FBF3E2; border: 1px solid #EAD5A8; border-left: 4px solid #D4A443; color: #6B4A0E; font-size: 13px; }
.nsl-alert--bad { background: #FDF2F2; border-color: #E3B4B4; border-left-color: #C87A7A; color: #8A2E2E; font-weight: 600; }
.nsl.is-stale .nsl-kpis { opacity: .55; transition: opacity .2s; }

/* Чертёж */
.nsl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.nsl-seg { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 3px; padding: 3px; background: var(--l-soft); border: 1px solid var(--l-line); border-radius: 8px; }
.nsl .nsl-seg label { position: relative; margin: 0 !important; cursor: pointer; }
.nsl-seg input, .nsl-chip input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.nsl-seg span { display: block; padding: 6px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--l-muted-accent); white-space: nowrap; text-align: center; transition: background .15s, color .15s; }
.nsl-seg label:hover span { background: rgba(255,255,255,.7); color: var(--l-ink); }
.nsl-seg input:checked + span { background: var(--l-accent); color: #fff; box-shadow: 0 1px 3px rgba(43,52,59,.2); }
.nsl-seg input:focus-visible + span, .nsl-chip input:focus-visible + span { outline: 2px solid var(--l-accent); outline-offset: 2px; }
.nsl-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nsl .nsl-mini { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin: 0; padding: 0 4px 0 10px; border: 1px solid var(--l-line2); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--l-muted); }
.nsl .nsl-mini input { width: 46px !important; height: 26px !important; margin: 0 !important; padding: 0 6px !important; border: 0 !important; border-radius: 999px !important; background: var(--l-soft) !important; box-shadow: none !important; font: 600 13px/1 var(--l-font) !important; color: var(--l-ink) !important; text-align: center; }
.nsl .nsl-chip { position: relative; margin: 0 !important; cursor: pointer; }
.nsl-chip span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--l-line2); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--l-muted); white-space: nowrap; }
.nsl-chip span::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #C3CDD6; }
.nsl-chip input:checked + span { background: var(--l-soft); border-color: #9EB3C2; color: var(--l-accent-dark); }
.nsl-chip input:checked + span::before { background: var(--l-accent); }

.nsl-stage { position: relative; width: 100%; height: 440px; border: 1px solid var(--l-line); border-radius: 8px; overflow: hidden; background: #fff; }
.nsl-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; }
.nsl-stage canvas:active { cursor: grabbing; }
.nsl-zoom { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.nsl .nsl-tool, .nsl .nsl-tool:focus { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 34px !important; height: 34px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 1px solid var(--l-line2) !important; border-radius: 7px !important; background: rgba(255,255,255,.94) !important; color: var(--l-ink) !important; -webkit-text-fill-color: var(--l-ink) !important; box-shadow: 0 1px 3px rgba(43,52,59,.12) !important; font: 600 18px/1 var(--l-font) !important; text-transform: none !important; text-decoration: none !important; cursor: pointer; }
.nsl .nsl-tool--wide { width: auto !important; padding: 0 12px !important; font-size: 13px !important; }
.nsl .nsl-tool:hover, .nsl .nsl-tool:active { background: var(--l-soft) !important; border-color: var(--l-accent) !important; color: var(--l-accent-dark) !important; -webkit-text-fill-color: var(--l-accent-dark) !important; }
.nsl-loader { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(43,52,59,.88); color: #fff; font-size: 13px; font-weight: 600; }
.nsl-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: nsl-spin .7s linear infinite; }
@keyframes nsl-spin { to { transform: rotate(360deg); } }
.nsl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--l-body); }
.nsl-lg { display: inline-flex; align-items: center; gap: 7px; }
.nsl-ramp { display: inline-block; width: 70px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #B84A39, #D4A443, #6E9A7B, #5A7182); }
.nsl-line { display: inline-block; width: 20px; height: 0; border-top: 3px solid; }
.nsl-line--crit { border-top-color: #8E2F22; }
.nsl-line--water { border-top-color: #4A7FA8; }
.nsl .nsl-hint-line { margin-top: 6px !important; font-size: 11.5px; color: var(--l-muted); }

.nsl-details > summary { list-style: none; cursor: pointer; display: flex !important; align-items: center; justify-content: space-between; }
.nsl-details > summary::-webkit-details-marker { display: none; }
.nsl-details > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: 12px; border-right: 2px solid var(--l-muted-accent); border-bottom: 2px solid var(--l-muted-accent); transform: rotate(45deg); transition: transform .2s; }
.nsl-details[open] > summary { margin-bottom: 12px !important; padding-bottom: 10px !important; border-bottom: 1px solid var(--l-line) !important; }
.nsl-details[open] > summary::after { transform: rotate(225deg); }
.nsl-method p { margin: 0 0 10px !important; font-size: 13px; line-height: 1.55; color: var(--l-body); }

/* ---------- Адаптивность ---------- */
@media (max-width: 1180px) {
	.nsl-kpis { grid-template-columns: repeat(2, 1fr); }
	.nsl-kpi--main { grid-column: 1 / -1; }
}
@media (max-width: 1040px) {
	.nsl-grid { grid-template-columns: 1fr; }
	.nsl-main { order: -1; }
}
@media (max-width: 640px) {
	.nsl { margin: 8px 0 20px; border-radius: 10px; font-size: 14px; }
	.nsl-head { padding: 16px; margin-bottom: 14px; }
	.nsl-badge { display: none; }
	.nsl .nsl-title { font-size: 18px !important; }
	.nsl .nsl-sub { font-size: 12.5px; }
	.nsl-grid { padding: 0 12px; gap: 14px; }
	.nsl-card { padding: 12px; }
	.nsl .nsl-input input, .nsl .nsl-item__name, .nsl .nsl-select select, .nsl .nsl-mini input { font-size: 16px !important; } /* без авто-зума iOS */
	.nsl .nsl-field--row .nsl-input input { font-size: 16px !important; }
	.nsl-item__row--4 { grid-template-columns: repeat(2, 1fr); }
	.nsl-toolbar { flex-direction: column; align-items: stretch; }
	.nsl-seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
	.nsl-tools { justify-content: space-between; }
	.nsl-kpi--main .nsl-kpi__val { font-size: 30px; }
	.nsl-zoom { top: auto; bottom: 10px; }
}
@media (max-width: 380px) {
	.nsl-fields { grid-template-columns: 1fr; }
	.nsl-item__row--3 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .nsl * { transition: none !important; animation: none !important; } }
@media print {
	.nsl { border: 0; background: #fff; }
	.nsl-head { background: #fff; border-bottom: 2px solid #2B343B; }
	.nsl .nsl-title { color: #000 !important; -webkit-text-fill-color: #000 !important; }
	.nsl .nsl-sub { color: #333 !important; -webkit-text-fill-color: #333 !important; }
	.nsl-status, .nsl-zoom, .nsl-toolbar, .nsl-hint-line, .nsl-btn, .nsl-del { display: none !important; }
	.nsl-grid { grid-template-columns: 1fr; }
	.nsl-card, .nsl-group { box-shadow: none; break-inside: avoid; }
}
