/* Стили виджета «ssd» — подключаются только на страницах с ним */
.sd { margin: 1.6em 0 2.4em; display: grid; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.sd [hidden] { display: none !important; }
.sd__head { display: grid; gap: 6px; }
.sd__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.sd__f { display: grid; gap: 6px; min-width: 0; }
.sd__f--wide { grid-column: 1 / -1; }
.sd__f > span { font-size: 13px; color: var(--muted); }
.sd__opt { color: var(--border-2); }
.sd input[type="number"], .sd select {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text-strong); font: inherit; font-size: 15px; outline: none;
}
.sd select { cursor: pointer; appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.sd input:focus, .sd select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.sd__result { display: grid; gap: 16px; }
.sd__verdict { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.sd__verdict b { font-size: 17px; color: var(--text-strong); }
.sd__verdict span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.sd__bus { font-size: 13px !important; opacity: .85; }
.sd__row { display: grid; gap: 8px; }
.sd__row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.sd__row-title { font-size: 14.5px; color: var(--text); }
.sd__val { font-size: 20px; font-weight: 700; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.sd__unit { font-size: 13px; font-weight: 400; color: var(--muted); }
.sd__badge { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid; }
.sd__bar { position: relative; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.sd__zone { position: absolute; top: 0; bottom: 0; }
.sd__zone--low { left: 0; background: rgba(255, 92, 92, .25); }
.sd__zone--mid { background: rgba(245, 180, 0, .25); }
.sd__zone--high { background: var(--green-soft); }
.sd__mark { position: absolute; top: -3px; bottom: -3px; width: 4px; border-radius: 3px; background: var(--green); box-shadow: 0 0 10px rgba(0, 221, 17, .7); transform: translateX(-2px); }
.sd__scale span:nth-child(2) { text-align: center; }
.sd__tips { display: grid; gap: 8px; }
.sd__tips li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; }
.sd__tips li::before { content: '→'; position: absolute; left: 0; color: var(--green); }
@media (max-width: 640px) {
  .sd { padding: 14px; }
  .sd__form { grid-template-columns: 1fr 1fr; }
  .sd__badge { margin-left: 0; }
  .sd__scale { font-size: 11px; }
}
