/* Стили виджета «disklayout» — подключаются только на страницах с ним */
.dl { margin: 28px 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.dl [hidden] { display: none !important; }
.dl__title { margin: 0 0 6px; font-size: 24px; }
.dl__lead { margin: 0 0 18px; color: var(--muted); }
.dl__scen { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dl__sc {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; text-align: left;
  border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
}
.dl__sc b { font-size: 15px; color: var(--text-strong); }
.dl__sc span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.dl__sc:hover { border-color: var(--border-2); }
.dl__sc.is-active { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: rgba(0, 221, 17, .08); }
.dl__fields { display: grid; gap: 12px; margin: 18px 0 6px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.dl__f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.dl__f input[type="number"] {
  padding: 11px 12px; font: inherit; color: var(--text-strong); background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
}
.dl__f input[type="number"]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dl__checks label { display: flex; align-items: center; gap: 8px; color: var(--text); cursor: pointer; }
.dl__checks input { width: 18px; height: 18px; accent-color: var(--green); }
.dl__out { margin-top: 18px; }
.dl__disks { display: grid; gap: 14px; }
.dl__dname { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.dl__disk--inner { padding-left: 14px; border-left: 2px dashed var(--border-2); }
.dl__bar { display: flex; gap: 3px; min-height: 58px; }
.dl__seg {
  display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; padding: 6px 10px;
  border-radius: 8px; overflow: hidden; color: #06200a;
}
.dl__seg b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl__seg span { font-size: 12px; opacity: .8; white-space: nowrap; }
.dl__warn { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); color: #ffe6a8; background: rgba(245, 180, 0, .1); border: 1px solid rgba(245, 180, 0, .4); }
.dl__tablewrap { margin-top: 18px; }
.dl__table { width: 100%; font-size: 14px; }
.dl__table td:last-child { color: var(--muted); min-width: 220px; }
.dl__h { margin: 22px 0 8px; font-size: 18px; }
.dl__pre { margin: 0 0 8px; }
.dl__steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.dl__steps li { line-height: 1.6; }
.dl__tip { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border-left: 3px solid var(--green); }
.dl__code { margin-top: 8px; }
.dl__note { color: var(--muted); }
@media (max-width: 720px) {
  .dl { padding: 16px; margin-left: -4px; margin-right: -4px; }
  .dl__title { font-size: 21px; }
  .dl__scen { grid-template-columns: 1fr 1fr; }
  .dl__sc { padding: 10px 12px; }
  .dl__sc span { font-size: 12px; }
  .dl__fields { grid-template-columns: 1fr 1fr; }
  .dl__checks { grid-column: 1 / -1; }
  .dl__seg { padding: 6px 7px; }
  .dl__seg b { font-size: 12px; }
  .dl__seg span { font-size: 11px; }
}
@media (min-width: 1000px) {
  .dl__scen { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dl__tablewrap { overflow: visible; border: 0; background: none; }
  .dl__table, .dl__table tbody, .dl__table tr, .dl__table td { display: block; width: 100%; }
  .dl__table thead { display: none; }
  .dl__table tr { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
  .dl__table td { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 3px 0; border: 0; min-width: 0 !important; }
  .dl__table td::before { content: attr(data-l); font-size: 12px; color: var(--muted); }
  .dl__table td:first-child { font-size: 15px; }
  .dl__code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
