.autoload-head { align-items: center; }
.autoload-subtitle { margin: 7px 0 0; }
.safety-strip { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }
.safety-label { color: var(--muted); font-size: 12px; font-weight: 750; margin-right: 3px; }
.mode-chip { border-radius: 99px; font-size: 12px; font-weight: 700; padding: 6px 10px; }
.mode-chip.off { background: #eef1f3; color: #65717b; }
.mode-chip.on { background: #e5f6ee; color: var(--green); }

.next-step { align-items: center; border-left: 5px solid #8a98a4; box-shadow: none; display: grid; gap: 22px; grid-template-columns: auto minmax(0, 1fr) auto; margin-bottom: 18px; padding: 22px 24px; }
.next-step.ok { border-left-color: var(--green); }
.next-step.working { border-left-color: var(--blue); }
.next-step.danger { border-left-color: var(--red); }
.next-step-status { align-items: center; color: var(--muted); display: flex; font-size: 12px; font-weight: 750; gap: 8px; white-space: nowrap; }
.status-light { background: #8a98a4; border-radius: 50%; height: 9px; width: 9px; }
.next-step.ok .status-light { background: var(--green); }
.next-step.working .status-light { background: var(--blue); box-shadow: 0 0 0 5px #e7f3ff; }
.next-step.danger .status-light { background: var(--red); }
.step-kicker { color: var(--blue); display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.next-step-copy h2 { font-size: 21px; margin: 3px 0; }
.next-step-copy p { color: var(--muted); margin: 0; }
.next-step-action { align-items: center; display: flex; flex-direction: column; gap: 5px; min-width: 165px; }
.action-hint, .working-note { color: var(--muted); font-size: 11px; text-align: center; }
.ready-mark { align-items: center; background: #e5f6ee; border-radius: 50%; color: var(--green); display: flex; font-size: 23px; font-weight: 800; height: 44px; justify-content: center; width: 44px; }

.change-summary { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.summary-stat { box-shadow: none; padding: 17px 18px; }
.summary-stat span, .summary-stat small { color: var(--muted); display: block; font-size: 12px; }
.summary-stat strong { display: block; font-size: 25px; line-height: 1.15; margin: 4px 0; }
.summary-stat.quiet { background: #fafbfc; }
.summary-stat.accent strong { color: var(--blue); }
.summary-stat.warning { background: #fffaf0; border-color: #ecd3a3; }
.summary-stat.warning strong { color: var(--orange); }

.feed-flow { display: grid; gap: 12px; }
.flow-card { box-shadow: none; display: grid; grid-template-columns: 42px minmax(0, 1fr); padding: 21px; }
.flow-number { align-items: center; background: #edf5fd; border-radius: 12px; color: var(--blue); display: flex; font-size: 16px; font-weight: 800; height: 36px; justify-content: center; width: 36px; }
.flow-content { min-width: 0; }
.flow-title { align-items: flex-start; display: flex; gap: 15px; justify-content: space-between; }
.flow-label { color: var(--muted); display: block; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.flow-title h2 { font-size: 19px; margin-top: 2px; }
.flow-content > p { color: var(--muted); margin: 8px 0 13px; }
.file-meta { align-items: center; background: #f7f9fa; border-radius: 9px; display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 10px 12px; }
.file-meta strong { color: var(--ink); font-size: 13px; }
.file-meta span { font-size: 12px; }
.file-upload, .flow-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.file-upload input { height: auto; max-width: 100%; padding: 9px; }
.send-disabled { background: #f1f3f5; border-radius: 8px; color: var(--muted); font-size: 12px; padding: 9px 11px; }

.technical-details { box-shadow: none; margin-top: 16px; }
.technical-details > summary { cursor: pointer; display: flex; flex-direction: column; list-style: none; padding: 17px 20px; }
.technical-details > summary::-webkit-details-marker { display: none; }
.technical-details > summary span { font-weight: 750; }
.technical-details > summary small { color: var(--muted); margin-top: 2px; }
.technical-details[open] > summary { border-bottom: 1px solid var(--line); }
.technical-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px 20px 18px; }
.technical-grid div { border-bottom: 1px solid var(--line); padding: 13px 8px; }
.technical-grid span { color: var(--muted); display: block; font-size: 11px; }
.technical-grid strong { display: block; margin-top: 2px; }
.report-card { margin-top: 16px; }

@media (max-width: 900px) {
  .next-step { grid-template-columns: 1fr; }
  .next-step-action { align-items: flex-start; min-width: 0; }
  .change-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .autoload-head { align-items: stretch; }
  .safety-strip { align-items: flex-start; flex-direction: column; }
  .next-step { padding: 18px; }
  .change-summary { grid-template-columns: 1fr 1fr; }
  .summary-stat { padding: 14px; }
  .flow-card { grid-template-columns: 34px minmax(0, 1fr); padding: 16px; }
  .flow-number { border-radius: 9px; height: 29px; width: 29px; }
  .file-upload, .flow-actions { align-items: stretch; flex-direction: column; }
  .file-upload .button, .flow-actions .button, .flow-actions form { width: 100%; }
  .technical-grid { grid-template-columns: 1fr 1fr; }
}
