/* Shared content editor: compact rows, deliberate touch targets, inline search. */
#editorSidebar .overlay-content-editor{display:grid;gap:10px;min-width:0;color:#24483b}
#editorSidebar .oc-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}
#editorSidebar .oc-heading>span{font-size:12px;font-variant-numeric:tabular-nums;color:#667e72}
#editorSidebar .oc-hint{margin:0;font-size:12px;line-height:1.45;color:#65796e}
#editorSidebar .oc-list{list-style:none;padding:0;margin:0;display:grid;gap:6px}
#editorSidebar .oc-list>li{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:start;position:relative;gap:3px;background:white;border:1px solid #d9e5dd;border-radius:9px;min-width:0}
#editorSidebar .oc-list button{border:0;box-shadow:none;background:transparent;color:#5b7869;border-radius:6px;font:600 13px 'DM Sans',sans-serif;cursor:pointer}
#editorSidebar :is(.oc-grip,.oc-remove){width:32px;min-height:52px;padding:0!important}
#editorSidebar .oc-grip{font-size:22px!important;cursor:grab!important;touch-action:none;user-select:none;-webkit-user-select:none}
#editorSidebar .oc-remove{font-size:22px!important}
#editorSidebar .oc-remove:hover{color:#a14538;background:#fff0ec}
#editorSidebar .oc-item{min-width:0;border:0;padding:0}
#editorSidebar .oc-item>summary{display:grid;align-content:center;gap:3px;position:relative;min-height:52px;box-sizing:border-box;padding:7px 23px 7px 0;cursor:pointer;list-style:none;background:none;border:0}
#editorSidebar .oc-item>summary::-webkit-details-marker{display:none}
#editorSidebar .oc-item>summary::after{content:'';position:absolute;right:8px;top:21px;width:6px;height:6px;border:solid #627c70;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);pointer-events:none}
#editorSidebar .oc-item[open]>summary::after{transform:rotate(225deg);top:24px}
#editorSidebar .oc-item>summary:hover strong{color:#1c7956}
#editorSidebar .oc-item>summary strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
#editorSidebar .oc-item>summary small{font-size:11px;color:#687e73;font-variant-numeric:tabular-nums}
#editorSidebar .oc-item[open]>summary strong{color:#1c7956}
#editorSidebar .oc-edit{display:grid;gap:8px;padding:4px 0 10px}
#editorSidebar .oc-edit label{display:grid;gap:4px;font-size:11px;color:#65796e}
#editorSidebar .oc-edit input,#editorSidebar .oc-search input{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:7px 9px;border:1px solid #cadbd1;border-radius:7px;background:white;color:#24483b;font:400 13px 'DM Sans',sans-serif}
#editorSidebar .oc-moves{display:flex;gap:5px}
#editorSidebar .oc-moves button{flex:1;min-height:40px;background:#edf5f0;padding:5px!important;font-size:11px}
#editorSidebar .oc-moves button:disabled{opacity:.4;cursor:default}
#editorSidebar .oc-list>.oc-empty{display:block;padding:14px;font-size:12px;line-height:1.5;color:#65796e;border-style:dashed}
#editorSidebar .oc-unavailable small{color:#937447}
#editorSidebar .oc-add{border:1px dashed #abcbb9;border-radius:9px;background:#f7fbf8;min-width:0}
#editorSidebar .oc-add>summary{min-height:44px;padding:11px 12px;box-sizing:border-box;cursor:pointer;list-style:none;font-size:13px;font-weight:600;color:#237957}
#editorSidebar .oc-add>summary::-webkit-details-marker{display:none}
#editorSidebar .oc-add[open]>summary{border-bottom:1px solid #dfe9e3}
#editorSidebar .oc-search{display:block;padding:8px}
#editorSidebar .oc-options{max-height:320px;overflow:auto;overscroll-behavior:contain;padding:0 8px 8px}
#editorSidebar .oc-options button{display:grid;gap:4px;text-align:left;width:100%;min-height:50px;border:0;border-radius:7px;padding:9px;background:transparent;color:#284b3c;cursor:pointer;font:500 12px 'DM Sans',sans-serif}
#editorSidebar .oc-options button small{color:#596f63;font-size:12px;line-height:1.4}
#editorSidebar .oc-options button:not(:disabled):hover{background:#e4f1e9}
#editorSidebar .oc-options button:disabled{opacity:.5;cursor:default}
#editorSidebar .oc-drop-before:before,#editorSidebar .oc-drop-after:after{content:'';position:absolute;left:0;right:0;height:3px;background:#2a9468;border-radius:3px;z-index:1}
#editorSidebar .oc-drop-before:before{top:-5px}#editorSidebar .oc-drop-after:after{bottom:-5px}
#editorSidebar .oc-dragging{opacity:.4;background:#e7f3eb!important}
#editorSidebar .oc-is-dragging{user-select:none;-webkit-user-select:none}
#editorSidebar .overlay-content-editor :is(button,summary,input):focus-visible{outline:2px solid #23805b;outline-offset:2px}
#editorSidebar .oc-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#editorSidebar .trip-summary-field textarea{box-sizing:border-box;width:100%;min-height:72px;resize:vertical;padding:9px;border:1px solid #ccdcd2;border-radius:7px;color:#244335;background:white;font:inherit}
@media(max-width:900px){
 #editorSidebar .oc-list>li{grid-template-columns:44px minmax(0,1fr) 44px}
 #editorSidebar :is(.oc-grip,.oc-remove){width:44px;min-height:52px}
 /* An expanded field gets the whole row, instead of the narrow space between
    its drag handle and delete button. Both actions stay in the header. */
 #editorSidebar .oc-list>li:has(>.oc-item[open])>.oc-item{grid-column:1/-1;grid-row:1}
 #editorSidebar .oc-list>li:has(>.oc-item[open])>.oc-grip{grid-column:1;grid-row:1;z-index:1}
 #editorSidebar .oc-list>li:has(>.oc-item[open])>.oc-remove{grid-column:3;grid-row:1;z-index:1}
 #editorSidebar .oc-item[open]>summary{padding-inline:47px 67px}
 #editorSidebar .oc-item[open]>summary::after{right:53px}
 #editorSidebar .oc-edit{padding:8px 12px 12px;gap:10px;border-top:1px solid #e5ede8}
 #editorSidebar .oc-edit label{font-size:13px;gap:7px}
 body.film-studio-active #editorSidebar #gpxStudio #studioSettings .oc-edit input,
 body.film-studio-active #editorSidebar #gpxStudio #studioSettings .oc-search input,
 body.film-studio-active #editorSidebar #gpxStudio #studioSettings .trip-summary-field input[type=text]{font-size:16px!important;min-height:50px!important;padding:12px!important;line-height:1.5}
 body.film-studio-active #editorSidebar #gpxStudio #studioSettings .trip-summary-field textarea{font-size:16px!important;min-height:128px!important;padding:12px!important;line-height:1.5;resize:vertical}
 #editorSidebar .oc-moves button{min-height:44px;font-size:12px}
 #editorSidebar .oc-options{max-height:240px}
}

/* Keep the small inline label disclosure separate from the global card theme. */
html[data-dddmaps-test-theme] #editorSidebar .overlay-content-editor details.oc-item{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;margin:0!important}
html[data-dddmaps-test-theme] #editorSidebar .overlay-content-editor details.oc-item>summary{border:0!important;border-radius:0!important;background:transparent!important}
html[data-dddmaps-test-theme] #editorSidebar .overlay-content-editor .oc-add{border:1px dashed #abcbb9!important;border-radius:9px!important;background:#f7fbf8!important}
#editorSidebar .trip-summary-group:has(.overlay-content-editor)>summary>span{display:none}
