/* designer.css - settings panel docked next to the page it changes (14 Oct 2026) */
.ds-panel{display:none}
.cs-shell.designing .ds-panel{display:flex;flex-direction:column;width:380px;flex-shrink:0;background:var(--card);border-left:1px solid var(--border);box-shadow:-6px 0 24px rgba(0,0,0,.06);min-height:0;z-index:70}
.ds-head{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--border)}
.ds-back{border:none;background:var(--card2);color:var(--text2);width:30px;height:30px;border-radius:8px;font-size:16px;cursor:pointer;flex-shrink:0}
.ds-title{flex:1;min-width:0}
.ds-kind{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--accent)}
.ds-name{font-size:15px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds-body{flex:1;min-height:0;overflow:auto;padding:12px 14px 20px}
.ds-sec{padding:10px 0 12px;border-bottom:1px solid var(--border2)}
.ds-sec:last-child{border-bottom:none}
.ds-sh{font-size:12px;font-weight:700;color:var(--text3);text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}
.ds-lbl{font-size:12px;font-weight:600;color:var(--text3);margin:8px 0 4px}
.ds-hint{font-size:11.5px;color:var(--text3);margin-top:6px;line-height:1.45}
.ds-in{width:100%;box-sizing:border-box;border:1px solid var(--border);background:var(--card2);color:var(--text);border-radius:9px;padding:8px 10px;font:inherit;font-size:13.5px;margin-bottom:6px}
textarea.ds-in{resize:vertical}
.ds-checks{display:flex;flex-direction:column;gap:6px}
.ds-panel .st-check{font-size:13px}
.ds-panel .st-olist{width:100%}
.ds-panel .st-add{max-width:100%}
.st-olink,.st-flink{border:none;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;padding:0}
.st-olink:hover,.st-flink:hover{color:var(--accent);text-decoration:underline}
.ds-panel .st-opt{flex-wrap:wrap}
.ds-panel .st-opt input[type=text]{min-width:120px}
.ds-optbtns{display:flex;gap:3px;margin-left:auto}
.ds-fields{display:flex;flex-direction:column;gap:2px;max-height:260px;overflow:auto}
.ds-field{display:flex;justify-content:space-between;gap:8px;border:none;background:none;color:var(--text);font:inherit;font-size:13px;padding:6px 8px;border-radius:8px;cursor:pointer;text-align:left}
.ds-field:hover{background:var(--card2)}
.ds-field .cs-muted{font-size:11.5px;white-space:nowrap}
.ds-reset{margin-top:12px}
.ds-foot{border-top:1px solid var(--border);padding:10px 14px calc(12px + env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:var(--card)}
.ds-state{flex:1;font-size:12.5px;color:var(--text3)}
.ds-state.dirty{color:var(--orange);font-weight:700}
.ds-btns{display:flex;gap:8px}
.st-tip{font-size:12.5px;color:var(--text3);margin:-6px 0 12px;max-width:980px}
.cc-editpage{color:var(--accent)}
.rp-editlayout{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--border);background:var(--card);color:var(--accent);font-size:12.5px;font-weight:600;padding:5px 10px;border-radius:9px;cursor:pointer;margin-right:6px}
.rp-editlayout .cc-ic,.rp-editlayout svg{width:14px;height:14px}
@media (max-width:860px){
  .cs-shell.designing .ds-panel{position:fixed;left:0;right:0;bottom:0;top:auto;height:62vh;width:auto;border-left:none;border-top:1px solid var(--border);border-radius:16px 16px 0 0;box-shadow:0 -8px 30px rgba(0,0,0,.25)}
}
/* While designing, the page gets the room: no sidebar, no conversation column
   (both come back when the panel closes). */
@media (min-width:861px){
  .cs-shell.designing .cs-side{display:none}
  .cs-shell.designing .rp-conv{display:none}
  .cs-shell.designing .cs-menu{display:none}
}
.cc-grid th.ds-spot{box-shadow:inset 0 -3px 0 var(--accent);color:var(--accent)}
