.cheat-shortcut{top:25px;left:111px}
.cheat-desktop-icon{position:relative;width:48px;height:48px;filter:drop-shadow(1px 2px 1px #19354d70)}
.cheat-desktop-icon img{display:block}
.cheat-window{width:min(430px,calc(100% - 40px));height:min(640px,calc(100% - 20px));left:72%;top:50%;z-index:8;font-size:12px}
.cheat-caption-icon{object-fit:contain;flex:none}

.cheat-body{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;padding:8px;overflow:auto;outline:none}
.cheat-header{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid;border-color:#fff #aca899 #aca899 #fff;background:linear-gradient(#f7f6ef,#e4e1d2)}
.cheat-brand{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.cheat-brand strong{font-size:17px;color:#1e2063}
.cheat-brand small{color:#555}

/* Big on/off switch */
.cheat-switch{display:flex;flex-direction:column;align-items:center;gap:3px;font-weight:bold;font-size:11px;color:#7a2020;cursor:pointer;flex:none}
.cheat-switch input{position:absolute;opacity:0;width:1px;height:1px}
.cheat-switch-track{position:relative;width:46px;height:22px;border-radius:11px;background:linear-gradient(#bbb,#ddd);border:1px solid #777;box-shadow:inset 1px 1px 3px #0004}
.cheat-switch-track span{position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:linear-gradient(#fff,#d6d3c4);border:1px solid #777;transition:left .15s}
.cheat-switch input:checked+.cheat-switch-track{background:linear-gradient(#3fb53a,#7fdc6f)}
.cheat-switch input:checked+.cheat-switch-track span{left:26px}
.cheat-switch input:focus-visible+.cheat-switch-track{outline:1px dotted #000;outline-offset:2px}
.cheat-window.is-enabled .cheat-switch{color:#1e7a1a}

.cheat-group{margin:0;padding:6px 8px 8px;border:1px solid #d0d0bf;border-radius:3px}
.cheat-group legend{padding:0 3px;color:#0046d5}
.cheat-rows{display:grid;gap:2px;max-height:min(300px,38vh);overflow:auto;padding-right:2px}
.cheat-row{display:flex;align-items:center;gap:9px;padding:5px 6px;border-radius:2px;cursor:pointer}
.cheat-row:hover{background:#fff}
.cheat-row input{margin:0;accent-color:#246be0;flex:none}
.cheat-row img{flex:none;object-fit:contain}
.cheat-row span{display:flex;flex-direction:column;gap:2px}
.cheat-row small{color:#666}
.cheat-window:not(.is-enabled) .cheat-row{opacity:.6}
.cheat-speed{display:flex;align-items:center;gap:10px}
.cheat-speed input{flex:1;accent-color:#246be0}
.cheat-speed output{min-width:32px;font-weight:bold;text-align:right}
.cheat-activity{flex:1;min-height:110px;display:flex;flex-direction:column}
.cheat-log{flex:1;min-height:0;margin:0;padding:4px 6px;overflow:auto;list-style:none;background:#fff;border:1px solid;border-color:#7f9db9;font:11px/1.45 "Lucida Console","Courier New",monospace}
.cheat-log time{color:#888}

@media(max-width:600px){
  .desktop-shortcut.cheat-shortcut{top:104px;left:78px}
  .cheat-window{left:50%;top:55%;width:calc(100% - 16px);height:calc(100% - 126px);min-height:300px}
  .cheat-brand small{display:none}
}
@media(max-height:510px){
  .cheat-shortcut{left:106px;top:105px}
  .cheat-window{top:50%;height:calc(100% - 16px)}
}
