/* Демо-витрина: панель управления сверху, фрейм с панелью снизу.
   Отдельный файл - страница не часть витрины арендатора и её стили не должна тянуть. */

* { box-sizing: border-box; }

body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #eef2f9; color: #16255a;
}

.sc-bar {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 12px 22px; background: #fff; border-bottom: 1px solid #e2e8f3;
}
.sc-brand { font-weight: 800; font-size: 17px; color: #2f6bff; text-decoration: none; }
.sc-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: auto; }

.sc-field { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6a7690; }
.sc-field select {
    font: inherit; color: #16255a; padding: 7px 10px; border: 1px solid #dfe5f0;
    border-radius: 9px; background: #fff; cursor: pointer;
}

/* Тумблер устройства: радио скрыты позиционированием, а не display:none -
   иначе переключатель не поймать с клавиатуры. */
.sc-device { display: inline-flex; border: 1px solid #dfe5f0; border-radius: 9px; overflow: hidden; }
.sc-device input { position: absolute; opacity: 0; width: 0; height: 0; }
.sc-device label {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 34px;
    cursor: pointer; color: #6a7690; background: #fff;
}
.sc-device label svg { width: 18px; height: 18px; }
.sc-device input:checked + label { background: #2f6bff; color: #fff; }
.sc-device input:focus-visible + label { outline: 2px solid #2f6bff; outline-offset: -2px; }

.sc-cta {
    padding: 9px 16px; border-radius: 10px; background: #2f6bff; color: #fff;
    font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}

.sc-stage { flex: 1; display: flex; justify-content: center; padding: 14px; }
/* Десктопный режим - во всю доступную ширину: панель показываем так, как её увидит
   клиент, а не в колонке посередине. Ограничение остаётся только у мобильного вида. */
.sc-frame-wrap {
    width: 100%; background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 12px 34px rgba(23, 43, 97, .12); transition: max-width .25s ease;
}
.sc-frame { display: block; width: 100%; height: calc(100vh - 100px); border: 0; }

/* Мобильный режим - только ширина фрейма: сама панель адаптивная и подстроится сама. */
body:has(#sc-mobile:checked) .sc-frame-wrap { max-width: 390px; border-radius: 26px; }

@media (max-width: 720px) {
    .sc-bar { gap: 10px; padding: 10px 14px; }
    .sc-controls { margin-left: 0; width: 100%; }
    .sc-cta { display: none; }
    .sc-stage { padding: 12px; }
}
