.surveys-page { background: #f5f5f6; min-height: calc(100vh - 78px); }
.surveys-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.surveys-kicker { color: #e30613; font-family: var(--head); font-size: 14px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.surveys-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.surveys-steps article { position: relative; min-height: 128px; padding: 22px 22px 20px 68px; background: #fff; border: 1px solid #e3e3e5; border-radius: 8px; }
.surveys-steps article > span { position: absolute; left: 20px; top: 20px; color: #e30613; font-family: var(--head); font-size: 21px; font-weight: 900; }
.surveys-steps strong { display: block; color: #1a1a1a; font-size: 16px; margin-bottom: 7px; }
.surveys-steps p { color: #66666b; line-height: 1.45; margin: 0; }
.surveys-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
.surveys-filter { display: inline-flex; padding: 4px; background: #e8e8ea; border-radius: 7px; }
.surveys-filter__btn { border: 0; border-radius: 5px; background: transparent; color: #646468; cursor: pointer; font: inherit; font-weight: 600; padding: 9px 15px; }
.surveys-filter__btn--active { background: #fff; color: #1a1a1a; box-shadow: 0 1px 4px rgba(0,0,0,.09); }
.surveys-system { margin-bottom: 18px; padding: 16px 18px; color: #682e00; background: #fff4e8; border: 1px solid #ffd7ad; border-left: 4px solid #e37b14; border-radius: 6px; line-height: 1.45; }
.surveys-system strong { display: block; color: #44220a; margin-bottom: 3px; }
.surveys-system--demo { color: #46464b; background: #f0f0f2; border-color: #d7d7da; border-left-color: #7a7a80; }
.surveys-system--demo strong { color: #1a1a1a; }
.surveys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.survey-card { display: flex; flex-direction: column; min-height: 250px; padding: 22px; background: #fff; border: 1px solid #dedee1; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.survey-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.survey-card__title { color: #1a1a1a; font-family: var(--head); font-size: 22px; font-weight: 900; line-height: 1.05; margin: 0; text-transform: uppercase; }
.survey-status { flex: none; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 6px 9px; }
.survey-status--active { color: #186a32; background: #e6f6eb; }
.survey-status--draft { color: #66666b; background: #eeeeef; }
.survey-card__mode { display: inline-flex; align-items: center; gap: 7px; color: #55555a; font-size: 14px; margin-top: 13px; }
.survey-card__mode::before { content: ""; width: 8px; height: 8px; background: #e30613; border-radius: 50%; }
.survey-card__metrics { display: flex; gap: 24px; margin: 24px 0 18px; }
.survey-card__metrics strong { display: block; color: #1a1a1a; font-family: var(--head); font-size: 28px; line-height: 1; }
.survey-card__metrics span { color: #77777b; font-size: 13px; }
.survey-card__owner { color: #77777b; font-size: 13px; margin: auto 0 16px; }
.survey-card__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid #ececef; }
.survey-card__actions .btn { min-height: 38px; }
.surveys-empty { grid-column: 1 / -1; color: #77777b; background: #fff; border: 1px dashed #cfcfd3; border-radius: 8px; padding: 48px 24px; text-align: center; }
.survey-modal-box { max-width: 620px; }
.survey-form { display: grid; gap: 20px; }
.survey-form > label { display: grid; gap: 7px; font-weight: 700; }
.survey-form input[type="text"], .survey-form input:not([type]) { box-sizing: border-box; width: 100%; min-height: 46px; border: 1px solid #cfcfd3; border-radius: 5px; font: inherit; padding: 10px 12px; }
.survey-mode-fieldset { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
.survey-mode-fieldset legend { font-weight: 700; margin-bottom: 8px; }
.survey-mode-card { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #d7d7da; border-radius: 7px; cursor: pointer; padding: 15px; }
.survey-mode-card:has(input:checked) { background: #fff4f4; border-color: #e30613; box-shadow: 0 0 0 1px #e30613 inset; }
.survey-mode-card input { flex: none; margin-top: 4px; accent-color: #e30613; }
.survey-mode-card strong, .survey-mode-card small { display: block; }
.survey-mode-card strong { color: #1a1a1a; margin-bottom: 4px; }
.survey-mode-card small { color: #66666b; font-size: 13px; line-height: 1.4; }
.survey-form__note { color: #66666b; font-size: 14px; line-height: 1.45; margin: -2px 0 0; }
.survey-builder-box { box-sizing: border-box; width: min(920px, calc(100vw - 32px)); max-width: 920px; max-height: calc(100vh - 40px); overflow-y: auto; }
.survey-builder__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.survey-builder__heading .modal__title { margin-bottom: 7px; }
.survey-builder__lead { color: #66666b; margin: 0; }
.survey-builder-form { display: grid; gap: 18px; }
.survey-description-editor { display: grid; gap: 16px; padding: 18px; background: #f3f3f4; border-radius: 8px; }
.survey-description-editor > label { display: grid; gap: 7px; color: #333337; font-weight: 700; }
.survey-description-editor textarea { width: 100%; border: 1px solid #cfcfd3; border-radius: 5px; background: #fff; font: inherit; padding: 11px 12px; resize: vertical; }
.survey-cover-editor { display: grid; grid-template-columns: minmax(0,1fr) 190px; align-items: center; gap: 18px; }
.survey-cover-editor > div:first-child { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; }
.survey-cover-editor strong { color: #1a1a1a; }
.survey-cover-editor span { color: #68686d; font-size: 13px; line-height: 1.4; }
.survey-cover-editor__pick { margin-top: 5px; cursor: pointer; }
.survey-cover-preview { overflow: hidden; aspect-ratio: 16 / 9; background: #dddde0; border-radius: 6px; }
.survey-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.survey-question-list { display: grid; gap: 12px; }
.survey-question { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 12px 16px; padding: 18px 18px 16px 56px; border: 1px solid #dcdce0; border-radius: 8px; background: #fafafa; }
.survey-question__number { position: absolute; top: 18px; left: 18px; display: grid; width: 26px; height: 26px; place-items: center; color: #fff; background: #1a1a1a; border-radius: 50%; font-size: 12px; font-weight: 800; }
.survey-question label { display: grid; gap: 6px; color: #55555a; font-size: 13px; font-weight: 700; }
.survey-question input[type="text"], .survey-question textarea, .survey-question select { box-sizing: border-box; width: 100%; border: 1px solid #cfcfd3; border-radius: 5px; background: #fff; color: #1a1a1a; font: inherit; padding: 10px 11px; }
.survey-question input[type="text"], .survey-question select { min-height: 42px; }
.survey-question__options { grid-column: 1 / -1; }
.survey-question__help { grid-column: 1 / -1; }
.survey-question__required { display: flex !important; align-items: center; gap: 8px !important; color: #333337 !important; }
.survey-question__required input { width: 18px; height: 18px; accent-color: #e30613; }
.survey-question__image-editor { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) 220px; align-items: center; gap: 16px; padding: 12px; background: #fff; border: 1px dashed #cfcfd3; border-radius: 6px; }
.survey-question__image-editor > div:first-child { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; }
.survey-question__image-editor label { cursor: pointer; }
.survey-question__image-preview { overflow: hidden; aspect-ratio: 16 / 9; background: #e4e4e6; border-radius: 5px; }
.survey-question__image-preview img { width: 100%; height: 100%; object-fit: cover; }
.survey-question__tools { grid-column: 2; display: flex; justify-content: flex-end; gap: 6px; }
.survey-question__tool { border: 1px solid #d2d2d5; border-radius: 5px; background: #fff; color: #45454a; cursor: pointer; min-width: 36px; min-height: 34px; font: inherit; }
.survey-question__tool--delete { color: #b20b15; }
.survey-builder__footer { position: sticky; bottom: -30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -30px -30px; padding: 18px 30px; border-top: 1px solid #dddde0; background: #fff; }
.survey-builder__footer span { color: #68686d; font-size: 14px; }
.survey-results-box { box-sizing: border-box; width: min(980px, calc(100vw - 32px)); max-width: 980px; max-height: calc(100vh - 40px); overflow-y: auto; }
.survey-results__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.survey-results__heading .modal__title { margin-bottom: 7px; }
.survey-results__heading p { margin: 0; color: #6a6a6f; }
.survey-results__body { display: grid; gap: 16px; }
.survey-results__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.survey-results__kpi { padding: 18px; background: #f1f1f2; border-radius: 7px; }
.survey-results__kpi strong { display: block; font-family: var(--head); font-size: 32px; line-height: 1; }
.survey-results__kpi span { color: #6b6b70; font-size: 13px; }
.survey-result-card { padding: 20px; border: 1px solid #dddde0; border-radius: 8px; }
.survey-result-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.survey-result-card__head h3 { margin: 0; color: #1a1a1a; font-size: 18px; }
.survey-result-card__head span { flex: none; color: #77777c; font-size: 13px; }
.survey-result-bars { display: grid; gap: 10px; }
.survey-result-bar__labels { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 4px; font-size: 13px; }
.survey-result-bar__track { height: 9px; overflow: hidden; background: #ededee; border-radius: 99px; }
.survey-result-bar__fill { height: 100%; min-width: 0; background: #e30613; border-radius: inherit; }
.survey-result-metric { display: flex; flex-wrap: wrap; gap: 12px; }
.survey-result-metric div { min-width: 140px; padding: 14px; background: #f4f4f5; border-radius: 6px; }
.survey-result-metric strong { display: block; font-family: var(--head); font-size: 26px; }
.survey-result-metric span { color: #737378; font-size: 12px; }
.survey-result-table-wrap { overflow-x: auto; }
.survey-result-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.survey-result-table th, .survey-result-table td { padding: 9px 10px; border: 1px solid #dddde0; text-align: center; }
.survey-result-table th:first-child, .survey-result-table td:first-child { text-align: left; }
.survey-result-table th { background: #f3f3f4; font-size: 12px; }
.survey-result-texts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.survey-result-texts li { padding: 12px 14px; background: #f5f5f6; border-left: 3px solid #e30613; line-height: 1.4; }
.survey-result-empty { color: #7b7b80; font-size: 14px; }

@media (max-width: 820px) {
  .surveys-heading { display: grid; }
  .surveys-heading .btn { width: 100%; }
  .surveys-steps, .surveys-grid { grid-template-columns: 1fr; }
  .surveys-toolbar { align-items: stretch; flex-direction: column; }
  .surveys-filter { overflow-x: auto; }
  .survey-builder__heading { display: grid; }
  .survey-builder__heading .btn { width: 100%; }
  .survey-question { grid-template-columns: 1fr; padding-left: 52px; }
  .survey-question__options, .survey-question__tools { grid-column: 1; }
  .survey-question__image-editor { grid-column: 1; grid-template-columns: 1fr; }
  .survey-builder__footer { align-items: stretch; flex-direction: column; }
  .survey-cover-editor { grid-template-columns: 1fr; }
  .survey-cover-preview { width: 100%; }
  .survey-results__heading { display: grid; }
  .survey-results__kpis { grid-template-columns: 1fr; }
}
