.lfmt-switcher{position:relative;display:inline-block}.lfmt-switcher-button{display:flex;align-items:center;gap:8px;background:transparent;border:0;cursor:pointer;font:inherit;padding:8px 10px}.lfmt-flag{font-size:1.15em;line-height:1}.lfmt-chevron{font-size:.8em}.lfmt-menu{display:none;position:absolute;z-index:99999;right:0;top:100%;min-width:150px;background:#fff;border:1px solid #ddd;border-radius:7px;box-shadow:0 8px 24px rgba(0,0,0,.14);padding:5px}.lfmt-switcher.open .lfmt-menu{display:block}.lfmt-menu a{display:flex;align-items:center;gap:9px;padding:8px 10px;text-decoration:none;color:#222;white-space:nowrap;border-radius:4px}.lfmt-menu a:hover,.lfmt-menu a.active{background:#f2f2f2}
html.lfmt-editing body{margin-right:390px!important}.lfmt-selectable{cursor:crosshair!important}.lfmt-hover{outline:2px dashed #2271b1!important;outline-offset:2px}.lfmt-selected{outline:3px solid #2271b1!important;outline-offset:2px}#lfmt-editor{position:fixed;z-index:2147483646;top:32px;right:0;bottom:0;width:390px;background:#fff;color:#1d2327;box-shadow:-8px 0 28px rgba(0,0,0,.18);font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;text-align:left}#lfmt-editor *{box-sizing:border-box}.lfmt-head{height:68px;padding:13px 16px;background:#1d2327;color:#fff;display:flex;justify-content:space-between;align-items:center}.lfmt-head strong{display:block;font-size:17px}.lfmt-head small{display:block;opacity:.72}.lfmt-head a{color:#fff;text-decoration:none;font-size:28px}.lfmt-toolbar{height:38px;padding:8px 16px;background:#f0f0f1;border-bottom:1px solid #dcdcde;display:flex;justify-content:space-between;align-items:center;font-size:12px}.lfmt-toolbar #lfmt-state{font-weight:700;color:#646970}.lfmt-dirty .lfmt-toolbar #lfmt-state{color:#b32d2e}.lfmt-shortcut{color:#646970}.lfmt-body{padding:18px;overflow:auto;height:calc(100% - 106px)}.lfmt-body label{display:block;font-weight:600;margin:0 0 6px}.lfmt-body select,.lfmt-body textarea{width:100%;padding:9px;border:1px solid #8c8f94;border-radius:4px;margin:0 0 12px;background:#fff;color:#1d2327}.lfmt-dirty textarea{border-color:#d63638;box-shadow:0 0 0 1px #d63638}.lfmt-source{padding:10px 12px;background:#f6f7f7;border:1px solid #dcdcde;border-radius:4px;margin-bottom:16px;max-height:180px;overflow:auto;white-space:pre-wrap}.lfmt-meta{display:flex;justify-content:flex-end;color:#646970;font-size:12px;margin:-6px 0 14px}.lfmt-actions{display:flex;gap:7px;flex-wrap:wrap}.lfmt-actions button{padding:8px 11px;border-radius:4px;border:1px solid #8c8f94;cursor:pointer;background:#f6f7f7}.lfmt-actions button.primary{background:#2271b1;border-color:#2271b1;color:#fff}.lfmt-actions button:disabled{opacity:.45;cursor:not-allowed}#lfmt-status{min-height:22px;margin-top:12px;color:#008a20;font-weight:600}#lfmt-status.error{color:#b32d2e}.lfmt-help{font-size:12px;color:#50575e;border-top:1px solid #ddd;margin-top:14px;padding-top:14px}.lfmt-help ul{margin:7px 0 0 18px}.lfmt-credit{font-size:11px;color:#8c8f94;margin-top:18px}.lfmt-credit a{color:inherit}@media(max-width:782px){#lfmt-editor{top:46px;width:100%;max-width:390px}html.lfmt-editing body{margin-right:0!important}}


/* LocaleFlow 3.3 floating switcher */
.lfmt-floating{
  position:fixed;
  z-index:999998;
  pointer-events:auto;
}
.lfmt-floating.lfmt-pos-top-left{top:var(--lfmt-float-y,20px);left:var(--lfmt-float-x,20px)}
.lfmt-floating.lfmt-pos-top-right{top:var(--lfmt-float-y,20px);right:var(--lfmt-float-x,20px)}
.lfmt-floating.lfmt-pos-bottom-left{bottom:var(--lfmt-float-y,20px);left:var(--lfmt-float-x,20px)}
.lfmt-floating.lfmt-pos-bottom-right{bottom:var(--lfmt-float-y,20px);right:var(--lfmt-float-x,20px)}
.lfmt-floating.lfmt-has-shadow .lfmt-switcher-button{box-shadow:0 8px 28px rgba(0,0,0,.16)}
.lfmt-floating .lfmt-menu{min-width:100%;white-space:nowrap}
.lfmt-floating.lfmt-pos-bottom-left .lfmt-menu,
.lfmt-floating.lfmt-pos-bottom-right .lfmt-menu{top:auto;bottom:calc(100% + 7px)}
.lfmt-switcher-button:focus-visible,.lfmt-menu a:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(max-width:782px){
  .lfmt-floating.lfmt-hide-mobile{display:none!important}
  .lfmt-floating{--lfmt-float-x:12px!important;--lfmt-float-y:12px!important}
}

/* LocaleFlow 3.4 editor enhancements */
.lfmt-code-label{text-transform:uppercase;font-weight:600;letter-spacing:.04em}
#lfmt-editor .lfmt-head-actions{display:flex;align-items:center;gap:6px}
#lfmt-editor .lfmt-head-actions button,#lfmt-editor .lfmt-head-actions a{appearance:none;border:0;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;text-decoration:none;padding:4px 7px}
#lfmt-editor.lfmt-minimized{height:auto!important;min-height:0!important}
#lfmt-editor.lfmt-minimized .lfmt-toolbar,#lfmt-editor.lfmt-minimized .lfmt-body{display:none!important}
#lfmt-editor .lfmt-progress-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px;font-size:12px}
#lfmt-editor .lfmt-search{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:14px}
#lfmt-editor .lfmt-search input{grid-column:1/-1;width:100%;box-sizing:border-box}
#lfmt-editor .lfmt-search button{font-size:11px}
.lfmt-untranslated{outline:2px dashed #d63638!important;outline-offset:2px!important}
.lfmt-search-match{outline:3px solid #2271b1!important;outline-offset:2px!important}
#lfmt-editor .lfmt-preview{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:14px;font-size:11px}
#lfmt-editor .lfmt-preview button.active{font-weight:700}
html[data-lfmt-preview="tablet"] body{max-width:768px!important;margin-left:auto!important;margin-right:auto!important;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
html[data-lfmt-preview="mobile"] body{max-width:390px!important;margin-left:auto!important;margin-right:auto!important;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
@media(max-width:782px){
  #lfmt-editor .lfmt-progress-row{align-items:flex-start;flex-direction:column}
  #lfmt-editor .lfmt-search{grid-template-columns:1fr}
  #lfmt-editor .lfmt-search input{grid-column:auto}
}

/* LocaleFlow 3.4.1 — compound/rich translation units */
#lfmt-editor .lfmt-rich-editor{
  box-sizing:border-box;width:100%;min-height:150px;max-height:330px;overflow:auto;
  padding:12px;border:1px solid #8c8f94;border-radius:4px;background:#fff;color:#2c3338;
  font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  white-space:pre-wrap;outline:none;
}
#lfmt-editor .lfmt-rich-editor:focus{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1}
#lfmt-editor.lfmt-dirty .lfmt-rich-editor{border-color:#dba617}
#lfmt-editor .lfmt-rich-hint{margin:6px 0 8px;color:#646970;font-size:12px;line-height:1.4}
#lfmt-editor .lfmt-rich-editor strong,#lfmt-editor .lfmt-rich-editor b{font-weight:700}
#lfmt-editor .lfmt-rich-editor em,#lfmt-editor .lfmt-rich-editor i{font-style:italic}
.lfmt-editing .lfmt-selectable .lfmt-selectable{outline:none!important}


/* LocaleFlow 3.4.2 — blank rich-translation field */
#lfmt-editor .lfmt-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #7b7b7b;
  pointer-events: none;
}
#lfmt-editor .lfmt-copy-format {
  margin-top: 7px;
  padding: 5px 9px;
  font-size: 12px;
  cursor: pointer;
}
