/* Интерфейс генератора КП — вариант C «Лист» (docs/site.md). Цвета и шрифты — assets/brand.css. */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; color: var(--graphite); font: 14px/1.5 var(--font-body); background: #fff; overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { margin: 0; font-size: 12.5px; color: var(--grey); }

/* шапка */
.top { height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--pale); }
.top .logo { height: 28px; }
.top .product { font: 600 13px var(--font-display); color: var(--navy-secondary); padding-left: 16px; border-left: 1px solid var(--pale); white-space: nowrap; }
.top .doc { font: 700 15px var(--font-display); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top .doc small { margin-left: 10px; font: 400 12px var(--font-body); color: var(--grey); }
.top .sp { flex: 1; }
.top .user { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--pale); font-size: 12.5px; color: var(--navy-secondary); white-space: nowrap; }
.jump { display: inline-flex; padding: 3px; background: var(--paper); border-radius: 10px; flex: none; }
.jump button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: 600 12.5px var(--font-display); color: var(--navy-secondary); cursor: pointer; }
.jump button:hover { background: #fff; color: var(--navy); }
#newBtn { padding: 10px 18px; }

/* «Очистить ▾» — выбор разделов */
.pop { position: relative; flex: none; }
.pop-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 9; width: 320px; background: #fff; border: 1px solid #d7e6f1; border-radius: 12px; box-shadow: 0 16px 40px rgba(31,54,85,.18); padding: 8px; display: grid; gap: 2px; }
.pop-title { margin: 2px 6px 6px; font: 600 11px var(--font-display); color: var(--grey); text-transform: uppercase; letter-spacing: .05em; }
#clearList { display: grid; gap: 2px; }
#clearList label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
#clearList label:hover { background: var(--paper); }
#clearList label.empty { cursor: default; opacity: .55; }
#clearList label.empty:hover { background: none; }
#clearList input { accent-color: var(--red); margin-top: 3px; }
#clearList b { display: block; font: 600 13px var(--font-display); color: var(--navy); }
#clearList small { display: block; font-size: 12px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.pop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 8px 6px 2px; border-top: 1px solid var(--pale); }
#clearApply { background: var(--red); box-shadow: none; }
#clearApply:hover { background: #b40000; }
#clearApply:disabled { background: var(--grey-light); color: #fff; cursor: default; }

.btn { border: 0; border-radius: 10px; padding: 10px 16px; font: 700 13px var(--font-display); cursor: pointer; white-space: nowrap; transition: .15s; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(6,166,255,.3); }
.btn.primary:hover { background: var(--blue-secondary); }
.btn.primary:disabled { background: var(--grey); box-shadow: none; cursor: wait; }
.btn.ghost { background: none; color: var(--navy-secondary); }
.btn.ghost:hover { background: var(--paper); }
.btn.line { background: #fff; border: 1px solid #dfe6ea; color: var(--navy); }
.btn.line:hover { border-color: var(--blue); color: var(--blue-secondary); }
.btn.small { padding: 7px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: #ffecec; }
.icon { border: 0; background: none; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; color: var(--navy-secondary); font-size: 14px; line-height: 1; flex: none; }
.icon:hover { background: var(--paper); color: var(--navy); }
.icon.danger:hover { background: #ffecec; color: var(--red); }
.link { border: 0; background: none; padding: 0; color: var(--blue-secondary); cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }

.split { display: grid; grid-template-columns: minmax(480px, 2fr) minmax(0, 3fr); height: calc(100vh - 60px); }  /* форма — 2/5 экрана, предпросмотр — 3/5 */

/* форма */
.form { position: relative; overflow-y: auto; padding: 18px 22px 0; border-right: 1px solid var(--pale); display: flex; flex-direction: column; }
/* крестик очистки однострочного поля: один на форму, встаёт к полю под мышью или в фокусе (app.js);
   место под него справа — только пока он виден, чтобы длинные значения не обрезались зря */
#form input.in.with-clear { padding-right: 34px; }
#form .date input.in.with-clear, #form .combo:not(.plain) input.in.with-clear { padding-right: 62px; }
.field-clear { position: absolute; z-index: 4; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #e3eaef; color: var(--navy-secondary); font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.field-clear:hover { background: #cfdae3; color: var(--navy); }
.acc { border: 1px solid var(--pale); border-radius: 14px; margin-bottom: 10px; transition: box-shadow .2s; flex: none; }
.acc.open { box-shadow: 0 10px 30px rgba(31,54,85,.08); border-color: #d7e6f1; }
.acc > header { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 16px; cursor: pointer; }
.acc > header .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--paper); font: 700 12.5px var(--font-display); color: var(--navy-secondary); }
.acc.open > header .n { background: var(--blue); color: #fff; }
.acc > header h3 { font-size: 14.5px; }
.acc > header p { margin: 1px 0 0; font-size: 12.5px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { font-size: 12px; font-weight: 600; color: #2fae78; white-space: nowrap; }
.st.todo { color: var(--blue-secondary); }
.st.warn { color: #b88a00; }
.acc .body { display: none; padding: 2px 16px 18px; }  /* поля — на всю ширину раздела, не только под заголовком */
.acc.open .body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.acc .body { container-type: inline-size; }  /* раскладка полей — по ширине раздела, а не экрана */

.f { display: block; }
.f > span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; font: 600 12px var(--font-display); color: var(--navy-secondary); margin-bottom: 5px; }
.f > span em { font: 400 11.5px var(--font-body); color: var(--grey); font-style: normal; text-align: right; }
.in { width: 100%; padding: 9px 11px; border: 1px solid #dfe6ea; border-radius: 10px; background: #fff; transition: .15s; line-height: 1.5; }
.in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(6,166,255,.12); }
textarea.in { resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* пара полей в строку, если обоим хватает места; одно видимое поле пары занимает всю строку */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 12px; align-items: end; }
@container (min-width: 600px) { .two.reg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sal .seg { flex: none; }
.sal .in { flex: 1 1 200px; width: auto; padding: 7px 11px; }
#salCustom.on { border-color: var(--blue); background: var(--blue-light); color: var(--navy); font-weight: 600; }
.combo { position: relative; display: flex; gap: 4px; align-items: center; }
.combo .icon { position: absolute; right: 5px; }
.combo .in { padding-right: 38px; }
.menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: #fff; border: 1px solid #d7e6f1; border-radius: 10px; box-shadow: 0 12px 30px rgba(31,54,85,.14); padding: 4px; display: grid; }
.menu button { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.menu button:hover, .menu button:focus { background: var(--blue-light); outline: none; color: var(--navy); }
.combo.plain .in { padding-right: 11px; }
/* дата: текст по маске + кнопка календаря; поле type=date скрыто под кнопкой — к нему привязан календарь браузера */
.date { position: relative; display: flex; align-items: center; }
.date .in { padding-right: 38px; font-variant-numeric: tabular-nums; }
.date .icon { position: absolute; right: 5px; display: grid; place-items: center; }
.date .date-native { position: absolute; right: 5px; bottom: 0; width: 28px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.in.bad { border-color: var(--red); box-shadow: 0 0 0 4px rgba(214,0,0,.08); }
/* меню с пояснениями шире поля; у правого поля пары — прижато вправо, чтобы не вылезать за форму */
.menu.wide { right: auto; width: max(100%, 300px); max-height: 360px; overflow-y: auto; }
.pair > :nth-child(2) .menu.wide { left: auto; right: 0; }
.menu .cap { margin: 4px 10px; font: 600 11px var(--font-display); color: var(--grey); }
/* подсказки справочника клиентов */
.suggest { gap: 1px; }
.suggest .opt { display: flex; align-items: center; border-radius: 7px; }
.suggest .opt:hover, .suggest .opt:focus-within { background: var(--blue-light); }
.suggest .pick { flex: 1; min-width: 0; display: grid; gap: 1px; background: none; }
.suggest .pick:hover, .suggest .pick:focus { background: none; }
.suggest .pick b { font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .pick small { font-size: 12px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest mark { background: var(--gold); color: inherit; border-radius: 2px; }
.suggest .forget { display: grid; place-items: center; margin-right: 4px; padding: 0; color: var(--grey); opacity: 0; }
.suggest .opt:hover .forget, .suggest .forget:focus { opacity: 1; }
.in.filled { animation: filled 1.4s ease; }
@keyframes filled { 0% { background: var(--blue-light); border-color: var(--blue); } 100% { background: #fff; } }
.seg { display: inline-flex; background: var(--paper); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; cursor: pointer; color: var(--navy-secondary); }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(31,54,85,.12); font-weight: 600; }
.hint { padding: 11px 13px; border-radius: 10px; background: var(--blue-light); font-size: 12.5px; color: var(--navy-secondary); }
.hint .accent { font-weight: 600; color: var(--navy); }
.hint details { margin-top: 6px; }
.hint summary { cursor: pointer; color: var(--blue-secondary); }
.hint h5 { margin: 10px 0 3px; font: 700 12px var(--font-display); color: var(--navy); }
.hint ul, .hint ol { margin: 2px 0; padding-left: 18px; }
.hint p { margin: 3px 0; }

.switch { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--pale); border-radius: 12px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--grey-light); position: relative; cursor: pointer; transition: .2s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { left: 19px; }
.switch b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 13.5px; }
.switch small { color: var(--navy-secondary); font-size: 12px; }
.checks { display: grid; gap: 6px; }
.checks label { display: flex; gap: 9px; align-items: flex-start; padding: 8px 11px; border: 1px solid var(--pale); border-radius: 9px; font-size: 13px; cursor: pointer; }
.checks input { accent-color: var(--blue); margin-top: 3px; }
.custom { display: grid; gap: 6px; }
.custom .row { display: flex; gap: 6px; align-items: center; }
.pages-row { display: flex; gap: 12px; align-items: center; }
.pages-row .in { width: 90px; }
.inline { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.inline input { accent-color: var(--blue); }

.form-foot { position: sticky; bottom: 0; margin: auto -22px 0; padding: 14px 22px; background: linear-gradient(rgba(255,255,255,.6), #fff 35%); display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--pale); }
.form-foot .sum { flex: 1; font-size: 12.5px; color: var(--navy-secondary); min-width: 0; }
.form-foot .sum b { display: block; font: 800 18px var(--font-display); color: var(--navy); }
.form-foot .sum a { font-size: 12px; color: #b88a00; }
.issues { margin: 0 -22px; padding: 12px 22px 16px; background: #fff7d6; border-top: 1px solid #f3dc85; font-size: 13px; color: #6b4f00; }
.issues b { font-family: var(--font-display); }
.issues ul { margin: 6px 0 0; padding-left: 18px; }

/* услуги */
.svc { border: 1px solid #d7e6f1; border-radius: 12px; margin-bottom: 12px; background: #fbfdff; }
.svc.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px rgba(6,166,255,.35); } 100% { box-shadow: none; } }
.svc-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border-bottom: 1px solid var(--pale); }
.svc-head .badge { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--navy); color: #fff; font: 700 12px var(--font-display); flex: none; }
.svc-head .in { font: 700 14px var(--font-display); color: var(--navy); padding: 6px 9px; }
.svc-sec { padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.svc-sec + .svc-sec { border-top: 1px dashed var(--pale); }
.lbl { display: flex; justify-content: space-between; align-items: baseline; font: 600 12px var(--font-display); color: var(--navy-secondary); }
textarea.md { font-size: 13px; line-height: 1.55; min-height: 110px; }
.tbl { border: 1px solid var(--pale); border-radius: 10px; background: #fff; }
.tbl-top { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--pale); }
.tbl-top .cap { font: 700 12px var(--font-display); color: var(--blue-secondary); white-space: nowrap; }
.tbl-top .in { padding: 6px 8px; font-size: 13px; }
.tbl-top select.in { width: 140px; flex: none; margin-left: auto; }
.tbl-top { flex-wrap: wrap; }
/* название целиком — отдельной строкой; фраза периодичности после поля не редактируется */
.tbl-name { order: 4; flex: 1 1 100%; display: flex; align-items: center; gap: 4px; min-width: 0; }
.tbl-name .in { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--navy); }
.tbl-name .suffix { flex: none; white-space: nowrap; font: 600 13px var(--font-body); color: var(--navy-secondary); }
.grid-wrap { overflow-x: auto; }
table.grid { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 12.5px; }
table.grid th, table.grid td { border-bottom: 1px solid #eef3f6; padding: 0; vertical-align: top; position: relative; }
table.grid th { background: var(--blue-light); }
table.grid textarea { display: block; width: 100%; min-height: 30px; border: 0; background: transparent; resize: none; padding: 6px 7px; line-height: 1.4; overflow: hidden; font-variant-numeric: tabular-nums; }
table.grid th textarea { font-weight: 600; color: var(--navy-secondary); }
table.grid textarea:focus { outline: 2px solid var(--blue); outline-offset: -2px; background: #fff; }
table.grid td.act, table.grid th.act { width: 30px; text-align: center; vertical-align: middle; }
table.grid tr.dropped td { background: #fafafa; }
table.grid tr.dropped textarea { color: var(--grey); text-decoration: line-through; }
table.grid th .x { position: absolute; top: 1px; right: 1px; width: 16px; height: 16px; border: 0; border-radius: 4px; background: none; color: var(--grey); cursor: pointer; font-size: 12px; line-height: 1; opacity: 0; }
table.grid th:hover .x { opacity: 1; }
table.grid th .x:hover { background: #ffecec; color: var(--red); }
.tbl-actions { display: flex; gap: 6px; padding: 6px 8px; flex-wrap: wrap; }
.tbl-calc { padding: 2px 10px 8px; font-size: 12.5px; display: grid; gap: 3px; }
.tbl-calc .line { display: flex; justify-content: space-between; font-weight: 600; color: var(--navy); }
.tbl-calc .warn { padding: 6px 9px; border-radius: 8px; background: #fff7d6; color: #6b4f00; font-weight: 400; }
.tbl-calc .dropnote { color: var(--grey); }
.tbl .note { margin: 0 8px 8px; width: calc(100% - 16px); padding: 6px 9px; font-size: 12.5px; }
.paste { display: grid; gap: 6px; padding: 8px; }
.paste textarea { min-height: 70px; border: 1.5px dashed #9fd6f7; border-radius: 10px; background: #f7fcff; padding: 10px; font-size: 13px; resize: vertical; }
.paste textarea:focus { outline: none; border-color: var(--blue); }
.svc > .paste { padding: 4px 12px 8px; }
.paste.more textarea { min-height: 44px; }  /* поле для ещё одной таблицы под уже вставленными */
.svc-add { display: flex; gap: 6px; padding: 0 12px 12px; }

/* стол с листами */
.desk { overflow: auto; background: #e9eef2; position: relative; padding: 18px 24px 70px; }
.desk-bar { margin: 0 0 14px; display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: var(--navy-secondary); }
.desk-bar b { font-family: var(--font-display); color: var(--navy); }
.privacy { width: max-content; max-width: 100%; margin: 26px auto 0; padding: 7px 14px; border-radius: 999px; background: rgba(31,54,85,.85); color: #fff; font-size: 12px; }

.drawer { position: fixed; top: 60px; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 8; background: #fff; border-left: 1px solid var(--pale); box-shadow: -16px 0 40px rgba(31,54,85,.14); display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-size: 17px; }
.drawer-list { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 8px; }
.hist { border: 1px solid var(--pale); border-radius: 12px; padding: 11px 13px; display: grid; gap: 4px; }
.hist:hover { border-color: #cfe3f2; background: #fbfdff; }
.hist b { font-family: var(--font-display); color: var(--navy); }
.hist .meta { font-size: 12px; color: var(--grey); }
.hist .sum { font-size: 12.5px; color: var(--navy-secondary); }
.hist .acts { display: flex; gap: 6px; margin-top: 4px; }
.hist .acts a { text-decoration: none; }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 460px; padding: 14px 18px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 13.5px; box-shadow: 0 12px 30px rgba(31,54,85,.3); z-index: 10; }
.toast.error { background: #8a1c1c; }
.toast ul { margin: 6px 0 0; padding-left: 18px; }
.toast-btn { margin-left: 8px; padding: 3px 11px; border: 1px solid rgba(255,255,255,.55); border-radius: 7px; background: none; color: #fff; font: 600 12.5px var(--font-display); cursor: pointer; }
.toast-btn:hover { background: rgba(255,255,255,.15); }

/* редактор описаний услуг */
.svc-editor { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 7; background: #fff;
  display: grid; grid-template-columns: 270px minmax(380px, 1fr) minmax(0, 640px); }
.svc-mode .top .doc, .svc-mode .jump, .svc-mode #demoBtn, .svc-mode #clearPop, .svc-mode #newBtn, .svc-mode #historyBtn { visibility: hidden; }
#servicesBtn.on { background: var(--blue-light); color: var(--navy); }
.se-list { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 16px; border-right: 1px solid var(--pale); background: var(--paper); min-height: 0; }
.se-list-head { padding: 0 6px; }
.se-list-head h3 { font-size: 16px; }
.se-items { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; min-height: 0; }
.se-item { display: grid; gap: 1px; text-align: left; border: 0; border-radius: 10px; padding: 8px 10px; background: none; cursor: pointer; }
.se-item b { font: 600 13px var(--font-display); color: var(--navy); }
.se-item small { font-size: 11.5px; color: var(--grey); }
.se-item:hover { background: #fff; }
.se-item.on { background: #fff; box-shadow: inset 3px 0 0 var(--blue), 0 1px 3px rgba(31,54,85,.1); }
.se-edit { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 16px; min-height: 0; overflow-y: auto; }
.se-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.se-head h2 { font-size: 19px; }
.se-fields { display: grid; grid-template-columns: 1fr 130px; gap: 10px; }
.se-fields .se-id { grid-column: 1 / -1; }
.se-fields .f > span, .se-text > span { display: flex; justify-content: space-between; gap: 10px; font: 600 12px var(--font-display); color: var(--navy-secondary); margin-bottom: 5px; }
.se-fields em, .se-text em { font: 400 11.5px var(--font-body); color: var(--grey); font-style: normal; }
.se-text em.warn { color: #b26a00; }
.se-text { display: flex; flex-direction: column; flex: 1; min-height: 260px; }
.se-text textarea { flex: 1; resize: none; min-height: 240px; font-size: 13.5px; line-height: 1.6; }
.se-help { display: grid; gap: 6px; font-size: 12px; color: var(--navy-secondary); }
.se-help p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.se-help code { padding: 2px 7px; border-radius: 6px; background: var(--paper); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); }
.chip { border: 1px solid #dfe6ea; border-radius: 999px; background: #fff; padding: 2px 10px; font-size: 12px; color: var(--navy-secondary); cursor: pointer; }
.chip:hover { border-color: var(--blue); color: var(--blue-secondary); }
.se-issues { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12.5px; }
.se-issues:empty { display: none; }
.se-issues li { padding: 6px 10px; border-radius: 8px; }
.se-issues .err { background: #ffecec; color: var(--red); }
.se-issues .warn { background: #fff6e0; color: #8a5a00; }
.se-foot { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--pale); }
.se-foot .sp { flex: 1; }
.se-preview { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; background: #eef2f5; border-left: 1px solid var(--pale); overflow-y: auto; min-height: 0; }
.se-preview-head { margin: 0; font: 600 11px var(--font-display); color: var(--navy-secondary); text-transform: uppercase; letter-spacing: .05em; }
.se-sheet { background: #fff; padding: 1cm 1.2cm; box-shadow: 0 2px 4px rgba(31,54,85,.08), 0 18px 40px rgba(31,54,85,.12); overflow-x: auto; }

@media (max-width: 1100px) {
  .svc-editor { position: absolute; bottom: auto; min-height: calc(100% - 60px); grid-template-columns: 1fr; }
  .se-list { border-right: 0; border-bottom: 1px solid var(--pale); }
  .se-items { max-height: 220px; }
  .se-preview { border-left: 0; }
}

@media (max-width: 1100px) {
  body { overflow: auto; }
  .split { grid-template-columns: 1fr; height: auto; }
  .form { overflow: visible; }
  .desk { overflow: visible; }
  .top .product, .jump, #userName { display: none; }
}
