/* Shared polish for buttons across modules — nav/cx-ui.css (with cx-ui.js) */
.cxi { width: 15px; height: 15px; flex: 0 0 auto; vertical-align: -3px; }
.cxi-has { display: inline-flex; align-items: center; gap: 6px; }
.btn-icon.cxi-has { justify-content: center; }
#paneB :is(button, .btn, a[class*="btn"]):focus-visible,
#paneC :is(button, .btn, a[class*="btn"]):focus-visible,
.controlStack :is(button, .btn):focus-visible { outline: 2px solid var(--btn, #4a6b3a); outline-offset: 2px; }
#paneB :is(button, .btn):disabled, #paneC :is(button, .btn):disabled { cursor: not-allowed; }
/* Danger buttons read as danger everywhere */
#paneB .btn.danger, #paneC .btn.danger { background: transparent; color: #b91c1c; border: 1px solid rgba(220,38,38,.35); }
#paneB .btn.danger:hover, #paneC .btn.danger:hover { background: rgba(220,38,38,.07); border-color: #dc2626; }

/* Small dropdown menu used by editor toolbars (Export ▾, More ⋯) */
.cx-menu { position: relative; display: inline-block; }
.cx-menu > summary { list-style: none; cursor: pointer; }
.cx-menu > summary::-webkit-details-marker { display: none; }
.cx-menu > summary .caret { width: 12px; height: 12px; opacity: .7; }
.cx-menu[open] > summary { background: var(--panel2, #f1f5f9); }
.cx-menu .cx-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 210px; padding: 6px; border-radius: 12px;
  background: var(--panel, #fff); border: 1px solid var(--line, #e2e8f0); box-shadow: 0 14px 34px rgba(2,6,23,.16); display: flex; flex-direction: column; gap: 2px; }
.cx-menu .cx-menu-list > a, .cx-menu .cx-menu-list > button { display: flex; align-items: center; gap: 9px; width: 100%; box-sizing: border-box; text-align: left;
  padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text, #0f172a); font: 600 13px/1.2 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.cx-menu .cx-menu-list > a:hover, .cx-menu .cx-menu-list > button:hover:not(:disabled) { background: var(--panel2, #f1f5f9); }
.cx-menu .cx-menu-list > button:disabled { opacity: .45; cursor: not-allowed; }
.cx-menu .cx-menu-list small { display: block; font-weight: 500; color: var(--muted, #64748b); font-size: 11.5px; margin-top: 2px; }
.cx-menu .cx-menu-list .danger { color: #b91c1c; }
.cx-menu .cx-menu-list hr { border: 0; border-top: 1px solid var(--line, #e2e8f0); margin: 4px 2px; }
.meta-icon .cxi, .icon-box .cxi { width: 16px; height: 16px; color: var(--muted, #64748b); }

/* Files that are listed but no longer on the server */
.cx-missing-tile { display: grid; place-items: center; width: 100%; height: 100%; min-height: 64px; box-sizing: border-box;
  background: repeating-linear-gradient(135deg, #fffbeb 0 8px, #fef3c7 8px 9px); border: 1px dashed #d6a23a; border-radius: inherit;
  color: #92400e; font: 600 11px/1.2 Inter, system-ui, sans-serif; text-align: center; padding: 6px; }
.cx-file-missing { border-style: dashed !important; border-color: #d6a23a !important; }
.cx-file-missing, .cx-file-missing a { color: #92400e !important; cursor: default; }
.cx-file-missing small { font-weight: 600; color: #b45309; }
img.cx-img-missing { object-fit: contain !important; background: #f8fafc; }
