/* Componenti: pulsanti, dashlet, form, tabelle, badge. */

.icon { display: inline-block; width: 18px; height: 18px; flex: none; }
.icon svg { display: block; width: 100%; height: 100%; }

/* ---------- Pulsanti ---------- */

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn--sm { width: 28px; height: 28px; }
.icon-btn--sm .icon { width: 16px; height: 16px; }
.icon-btn:disabled { opacity: 0.4; cursor: default; background: transparent; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn--primary:hover { background: var(--btn-primary-hover); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--secondary:disabled:hover { background: var(--surface); }
.btn--primary:disabled:hover { background: var(--btn-primary-bg); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- Dashlet ---------- */

.dashlet {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.dashlet__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 8px 6px 16px;
  border-bottom: 1px solid var(--border);
}
.dashlet__title { flex: 1; min-width: 0; font-size: var(--fs-md); font-weight: 650; }
.dashlet__title small { margin-left: 8px; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 400; }
.dashlet__actions { display: flex; gap: 2px; }
.dashlet__body { padding: 16px; min-width: 0; }
.dashlet__body--flush { padding: 0; }
.dashlet__foot {
  margin-top: auto;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.dashlet.is-max {
  position: fixed;
  z-index: 40;
  inset: calc(var(--topbar-h) + 16px) 16px 16px calc(var(--sidebar-w) + 16px);
  overflow: auto;
  box-shadow: var(--shadow-lg);
}
.dashlet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--scrim);
}
@media (max-width: 767px) {
  .dashlet.is-max { inset: calc(var(--topbar-h) + 8px) 8px 8px 8px; }
}

.dashlet--link { cursor: pointer; transition: border-color 0.12s ease; }
.dashlet--link:hover { border-color: var(--accent); }

/* ---------- Griglie ---------- */

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (min-width: 900px) {
  .tool-grid { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
  .tool-grid > .span-all { grid-column: 1 / -1; }
}

/* ---------- Form ---------- */

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label, .field__label { font-size: var(--fs-sm); font-weight: 550; color: var(--text); }
.field__hint { color: var(--text-muted); font-size: var(--fs-xs); }
.field__error { color: var(--err); font-size: var(--fs-xs); font-weight: 500; }
.field__error:empty { display: none; }

.input {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
}
.input--mono { font-family: var(--font-mono); font-size: var(--fs-sm); }
.input--sm { height: 28px; font-size: var(--fs-sm); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.input:disabled { opacity: 0.55; }
.input::placeholder { color: var(--text-subtle); opacity: 1; }
.input[aria-invalid="true"] { border-color: var(--err); }
select.input { padding-right: 4px; }

fieldset.group {
  margin: 4px 0 14px;
  padding: 12px 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
fieldset.group legend { padding: 0 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }

.form-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.examples__label { width: 100%; color: var(--text-muted); font-size: var(--fs-xs); }

/* ---------- Risultati chiave/valore ---------- */

.kv {
  display: grid;
  grid-template-columns: minmax(110px, max-content) minmax(0, 1fr);
  margin: 0;
}
.kv dt, .kv dd {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.kv dt { padding-right: 16px; color: var(--text-muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.kv dd { font-family: var(--font-mono); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.kv .hl { color: var(--accent-text); font-weight: 650; }
.kv .sub { color: var(--text-muted); font-family: var(--font-sans); margin-left: 6px; }

.kv--compact dt, .kv--compact dd { padding-top: 4px; padding-bottom: 4px; }

.mono { font-family: var(--font-mono); font-size: var(--fs-sm); }
.muted { color: var(--text-muted); }

.empty {
  padding: 28px 12px;
  color: var(--text-muted);
  text-align: center;
}

.section-title {
  margin: 18px 0 8px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bits { display: flex; flex-wrap: wrap; gap: 2px 10px; font-family: var(--font-mono); font-size: var(--fs-sm); }
.bits__net { color: var(--accent-text); font-weight: 650; }
.bits__host { color: var(--text-subtle); }
.bits-legend { display: flex; gap: 14px; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-muted); }
.bits-legend span::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 5px;
  border-radius: 2px;
  background: var(--accent);
}
.bits-legend span + span::before { background: var(--text-subtle); }

/* ---------- Badge e avvisi ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 550;
  white-space: nowrap;
}
.badge--info { background: var(--info-soft); border-color: transparent; color: var(--accent-text); }
.badge--ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.badge--warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.badge--err { background: var(--err-soft); border-color: transparent; color: var(--err); }

.notes { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.note {
  padding: 8px 10px 8px 12px;
  border-left: 3px solid var(--accent);
  background: var(--info-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--fs-sm);
}
.note--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.note--err { border-left-color: var(--err); background: var(--err-soft); }

/* ---------- Tabelle ---------- */

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.table-filter { position: relative; flex: 1 1 200px; max-width: 280px; }
.table-filter .icon { position: absolute; left: 8px; top: 50%; translate: 0 -50%; width: 14px; height: 14px; color: var(--text-subtle); }
.table-filter .input { padding-left: 28px; }
.table-toolbar__spacer { flex: 1; }
.table-note { color: var(--text-muted); font-size: var(--fs-xs); }

.table-wrap { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th {
  position: sticky;
  top: 0;
  padding: 0;
  background: var(--table-head);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.table th > span,
.table th > button {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 7px 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
}
.table th > button { cursor: pointer; }
.table th > button:hover { background: var(--border); }
.table th > button:disabled { cursor: default; background: none; }
.table th .sort { width: 12px; height: 12px; opacity: 0.35; }
.table th[aria-sort] .sort { opacity: 1; color: var(--accent-text); }
.table th.num > span, .table th.num > button { justify-content: flex-end; }
.table td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td.num { text-align: right; }
.table td.mono { font-family: var(--font-mono); }
.table tbody tr:hover td { background: var(--row-hover); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .empty-row td { padding: 24px 12px; color: var(--text-muted); text-align: center; white-space: normal; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 12px;
  padding: 8px 12px 8px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.pager__info { margin-right: auto; }
.pager__size { display: flex; align-items: center; gap: 6px; }
.pager__size .input { width: auto; }
.pager__nav { display: flex; align-items: center; gap: 2px; }
.pager__page { min-width: 92px; text-align: center; }

/* ---------- Dialog e toast ---------- */

.dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: var(--scrim); }
.dialog .dashlet { border: 0; box-shadow: none; }
.dialog p { margin: 0 0 10px; }
.dialog p:last-child { margin-bottom: 0; }

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  padding: 9px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--surface);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.15s ease, translate 0.15s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Controlli segmentati e checkbox ---------- */

fieldset.field--plain { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
fieldset.field--plain legend { padding: 0; margin-bottom: 4px; }

.segmented {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.segmented label { position: relative; flex: 1; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  height: 30px;
  padding: 0 8px;
  border-left: 1px solid var(--border-strong);
  background: var(--input-bg);
  font-weight: 550;
  line-height: 30px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.segmented label:first-child span { border-left: 0; }
.segmented span:hover { background: var(--surface-2); }
.segmented input:checked + span { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.segmented input:focus-visible + span { box-shadow: inset var(--focus-ring); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}
.check input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--btn-primary-bg); flex: none; }
.check small { margin-left: 6px; color: var(--text-muted); font-size: var(--fs-xs); }
.check:has(input:disabled) { opacity: 0.5; cursor: default; }

/* ---------- KPI ---------- */

.dashlet__body { container-type: inline-size; }
.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.kpi { padding: 10px 14px; background: var(--surface-2); }
@container (min-width: 560px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.kpi__label { color: var(--text-muted); font-size: var(--fs-xs); font-weight: 550; }
.kpi__value { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.kpi__value small { margin-left: 4px; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500; }
.kpi--hl .kpi__value { color: var(--accent-text); }
.kpi--ok .kpi__value { color: var(--ok); }
.kpi--warn .kpi__value { color: var(--warn); }
.kpi--err .kpi__value { color: var(--err); }

/* ---------- Barra di composizione ---------- */

.stack {
  display: flex;
  gap: 2px;
  height: 18px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stack .seg { flex-basis: 0; min-width: 3px; }
.seg-payload { background: var(--accent); }
.seg-1 { background: color-mix(in srgb, var(--text-subtle) 95%, var(--surface)); }
.seg-2 { background: color-mix(in srgb, var(--text-subtle) 80%, var(--surface)); }
.seg-3 { background: color-mix(in srgb, var(--text-subtle) 65%, var(--surface)); }
.seg-4 { background: color-mix(in srgb, var(--text-subtle) 50%, var(--surface)); }
.seg-5 { background: color-mix(in srgb, var(--text-subtle) 38%, var(--surface)); }
.seg-6 { background: color-mix(in srgb, var(--text-subtle) 28%, var(--surface)); }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 2px; vertical-align: -1px; }

.table--plain { border: 1px solid var(--border); border-radius: var(--radius); }
.table--plain td { white-space: normal; }
.table .total-row td { font-weight: 650; background: var(--surface-2); }

/* ---------- Barra filtri dentro una dashlet ---------- */

.dashlet__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.segmented--auto { display: inline-flex; max-width: 100%; overflow-x: auto; }
.segmented--auto label { flex: none; }
.segmented--auto span { padding: 0 12px; }

/* ---------- Righe di campi e unità ---------- */

.field-row { display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 480px) {
  .field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row--reg { grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); }
}
.field__unit { color: var(--text-muted); font-weight: 400; }
.input-group { display: flex; min-width: 0; }
.input-group .input { border-radius: 0; min-width: 0; }
.input-group .input:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .input:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -1px; width: auto; flex: none; }

.tool-split { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .tool-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* ---------- Scala del fattore R (E-model) ---------- */

.rscale { margin: 16px 0 6px; }
.rscale__bar { position: relative; display: flex; gap: 2px; height: 10px; }
.rscale__band { border-radius: 2px; opacity: 0.4; }
.rscale__band--ok { background: var(--ok); }
.rscale__band--warn { background: var(--warn); }
.rscale__band--err { background: var(--err); }
.rscale__marker {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--surface);
  transform: translateX(-50%);
}
.rscale__ticks { position: relative; height: 18px; margin-top: 4px; color: var(--text-muted); font-size: var(--fs-xs); }
.rscale__ticks span { position: absolute; transform: translateX(-50%); }
.rscale__ticks span:first-child { transform: none; }
.rscale__ticks span:last-child { transform: translateX(-100%); }

/* ---------- Passaggi (tester pattern) ---------- */

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 8px 0 8px 34px;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--fs-xs);
  font-weight: 650;
  line-height: 22px;
  text-align: center;
}
.steps__rule { font-weight: 600; }
.steps__change { margin: 2px 0; overflow-wrap: anywhere; }
.steps__change strong { color: var(--accent-text); }
.steps__detail { color: var(--text-muted); font-size: var(--fs-sm); }
.cucm-dot { color: var(--accent-text); font-weight: 700; }

/* ---------- Convertitore MAC ---------- */

.kpi__value { overflow-wrap: anywhere; }
.bulk-grid { display: grid; gap: 0 16px; }
@media (min-width: 900px) {
  .bulk-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
.table--formats td:first-child { width: 40%; }
.table--formats td:last-child { width: 1%; padding: 2px 6px; }

/* ---------- Parser SIP ---------- */

@media (min-width: 900px) {
  .tool-grid--half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.stack-col { display: grid; gap: 16px; align-content: start; min-width: 0; }

.textarea {
  height: auto;
  min-height: 220px;
  padding: 8px 10px;
  line-height: 1.5;
  resize: vertical;
}
.textarea--code { font-size: 12px; white-space: pre; overflow: auto; tab-size: 4; }

.table td.wrap { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 160px; }
.kv .sans { font-family: var(--font-sans); }

.notes--flush { margin: 0; }
.dashlet__bar .notes { flex: 1 1 320px; }
.note .badge { margin-right: 4px; vertical-align: 1px; }

/* ---------- Decoder certificati ---------- */

.cert-grid { display: grid; gap: 0 24px; }
@media (min-width: 900px) {
  .cert-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.cert-col { min-width: 0; }
.cert-issued { margin: 0 0 6px; color: var(--text-muted); font-size: var(--fs-sm); }
.cert-lines { display: flex; flex-direction: column; }
.cert-copy { display: flex; align-items: flex-start; gap: 4px; }
.cert-copy__text { flex: 1; min-width: 0; overflow-wrap: anywhere; padding-top: 2px; }
.cert-copy .icon-btn { margin: -4px -6px -4px 0; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
/* su schermi stretti etichetta sopra e valore sotto: impronte e identificativi restano leggibili */
@media (max-width: 599px) {
  .cert-col .kv { grid-template-columns: minmax(0, 1fr); }
  .cert-col .kv dt { padding-bottom: 0; border-bottom: 0; }
  .cert-col .kv dd { padding-top: 2px; }
  .cert-item .kpi__value { font-size: 18px; }
}

/* ---------- Grafico potenza / distanza (FSPL) ---------- */

@media (min-width: 640px) {
  .field-row--fspl { grid-template-columns: minmax(130px, 1fr) minmax(110px, 1fr) minmax(0, 2fr); }
}
.range { width: 100%; height: 34px; margin: 0; accent-color: var(--accent); }
.fspl-wrap { position: relative; margin-top: 12px; }
.fspl-plot { width: 100%; min-height: 220px; cursor: crosshair; touch-action: pan-y; user-select: none; }
.fspl-svg { display: block; overflow: visible; }
.fspl-grid { stroke: var(--border); stroke-width: 1; }
.fspl-base { stroke: var(--border-strong); stroke-width: 1; }
.fspl-axis { fill: var(--text-muted); font-size: 11px; font-family: var(--font-sans); }
.fspl-axis--title { font-weight: 600; }
.fspl-line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fspl-ref { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.fspl-sel { stroke: var(--chart-line); stroke-width: 1; stroke-dasharray: 2 3; }
.fspl-cross { stroke: var(--text-subtle); stroke-width: 1; }
.fspl-dot { fill: var(--chart-line); stroke: var(--surface); stroke-width: 2; }
.fspl-tip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: var(--text);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.fspl-tip__muted { color: var(--text-muted); }
.fspl-table { margin-top: 8px; }
.fspl-table summary { cursor: pointer; color: var(--accent-text); font-size: var(--fs-sm); }
.kpis--3 > :last-child { grid-column: 1 / -1; }
@container (min-width: 560px) {
  .kpis.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis--3 > :last-child { grid-column: auto; }
}
.fspl-steps { margin: -6px 0 4px; color: var(--text-muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .field-row--env { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
}
.input:disabled { opacity: 0.65; }
.fspl-line--ref { stroke: var(--text-subtle); stroke-width: 1.5; stroke-dasharray: 6 4; }
.fspl-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; color: var(--text-muted); font-size: var(--fs-sm); }
.fspl-legend:empty { display: none; }
.fspl-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.fspl-legend__swatch { flex: none; overflow: visible; }
