.rh-context-menu{
  position:fixed;z-index:22000;min-width:210px;padding:3px;background:#c8c8c8;color:#111;
  border:2px solid #f2f2f2;border-right-color:#444;border-bottom-color:#444;
  box-shadow:5px 5px 18px rgba(0,0,0,.55);font:12px Tahoma,Verdana,Arial,sans-serif;user-select:none;
}
.rh-context-item{padding:6px 26px 6px 24px;white-space:nowrap;position:relative;cursor:default}
.rh-context-item:hover:not(.disabled){background:#111;color:#fff}
.rh-context-item.disabled{color:#777}
.rh-context-item .arrow{position:absolute;right:7px}
.rh-context-sep{height:1px;margin:3px 2px;background:#777;border-bottom:1px solid #eee}
.rh-submenu{position:fixed;z-index:22001}

.rh-toast{
  position:fixed;z-index:23000;right:18px;bottom:48px;max-width:min(420px,82vw);padding:9px 12px;
  background:#111;color:#ddd;border:1px solid #777;box-shadow:4px 4px 14px rgba(0,0,0,.55);
  font:12px/1.45 "Courier New",monospace;white-space:pre-wrap;
}

.rh-managed-window{display:block;z-index:18000}
#translatorWin{left:30%;top:15%;width:min(680px,72vw);height:min(475px,68vh)}
#rhInspector{left:38%;top:18%;width:min(520px,70vw);height:min(430px,64vh)}
.rh-extra-menu{height:24px;border-bottom:1px solid #777;padding:4px 7px;font-size:11px;background:#d7d7d7}
.rh-extra-body{height:calc(100% - 50px);background:#ececec;overflow:auto}
.rh-translator-grid{height:100%;display:grid;grid-template-columns:1fr 58px 1fr;gap:8px;padding:10px}
.rh-translator-pane{min-width:0;display:flex;flex-direction:column}
.rh-translator-pane textarea{width:100%;height:100%;resize:none;border:1px inset #888;padding:9px;background:#fff;color:#111;font:15px/1.55 "Courier New",monospace}
.rh-translator-pane textarea.rh-glyphs{font-size:20px;line-height:1.65;letter-spacing:2px}
.rh-translator-controls{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:8px}
.rh-translator-controls button{height:34px;background:#ccc;border:1px solid #fff;border-right-color:#666;border-bottom-color:#666}
.rh-translator-status{height:22px;padding:4px 7px;background:#ddd;border-top:1px solid #999;font:10px "Courier New",monospace;color:#444}

.rh-inspector-tabs{display:flex;gap:2px;padding:7px 7px 0;background:#d4d4d4;border-bottom:1px solid #888}
.rh-inspector-tab{padding:5px 10px;background:#bbb;border:1px solid #777;border-bottom:0;font:11px Tahoma,Verdana,Arial,sans-serif}
.rh-inspector-tab.active{background:#eee;position:relative;top:1px}
.rh-inspector-content{padding:14px;background:#eee;min-height:calc(100% - 38px);font:12px/1.45 Tahoma,Verdana,Arial,sans-serif}
.rh-property-title{font:bold 14px "Courier New",monospace;margin-bottom:12px}
.rh-property-grid{display:grid;grid-template-columns:145px 1fr;gap:6px 10px}
.rh-property-key{color:#555}
.rh-property-value{font-family:"Courier New",monospace;overflow-wrap:anywhere}
.rh-attribute-list{font:12px/1.55 "Courier New",monospace;white-space:pre-wrap;border:1px inset #999;background:#f8f8f3;padding:9px}

.rh-modal-shade{position:fixed;inset:0;z-index:24000;background:rgba(0,0,0,.58);display:flex;align-items:center;justify-content:center}
.rh-modal-box{width:min(520px,88vw);background:#c8c8c8;color:#111;border:2px solid #eee;border-right-color:#444;border-bottom-color:#444;box-shadow:10px 10px 30px rgba(0,0,0,.7)}
.rh-modal-title{height:27px;background:#111;color:#eee;padding:6px 8px;font:bold 12px Tahoma,Verdana,Arial,sans-serif}
.rh-modal-content{padding:18px;font:12px/1.55 "Courier New",monospace;white-space:pre-wrap;background:#eee}
.rh-modal-actions{display:flex;justify-content:flex-end;gap:7px;padding:8px;background:#ccc;border-top:1px solid #888}
.rh-modal-actions button{padding:5px 12px;background:#ccc;border:1px solid #fff;border-right-color:#666;border-bottom-color:#666}

.window.rh-maximized,.rh-managed-window.rh-maximized{left:0!important;top:0!important;width:100%!important;height:calc(100vh - 30px)!important;max-width:none!important;max-height:none!important}
.window.rh-minimized,.rh-managed-window.rh-minimized{display:none!important}

#occupied .occupied-box .rh-occupied-status{margin:13px 0;color:#888}
#occupied .occupied-box .rh-occupied-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
#occupied .occupied-box .rh-occupied-actions button{margin:0;background:#111;color:#ddd;border:1px solid #777;padding:7px 10px;font-family:"Courier New",monospace}

@media (max-width:720px){
  #translatorWin,#rhInspector{left:2vw!important;top:4vh!important;width:96vw!important;height:78vh!important}
  .rh-translator-grid{grid-template-columns:1fr;grid-template-rows:1fr 44px 1fr}
  .rh-translator-controls{flex-direction:row;justify-content:center}
  .rh-translator-controls button{width:80px}
  .rh-property-grid{grid-template-columns:110px 1fr}
  .rh-context-menu{min-width:190px;font-size:13px}
  .rh-context-item{padding-top:9px;padding-bottom:9px}
}
