/* "Скачать визуалы": three numbered steps + manual install in a collapsible block. */
.dl-panel { padding: 26px; }
.dl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.dl-head h2 { margin: 0; font-size: 22px; }
.dl-head .sub { margin: 4px 0 0; }
.dl-head-icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #ff8a1e33, #ff8a1e0d); border: 1px solid #ff8a1e40; color: #ffb36b;
}
.dl-head-icon .i { width: 22px; height: 22px; }

.dl-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.dl-stage {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px;
  padding: 18px; border: 1px solid #ffffff12; border-radius: 16px; background: #ffffff05;
}
.dl-stage[hidden] { display: none; }
.dl-stage:has(+ .dl-stage[hidden])::after { display: none; }
.dl-stage:not(:last-child)::after {
  content: ""; position: absolute; left: 37px; top: 60px; bottom: -22px; width: 2px;
  background: linear-gradient(#ff8a1e66, #ff8a1e10);
}
.dl-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #ff8a1e, #ff6010); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 18px #ff8a1e33;
}
.dl-stage-body { min-width: 0; }
.dl-stage-body h3 { margin: 4px 0 6px; font-size: 17px; }
.dl-stage-body > p { margin: 0; color: #a9a9b4; font-size: 14px; line-height: 1.6; }
.dl-stage-body .link { color: #ffb36b; }

.dl-cta {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px;
  border-radius: 14px; text-decoration: none; min-width: 0; max-width: 100%;
}
.dl-cta .i { width: 20px; height: 20px; flex: 0 0 20px; }
.dl-cta span { display: flex; flex-direction: column; text-align: left; line-height: 1.25; min-width: 0; }
.dl-cta small { font-size: 12px; font-weight: 500; opacity: .85; margin-top: 3px; }

/* channel picker inside step 2 keeps its own styles (release-channels.css); only spacing here */
.dl-stage .release-picker { margin: 14px 0 0; }
/* the cards are the picker; the native select stays in the DOM (dashboard.js reads its value) but is not shown */
.dl-stage .release-picker > select { display: none !important; }

.dl-manual { margin-top: 18px; border: 1px solid #ffffff12; border-radius: 16px; background: #ffffff04; }
.dl-manual summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; font-weight: 600; font-size: 15px; color: #ececf1;
}
.dl-manual summary::-webkit-details-marker { display: none; }
.dl-manual summary .i { width: 18px; height: 18px; color: #9a9aa6; transition: transform .2s ease; }
.dl-manual[open] summary .i { transform: rotate(180deg); }
.dl-manual summary:focus-visible { outline: 2px solid #ff8a1e; outline-offset: -2px; border-radius: 16px; }
.dl-manual-body { padding: 0 18px 18px; display: grid; gap: 12px; justify-items: start; }
.dl-manual-body .sub { margin: 0; }
.dl-manual-body .dl-steps { margin: 4px 0 0 20px; }

.dl-foot { margin: 18px 0 0; font-size: 13px; }

@media (max-width: 640px) {
  .dl-panel { padding: 18px; }
  .dl-stage { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .dl-num { width: 32px; height: 32px; font-size: 14px; }
  .dl-stage:not(:last-child)::after { left: 27px; top: 50px; }
  .dl-cta { width: 100%; justify-content: flex-start; }
  .dl-head-icon { flex-basis: 40px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .dl-manual summary .i { transition: none; } }
