/* Keep native editor anchors and handlers; replace only the legacy GIF artwork. */
.oogc-page .fpd a:is(.fbld,.fclr,.fmg,.flnk,.fqt,.fcd,.fsml,.fat) {
  width: 20px;
  height: 20px;
  margin: 4px 7px 4px 0;
  border-radius: 4px;
  background-image: url(img/editor-toolbar.svg?v=20261016);
  background-repeat: no-repeat;
  background-size: 160px 20px;
  line-height: 20px;
  transition: background-color .15s ease;
}
.oogc-page .fpd a.fbld { background-position: 0 0; }
.oogc-page .fpd a.fclr { background-position: -20px 0; }
.oogc-page .fpd a.fmg { background-position: -40px 0; }
.oogc-page .fpd a.flnk { background-position: -60px 0; }
.oogc-page .fpd a.fqt { background-position: -80px 0; }
.oogc-page .fpd a.fcd { background-position: -100px 0; }
.oogc-page .fpd a.fsml { background-position: -120px 0; }
.oogc-page .fpd a.fat { background-position: -140px 0; }
.oogc-page .fpd a:is(.fbld,.fclr,.fmg,.flnk,.fqt,.fcd,.fsml,.fat):hover,
.oogc-page .fpd a:is(.fbld,.fclr,.fmg,.flnk,.fqt,.fcd,.fsml,.fat):focus-visible {
  background-color: #18384d;
  outline: 2px solid #315875;
  outline-offset: 1px;
}

/* Native editor menus live under #append_parent, outside the editor itself. */
.oogc-page .sllt,.oogc-page .sl_pv,.oogc-page .p_pof.upf,.oogc-page .p_pop.colorbox{
  background:var(--oogc-surface);color:var(--oogc-text);border:1px solid var(--oogc-border);border-radius:8px;box-shadow:var(--oogc-shadow);
}
.oogc-page .sllt{padding:10px!important;box-sizing:border-box;max-width:calc(100vw - 24px)}
.oogc-page .sllt>div{max-width:100%;overflow-x:auto!important}
.oogc-page .sllt .tb{width:auto!important;max-width:100%;height:auto;margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid var(--oogc-border);background:transparent}
.oogc-page .sllt .tb ul{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.oogc-page .sllt .tb li{float:none;margin:0;padding:0;border:0;background:transparent}
.oogc-page .sllt .tb li a{display:block;float:none;margin:0;padding:5px 8px;border:1px solid var(--oogc-border);border-radius:5px;background:var(--oogc-surface-2);color:var(--oogc-text-secondary);line-height:20px;font-size:12px;font-weight:400}
.oogc-page .sllt .tb li.current a{background:#173f5d;color:#d8f0ff;border-color:var(--oogc-focus);font-weight:600}
.oogc-page .sllt .tb li a:hover{background:#173f5d;color:var(--oogc-text);text-decoration:none}
.oogc-page .sllt table,.oogc-page .sllt td{background:transparent;border:0}
.oogc-page .sllt td{border-radius:4px}
.oogc-page .sllt td:hover{background:var(--oogc-surface-2)}
.oogc-page .sllt img{vertical-align:middle;image-rendering:auto}
.oogc-page .sllt_p{margin-top:8px;color:var(--oogc-muted)}
.oogc-page .sllt_p a{display:inline-block;margin:0 0 0 4px;padding:2px 7px;border:1px solid var(--oogc-border);border-radius:4px;background:var(--oogc-surface-2);color:var(--oogc-focus);text-decoration:none}
.oogc-page .sl_pv{padding:8px;margin-top:6px}
.oogc-page .p_pof.upf .p_opt{padding:8px 12px}
.oogc-page .p_pof.upf .px,.oogc-page .p_pof.upf .pt,.oogc-page .p_pof.upf .txtarea{box-sizing:border-box;background:var(--oogc-bg);color:var(--oogc-text);border-color:var(--oogc-border)}
.oogc-page .p_pof.upf .flbc{position:relative;width:24px;height:24px;background:none;border-radius:4px;color:var(--oogc-muted);text-indent:-9999px}
.oogc-page .p_pof.upf .flbc:before{content:'×';position:absolute;inset:0;text-indent:0;text-align:center;font:24px/22px Arial,sans-serif}
.oogc-page .p_pof.upf .flbc:hover{background:var(--oogc-surface-2);color:var(--oogc-text)}
.oogc-page .sllt a:focus-visible,.oogc-page .p_pof.upf a:focus-visible,.oogc-page .colorbox input:focus-visible{outline:2px solid var(--oogc-focus);outline-offset:2px}
