.sv { max-width: 1100px; margin: 0 auto; padding: 16px; }
.sv-head h1 { font-size: 1.5rem; }
.sv-bar { height: 8px; background: #e5e7eb; border-radius: 4px; margin: 12px 0 4px; }
.sv-bar-fill { height: 100%; background: #b8860b; border-radius: 4px; transition: width .3s; }
.sv-status { font-size: .875rem; color: #6b7280; }
.sv-saved.is-error { color: #b91c1c; }
.sv-section h2 { margin-top: 24px; }
.sv-intro, .sv-note, .sv-hint { color: #4b5563; font-size: .9rem; }
.sv-matrix { width: 100%; border-collapse: collapse; margin: 12px 0; }
.sv-matrix th, .sv-matrix td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: center; font-size: .85rem; }
.sv-matrix tbody th { text-align: left; font-weight: 400; }
.sv-matrix th small { display: block; color: #6b7280; }
.sv-cell label { display: block; cursor: pointer; }
.sv-cell span { display: none; }
.sv-q { margin: 16px 0; }
.sv-q.is-missing { outline: 2px solid #fca5a5; }
.sv-label { font-weight: 600; margin-bottom: 6px; }
.sv-options label { display: block; margin: 4px 0; }
.sv-text { width: 100%; max-width: 700px; }
.sv-contacts { border: 1px solid #e5e7eb; border-radius: 6px; padding: 8px 16px; margin: 16px 0; }
.sv-contacts legend { font-weight: 600; padding: 0 6px; }
.sv-contacts .sv-label { display: block; }
.sv-field-error { color: #b91c1c; font-size: .85rem; margin: 4px 0 0; }
.sv-inline { margin-left: 6px; }
.sv-numbers label { display: inline-block; margin-right: 16px; }
.sv-nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 24px 0; }
.sv-nav button { padding: 10px 20px; cursor: pointer; }
.sv-errors { background: #fef2f2; color: #991b1b; padding: 12px; }
.sv-done { background: #ecfdf5; color: #065f46; padding: 12px; margin: 12px 0; }
@media (max-width: 720px) {
  .sv-matrix thead { display: none; }
  .sv-matrix, .sv-matrix tbody, .sv-matrix tr, .sv-matrix th, .sv-matrix td { display: block; }
  .sv-matrix tr { border: 1px solid #e5e7eb; margin-bottom: 12px; padding: 8px; }
  .sv-matrix th, .sv-matrix td { border: 0; text-align: left; }
  .sv-cell span { display: inline; margin-left: 6px; }
}
.sv-start { margin: 24px 0; }
.sv-start-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sv-button { display: inline-block; padding: 10px 20px; background: #b8860b; color: #fff; border-radius: 4px; text-decoration: none; }
.sv-button--secondary { background: #fff; color: #7a5a07; border: 1px solid #b8860b; }
.sv-bins { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sv-mode { background: #f9fafb; border: 1px solid #e5e7eb; padding: 8px 12px; margin: 12px 0; font-size: .9rem; }
.sv-options label[hidden] { display: none; }
.sv-number { width: 160px; }
.sv-field--sub { margin-left: 24px; }
/* После первого шага — без шапки опроса, сразу раздел с вопросами. */
.sv-later .sv-head, .sv-later .sv-mode { display: none; }
.sv-author { margin-top: 32px; padding-top: 12px; border-top: 1px solid #e5e7eb; color: #6b7280; font-size: .75rem; }
