.custom-designer{background:#f7f8fc;color:#23263e;min-height:calc(100dvh - 65px);overflow-wrap:anywhere}
.custom-designer[hidden],.custom-designer [hidden],.access-locked .custom-designer{display:none!important}
.cd-wrap{width:min(1100px,100%);margin:0 auto;padding:clamp(24px,5vw,52px) clamp(16px,4vw,44px) 52px}
.cd-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0 26px}
.cd-head h1{font-size:clamp(27px,3.4vw,39px);line-height:1.15;letter-spacing:-.045em;font-weight:670}
.cd-head h1:focus{outline:none}.cd-head p{margin-top:8px;color:#62697c;font-size:14px;line-height:1.55}
.cd-back{display:inline-flex;align-items:center;gap:4px;color:#644ca6;font-size:13px;font-weight:560;padding:3px 0}
.cd-back:hover,.cd-remove-image:hover{text-decoration:underline}
.cd-back svg{transform:rotate(180deg)}
.cd-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cd-record{display:flex;align-items:center;gap:15px;min-width:0;padding:17px;text-align:left;background:white;color:inherit;border:1px solid #dedfea;border-radius:12px}
.cd-record:hover{border-color:#bcabe6;background:#fcfbff}.cd-record>svg{margin-left:auto;color:#85899d;flex:none}
.cd-thumb,.cd-image,.cd-preview-icon{display:grid;place-items:center;background:#f2effa;color:#7658b4;border-radius:9px;overflow:hidden;flex:none}
.cd-thumb{width:48px;height:48px}.cd-thumb img,.cd-image img,.cd-preview-icon img{display:block;width:100%;height:100%;object-fit:contain}
.cd-record-text{display:grid;gap:4px;min-width:0}.cd-record-text strong{font-size:15px;font-weight:640}
.cd-record-text>span{color:#626a7e;font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cd-record-text small{font-size:11px;color:#766595}.cd-empty{padding:45px 18px;text-align:center;color:#686b80;background:#fff;border:1px dashed #cdd0de;border-radius:12px}
.cd-empty svg{color:#816bba}.cd-empty h2{font-size:18px;line-height:1.4;margin:12px 0 5px;color:#35384f}.cd-empty p{font-size:14px;line-height:1.5}
.cd-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(228px,.9fr);align-items:start;gap:20px}.cd-form,.cd-card{min-width:0}
.cd-form{display:grid;gap:16px}.cd-card{border:1px solid #e0dfeb;background:white;border-radius:13px;padding:clamp(16px,2.4vw,25px);box-shadow:0 2px 8px #27254205}
.cd-card h2{margin:0 0 17px;color:#282a42;font-size:17px;font-weight:650;letter-spacing:-.021em}
.cd-field{display:block;color:#3e4155;font-size:12px;font-weight:630;line-height:1.45}
.cd-field+.cd-field{margin-top:14px}.cd-field>small,.cd-upload small,.cd-note,.cd-small-title{font-weight:400;font-size:12px;line-height:1.5;color:#6c7184}
.cd-field>small{margin-left:3px}.cd-field input,.cd-field textarea,.cd-field select{display:block;width:100%;min-width:0;margin:5px 0 0;border:1px solid #d7d8e3;border-radius:7px;padding:9px 10px;color:#292b42;background:white;font:400 14px/1.4 Inter,sans-serif}
.cd-field textarea{resize:vertical}.cd-field select:disabled{background:#f4f4f8;color:#676b7e;opacity:1}
.cd-field textarea+small{display:block;margin:4px 0 0}.cd-field:last-of-type:not(label){margin-top:14px}
.cd-upload{display:flex;align-items:center;gap:13px;margin-top:6px}
.cd-image{width:57px;height:57px;border:1px solid #dedbe8}.cd-upload small{display:block;margin-top:3px}
.cd-file{position:relative;display:inline-flex;align-items:center;min-height:34px;padding:6px 11px;color:#594898;background:#f6f3fc;border:1px solid #e0d8ef;border-radius:7px;font-size:12px;font-weight:600;cursor:pointer;overflow:hidden}
.cd-file:focus-within{outline:2px solid #8062c2;outline-offset:2px}.cd-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.cd-remove-image{margin-left:8px;color:#68567f;font-size:12px;font-weight:560;padding:5px 0}
.cd-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.cd-section-head h2{margin:0}
.cd-note{margin:6px 0 0}.cd-input-row{min-width:0;margin:13px 0 0;padding:9px 13px 14px;border:1px solid #e1e0e9;border-radius:9px;background:#fafafd}
.cd-input-row legend{padding:0 5px;color:#68627c;font-size:11px;font-weight:610}
.cd-input-fields{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(92px,1fr) auto;align-items:end;gap:8px}
.cd-input-fields .cd-field{margin:0}.cd-remove{display:grid;place-items:center;width:36px;height:39px;border-radius:6px;color:#9b5365}.cd-remove:hover{background:#f9e9ed}
.cd-choices{margin-top:10px}.cd-chips{display:flex;flex-wrap:wrap;gap:5px;margin:4px 0 10px}
.cd-chips span{background:#eeeaf6;color:#625575;border-radius:5px;padding:3px 7px;font-size:11px}
.cd-save{display:flex;align-items:center;justify-content:flex-end;gap:8px}.cd-save button:disabled,.cd-section-head button:disabled{opacity:.6;cursor:default}
.cd-preview{position:sticky;top:16px}.cd-node-preview{display:flex;align-items:center;gap:10px;border:1px solid #cebde9;border-left:4px solid #8860ca;border-radius:9px;padding:12px;color:#333049}
.cd-preview-icon{width:36px;height:36px}.cd-node-preview strong{min-width:0;font-size:14px;font-weight:620}
.cd-preview-description{margin-top:11px;white-space:pre-wrap;font-size:13px;color:#62667c;line-height:1.5}
.cd-preview-inputs{padding:0;margin:16px 0 0;list-style:none}.cd-preview-inputs li{display:flex;align-items:center;gap:8px;border-top:1px solid #ecebf2;padding:8px 0;font-size:12px;color:#45445a}
.cd-preview-inputs li>svg{flex:none;color:#8a74a5}.cd-preview-inputs li>span{min-width:0}.cd-preview-inputs small{margin-left:auto;flex:none;color:#717486;font-size:11px}
.cd-message{margin:0 0 14px;padding:10px 13px;border-radius:7px;background:#f0ecf8;color:#55466e;font-size:13px;line-height:1.5}.cd-form .cd-message{margin:0}
.cd-message.error{background:#fff0ef;color:#934246}.cd-upload .error{color:#934246}
.custom-designer button:focus-visible,.custom-designer :is(input,select,textarea):focus-visible{outline:2px solid #8062c2;outline-offset:2px}
@media(max-width:760px){.custom-designer{min-height:calc(100dvh - 54px)}.cd-layout{grid-template-columns:1fr}.cd-preview{position:static}.cd-records{grid-template-columns:1fr}.cd-form{display:contents}.cd-save{order:2}.cd-form>.cd-message{order:1}.cd-input-fields{grid-template-columns:minmax(0,1.3fr) minmax(85px,.9fr) auto}}
@media(max-width:430px){.cd-head{flex-wrap:wrap;gap:10px;margin-bottom:18px}.cd-wrap{padding:22px 14px 36px}.cd-card{padding:15px}.cd-input-row{padding:7px 9px 11px}.cd-input-fields{grid-template-columns:minmax(0,1fr) auto}.cd-input-fields .cd-field:first-child{grid-column:1/-1}.cd-field :is(input,textarea,select){font-size:16px}.cd-record{padding:13px}.cd-layout{gap:13px}.cd-section-head .btn{font-size:12px}}
@media(min-width:761px) and (max-width:1080px){
  .topbar{gap:12px;padding-inline:14px}
  .topbar .brand strong,.topbar .brand>i,.topbar .top-divider,.topbar .sheet-link span{display:none}
  .topbar .top-link{padding-inline:9px}.topbar .top-right{gap:8px}.topbar .sheet-link{padding:7px}
}
