/* OP.GG-inspired layout, branded independently for CSGOPromoCode; page-local styles. */
.cross-page .opedit{--oe-bg:#191919;--oe-edge:#393939;--oe-text:#f6f6f6;--oe-muted:#b6b6b6;--oe-surface:#252525;color:var(--oe-text);margin:18px 0 28px;font:14px/1.45 Inter,system-ui,sans-serif}
.cross-page .opedit *{box-sizing:border-box}.cross-page .opedit-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.8fr);gap:12px;align-items:start}.cross-page .opedit-main{min-width:0;display:grid;gap:12px}.cross-page .opedit-panel{background:var(--oe-bg);border:1px solid var(--oe-edge);border-radius:12px;padding:15px;min-width:0}.cross-page .opedit-panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.cross-page .opedit-panel-title h2{font-size:17px;line-height:1.3;margin:0;color:#fff}.cross-page .opedit-panel-title span,.cross-page .opedit-panel-title small{font-size:11px;color:var(--oe-muted);font-weight:450}.cross-page .opedit-stage{height:420px;position:relative;overflow:hidden;border-radius:10px;border:1px solid #515151;background:#262626;cursor:crosshair;touch-action:manipulation}.cross-page .opedit-backdrop{position:absolute;inset:0;background-color:#303030;background-position:center;background-size:cover;background-repeat:no-repeat;filter:saturate(1.02) contrast(1.01)}.cross-page #oeCanvas{position:absolute;inset:0;pointer-events:none}.cross-page .opedit-lock{position:absolute;left:16px;bottom:16px;padding:10px 16px;font-size:13px;letter-spacing:0;background:rgba(31,28,28,.72);border:0;border-radius:22px;pointer-events:none;color:#f1f1f1;backdrop-filter:blur(3px)}.cross-page .opedit-scene-head{display:flex;justify-content:space-between;align-items:center;margin:12px 0 8px;font-size:12px;gap:8px}.cross-page .opedit-scene-head span{color:#aaa;text-align:right}.cross-page .opedit-scenes{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.cross-page .opedit-scene{height:56px;min-width:0;cursor:pointer;border:2px solid #444;border-radius:8px;background-position:center;background-size:cover;background-repeat:no-repeat}.cross-page .opedit-scene[aria-pressed=true]{border-color:#fff;box-shadow:0 0 0 1px #fff}.cross-page .opedit-disclaimer{font-size:11px;color:#aaa;margin:10px 0 0;line-height:1.5}.cross-page .opedit button,.cross-page .opedit select,.cross-page .opedit input,.cross-page .opedit textarea{font:inherit}.cross-page .opedit button:not(.opedit-scene):not(.opedit-help){background:#2c2c2c;border:1px solid #555;color:#fff;border-radius:7px;padding:8px 12px;cursor:pointer;font-weight:650}.cross-page .opedit button:hover{filter:brightness(1.2)}.cross-page .opedit button:focus-visible,.cross-page .opedit select:focus-visible,.cross-page .opedit input:focus-visible,.cross-page .opedit textarea:focus-visible,.cross-page .opedit-stage:focus-visible{outline:2px solid #fff;outline-offset:2px}.cross-page .opedit-code-input{display:flex;gap:6px}.cross-page .opedit-code-input input{flex:1;min-width:0}.cross-page .opedit input:not([type=range]):not([type=checkbox]):not([type=color]),.cross-page .opedit select,.cross-page .opedit textarea{background:#111;color:#fff;border:1px solid #484848;border-radius:7px;padding:8px 10px;min-height:38px;max-width:100%}.cross-page .opedit-status{font-size:11px;color:#b9e1be;min-height:15px;margin:8px 0 0}.cross-page .opedit-status.is-error{color:#ffb3a9}.cross-page .opedit-tabs{display:flex;gap:6px;margin-bottom:8px}.cross-page .opedit-tabs button[aria-selected=true]{background:#eee!important;color:#111!important}.cross-page #oeCommands{display:block;width:100%;resize:vertical;min-height:110px;font:12px/1.55 ui-monospace,monospace;white-space:pre}.cross-page .opedit-settings{position:relative}.cross-page .opedit-group{padding:13px 0;border-top:1px solid #333}.cross-page .opedit-group h3{font-size:13px;font-weight:800;color:#fff;margin:0 0 12px}.cross-page .opedit-label,.cross-page .opedit-field-head{display:flex;align-items:center;gap:6px;color:#d6d6d6;font-size:12px;margin-bottom:6px}.cross-page .opedit-help{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;padding:0;background:#404040;color:#fff;border:0;cursor:help;font:11px/1 system-ui}.cross-page .opedit-settings select{width:100%}.cross-page .opedit-switches{display:grid;gap:7px;margin-top:10px}.cross-page .opedit-switch{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;cursor:pointer}.cross-page .opedit-switch input{width:18px;height:18px;accent-color:#fff}.cross-page .opedit-switch abbr,.cross-page .opedit-label abbr{color:#aaa;cursor:help;text-decoration:none}.cross-page .opedit-field{margin-bottom:11px}.cross-page .opedit-range-line{display:flex;gap:9px;align-items:center}.cross-page .opedit-range-line input[type=range]{min-width:0;flex:1;accent-color:#eee}.cross-page .opedit-range-line input[type=number]{width:67px;text-align:center;padding:6px}.cross-page .opedit-colors{display:flex;align-items:end;gap:12px}.cross-page .opedit-colors>input{width:52px;height:41px;cursor:pointer;background:none;border:0;padding:0}.cross-page .opedit-colors label{flex:1;display:grid;gap:4px;font-size:11px}.cross-page .opedit-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.cross-page .opedit-channels label{min-width:0;font-size:11px;display:grid;gap:4px}.cross-page .opedit-channels input{width:100%;min-width:0}.cross-page .opedit-quiet{font-size:12px!important;padding:5px 9px!important}
@media(max-width:900px){.cross-page .opedit-grid{grid-template-columns:1fr}.cross-page .opedit-stage{height:360px}}@media(max-width:500px){.cross-page .opedit-panel{padding:11px}.cross-page .opedit-stage{height:245px}.cross-page .opedit-code-input{flex-wrap:wrap}.cross-page .opedit-code-input input{flex-basis:100%}.cross-page .opedit-code-input button{flex:1}.cross-page .opedit-scene{height:38px}.cross-page .opedit-scenes{gap:4px}.cross-page .opedit-panel-title h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){.cross-page .opedit *{animation:none!important;transition:none!important}}

/* Compact site-integrated refinements, November 2026 */
@media (min-width:901px){
  .cross-page .opedit-grid{align-items:stretch}
  .cross-page .opedit-main{position:sticky;top:18px;align-self:start;z-index:2}
}
.cross-page .opedit-command-details{margin-top:12px;border-top:1px solid var(--oe-edge)}
.cross-page .opedit-command-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:12px 0 5px;color:var(--oe-text);font-weight:750;font-size:13px;user-select:none}
.cross-page .opedit-command-summary::-webkit-details-marker{display:none}
.cross-page .opedit-command-summary::after{content:'';width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .16s ease;margin-right:4px}
.cross-page .opedit-command-details[open] .opedit-command-summary::after{transform:rotate(225deg)}
.cross-page .opedit-command-inner{padding:10px 0 1px}
.cross-page .opedit-command-inner .opedit-panel-title{margin-bottom:9px}
.cross-page .opedit-command-inner .opedit-panel-title h2{font-size:12px;color:var(--oe-muted)}
.cross-page .opedit-command-inner #oeCommands{min-height:95px;max-height:220px}
.cross-page .opedit-color-presets{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px}
.cross-page .opedit button.opedit-color-preset{display:block!important;flex:0 0 34px;width:34px;height:34px;padding:0!important;border-radius:50%!important;background:var(--preset)!important;border:2px solid #666!important;box-shadow:0 0 0 2px #202020,inset 0 0 0 1px #ffffff70;transition:transform .15s,border-color .15s,box-shadow .15s}
.cross-page .opedit button.opedit-color-preset:hover{transform:scale(1.07);filter:none!important}
.cross-page .opedit button.opedit-color-preset[aria-pressed=true]{border-color:#fff!important;box-shadow:0 0 0 3px #fff6, inset 0 0 0 1px #0006}
.cross-page .opedit-switch{min-height:34px}
.cross-page .opedit-switch input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;width:38px;height:22px;flex:0 0 38px;border:1px solid #646464;border-radius:22px;background:#383838;margin:0;cursor:pointer;transition:background .16s,border-color .16s}
.cross-page .opedit-switch input[type=checkbox]::before{content:'';position:absolute;width:16px;height:16px;left:2px;top:2px;background:#d4d4d4;border-radius:50%;transition:transform .16s,background .16s;box-shadow:0 1px 3px #0009}
.cross-page .opedit-switch input[type=checkbox]:checked{background:#eee;border-color:#eee}
.cross-page .opedit-switch input[type=checkbox]:checked::before{transform:translateX(16px);background:#191919}
.cross-page .opedit-switch input[type=checkbox]:focus-visible{outline:2px solid white;outline-offset:3px}
.cross-page .opedit select{appearance:none;-webkit-appearance:none;padding-right:36px!important;background-image:linear-gradient(45deg,transparent 50%,#ddd 50%),linear-gradient(135deg,#ddd 50%,transparent 50%)!important;background-position:calc(100% - 18px) 50%,calc(100% - 12px) 50%!important;background-size:6px 6px!important;background-repeat:no-repeat!important}
.cross-page .opedit-range-line input[type=range]{cursor:pointer;accent-color:#fff}
@media(max-width:900px){.cross-page .opedit-main{position:static}}
@media(prefers-reduced-motion:reduce){.cross-page .opedit-command-summary::after,.cross-page .opedit-switch input[type=checkbox],.cross-page .opedit-switch input[type=checkbox]::before,.cross-page .opedit button.opedit-color-preset{transition:none}}

.cross-page .opedit-stage::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.08) 70%,rgba(0,0,0,.1));pointer-events:none}
@media(max-width:700px){.cross-page .opedit-stage{height:300px}.cross-page .opedit-lock{left:12px;bottom:12px;font-size:12px;padding:8px 13px}}

/* Main Preview Canvas must fill the entire stage, not use its 300x150 intrinsic size. */
.cross-page #oeStage #oeCanvas{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;z-index:2;pointer-events:none}
.cross-page #oeStage #oeBackdrop{position:absolute;inset:0;background-color:#252525;background-size:cover;background-position:center}
