/* Author workspace only. This stylesheet is not loaded by Reader. */
.ctor-dialog,.southern-cms{box-sizing:border-box;max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);margin:auto;overflow-x:hidden;overscroll-behavior:contain}
.ctor-dialog *,.southern-cms *{box-sizing:border-box}
.ctor-dialog h3,.southern-cms h3{overflow-wrap:anywhere;line-height:1.35}
.ctor-dialog input,.ctor-dialog select,.ctor-dialog textarea,.southern-cms input,.southern-cms select,.southern-cms textarea{max-width:100%;min-width:0;font-size:16px}
.ctor-dialog button,.southern-cms button{max-width:100%;min-height:36px;white-space:normal;overflow-wrap:break-word;line-height:1.3;touch-action:manipulation}
.ctor-dialog .sc-actions,.southern-cms .sc-actions{display:flex;flex-wrap:wrap;gap:8px}
.ctor-dialog .sc-actions>button,.southern-cms .sc-actions>button{flex:1 1 140px;min-width:0}
.ctor-dialog.southern-chat-editor{width:min(760px,calc(100vw - 16px));padding:14px}
.ctor-dialog.southern-chat-editor .sc-row{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:8px;padding:12px 8px}
.ctor-dialog.southern-chat-editor .sc-row>label{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:0;padding-top:2px;min-width:0;font-size:12px}
.ctor-dialog.southern-chat-editor .sc-row>label input{margin:0;flex:0 0 18px;width:18px;height:18px}
.ctor-dialog.southern-chat-editor .sc-row .grow{min-width:0;overflow-wrap:anywhere}
.ctor-dialog.southern-chat-editor .sc-row .grow>b{display:block;line-height:1.3}
.ctor-dialog.southern-chat-editor .sc-row small{font-size:12px;font-variant-numeric:tabular-nums;line-height:1.5;white-space:nowrap}
.ctor-dialog.southern-chat-editor .sc-row p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.ctor-dialog.southern-chat-editor .sc-message-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.ctor-dialog.southern-chat-editor .sc-message-actions button{flex:1 1 78px;min-width:0;padding:8px;font-size:13px;background:#edf2f7;color:#42648b}
.ctor-dialog .sc-bulk{margin:12px 0;border:1px solid #dce2e8;border-radius:8px;padding:10px}
.ctor-dialog .sc-bulk summary{cursor:pointer;min-height:28px;line-height:28px;color:#42648b}
.ctor-dialog .sc-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}
.ctor-dialog .sc-range label{margin:0}
.ctor-dialog .sc-range button:last-child{grid-column:1/-1}
.ctor-dialog.southern-media-picker .southern-media-choice{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:8px}
.ctor-dialog.southern-media-picker .southern-media-choice>button{grid-column:2;width:100%}
.ctor-dialog.southern-media-picker .southern-media-choice>span{overflow-wrap:anywhere}
.ctor-dialog.southern-media-picker video,.ctor-dialog.southern-media-picker audio{grid-column:1/-1;width:100%;max-width:100%}
.ctor-dialog .sc-slot{min-width:0;overflow-wrap:anywhere}
.ctor-dialog .sc-slot>small{display:block;font-size:12px;line-height:1.5}
@media(max-width:560px){.southern-cms{width:calc(100vw - 12px);height:calc(100dvh - 16px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 16px);border-radius:10px}.southern-cms .sc-body{height:auto;max-height:calc(100dvh - 128px);padding:8px}.southern-cms .sc-row{flex-wrap:wrap}.southern-cms .sc-row>.grow{flex:1 1 100%;overflow-wrap:anywhere}.southern-cms .sc-row>button{flex:1 1 110px}.southern-cms .sc-grid{grid-template-columns:minmax(0,1fr)}.ctor-dialog footer{flex-wrap:wrap}.ctor-dialog footer>button{flex:1 1 120px}.ctor-dialog input[type=date],.ctor-dialog input[type=time],.ctor-dialog input[type=datetime-local]{min-height:40px;max-width:100%}}
/* Compact touch controls: labels stay whole at the 320px phone width. */
.ctor-dialog.southern-chat-editor>.sc-actions>button{font-size:13px;padding:8px 6px;min-height:40px}
.ctor-dialog.southern-chat-editor .sc-message-actions{grid-column:1/-1}
.ctor-dialog.southern-chat-editor .sc-message-actions button{font-size:12px;padding:7px 4px;white-space:nowrap;overflow-wrap:normal;min-height:36px}
.ctor-dialog.southern-chat-editor h3{font-size:18px;margin:2px 0 12px}
.ctor-dialog.southern-media-picker [data-tabs]{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ctor-dialog.southern-media-picker [data-tabs] button{font-size:13px;padding:8px 10px;min-height:36px}

/* Mobile author controls: no overlapping actions or single-character dates. */
.ctor-dialog.southern-chat-editor{padding:16px;max-height:calc(100dvh - 22px);overflow-x:hidden;overflow-y:auto}
.ctor-dialog.southern-chat-editor .sc-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:8px;align-items:stretch}
.ctor-dialog.southern-chat-editor .sc-actions>button{box-sizing:border-box;display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;padding:10px 8px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.3!important;font:14px/1.3 -apple-system,BlinkMacSystemFont,sans-serif!important;border-radius:6px}
.ctor-dialog.southern-chat-editor .sc-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;width:100%;min-width:0}
.ctor-dialog.southern-chat-editor .sc-row small{white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
.ctor-dialog.southern-chat-editor .sc-row .grow{min-width:0!important;overflow-wrap:break-word!important}
.ctor-dialog.southern-chat-editor .sc-message-actions{grid-column:2!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,86px),1fr));gap:5px}
.ctor-dialog.southern-chat-editor .sc-message-actions button{display:block;white-space:normal!important;line-height:1.25!important;width:100%;min-width:0;margin:0!important}
@media(max-width:560px){.ctor-dialog.southern-chat-editor{width:calc(100vw - 20px)!important;padding:12px!important}.ctor-dialog.southern-chat-editor .sc-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ctor-dialog.southern-chat-editor .sc-row{grid-template-columns:24px minmax(0,1fr)}.ctor-dialog.southern-chat-editor .sc-message-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
