/* Global editor; scoped so player and existing editors keep their layouts. */
.oc-savebar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 20px;background:#eaf3e9;border:1px solid #c7dccb;border-radius:14px;margin-bottom:20px}
.oc-savebar>div,.oc-tabs{display:flex;gap:6px;flex-wrap:wrap}.oc-savebar>span{font-size:12px;font-weight:700;color:#26583c}
.oc-grid{display:grid;grid-template-columns:minmax(280px,360px) minmax(300px,1fr);gap:20px;align-items:start}
.oc-controls h2{font-size:19px}.oc-controls h3{font-size:15px;margin-top:20px}.oc-controls label{font-size:12px;margin:12px 0}.oc-controls input,.oc-controls textarea,.oc-controls select{font-size:14px}.oc-controls textarea{min-height:64px}
.oc-tabs{margin:18px 0}.oc-scopes{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px;padding:12px;border-radius:8px;background:#f1f4ed}
.oc-scopes label,.oc-check{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0!important}
#console-editor-root input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;min-width:18px;width:18px;min-height:18px;height:18px;accent-color:#1e6041;padding:0;box-shadow:none;flex:0 0 18px}
.oc-text-list{max-height:200px;overflow:auto;border:1px solid #d8e1d5;border-radius:9px;margin:10px 0}
.oc-text-list button{display:block;width:100%;text-align:left;font:12px/1.4 system-ui;background:#fffef8;color:#284536;border:0;border-bottom:1px solid #e7eade;padding:10px;cursor:pointer}
.oc-text-list button small{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.5px;color:#849079;margin-bottom:2px}.oc-text-list button.selected{background:#e0efd9;border-left:3px solid #2d6746}
.oc-original{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f0e5;border-radius:8px;padding:12px;font:12px/1.5 system-ui}
.oc-preview{overflow:hidden;position:sticky;top:16px}.oc-preview-header{padding:16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;border-bottom:1px solid #e2dfd1}
.oc-preview-header>div{flex:1}.oc-preview-header small{display:block;font-size:11px;line-height:1.4;color:#71856e;margin-top:4px}.oc-preview-header select{width:auto;font-size:12px;padding:8px;min-height:36px}
.oc-preview-stage{position:relative;background:repeating-linear-gradient(45deg,#e1e8db 0px,#e1e8db 10px,#e7ece2 10px,#e7ece2 20px);padding:10px;overflow:hidden;min-height:200px}
.oc-preview-stage iframe{border:0;border-radius:12px;background:#08382b;transform-origin:top left;max-width:none;box-shadow:0 3px 16px #1235;display:block}.oc-preview>.help{padding:12px 16px;font-size:11px;margin:0;line-height:1.5}
.oc-menu-list{max-height:700px;overflow:auto}.oc-menu-list section{padding:13px 0;border-bottom:1px solid #e2e7dc}.oc-menu-list small{font-size:10px;color:#758a6e}.oc-menu-labels{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:8px}.oc-menu-labels input{min-width:0;font-size:11px!important;min-height:34px;padding:6px}.oc-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.op-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px}.op-grid p{font-size:13px;line-height:1.6}.op-grid .help{font-size:12px}.op-grid h2{margin:0 0 18px}.op-grid input{max-width:220px}
@media(max-width:1060px){.oc-grid{grid-template-columns:310px minmax(250px,1fr);gap:12px}.oc-controls{padding:18px!important}.oc-savebar{flex-wrap:wrap}}
@media(max-width:740px){.oc-grid,.op-grid{grid-template-columns:1fr}.oc-preview{position:static}.oc-savebar{padding:12px}.oc-savebar .btn{font-size:11px}.oc-controls{max-width:100%}.oc-preview-stage{min-height:0}.oc-menu-list{max-height:420px}}
/* Remove ONLY the two ornamental side rails of one's own rack. Row separators stay. */
body.pg-mode.pg-south #tile-rack::before,body.pg-mode.pg-south #tile-rack::after{display:none!important;content:none!important;border:0!important;box-shadow:none!important}
body.pg-mode.pg-south #tile-rack{border-left:0!important;border-right:0!important}
.nav-item[hidden]{display:none!important}
/* A visible error indicator is retained even when its detailed wording is suppressed. */
.console-preview-label{padding:7px;background:#fff7d7;color:#695016;font:12px/1.4 system-ui;border-bottom:1px solid #e1c379}

/* Box visibility removes the element from flow, not just its wording. */
.oc-box-hidden,.oc-copy-empty,.oc-text-empty{display:none!important}
.oc-stake-compact{display:none}
.oc-compact-consent .oc-stake-compact{display:block;margin:0 0 8px;font:600 12px/1.5 system-ui;color:inherit;flex-basis:100%;width:100%}
.oc-compact-consent .stake-bottom{flex-wrap:wrap}
.oc-box-list{max-height:230px;overflow:auto;border:1px solid #d8e1d5;border-radius:9px;margin:10px 0}
.oc-box-list>button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;width:100%;border:0;border-bottom:1px solid #e7eade;padding:11px 10px;background:#fffef8;color:#284536;font:12px/1.45 system-ui;cursor:pointer}
.oc-box-list>button.selected{background:#e0efd9;border-left:3px solid #2d6746}
.oc-box-list>button>small{color:#647960;font-size:10px;white-space:nowrap}
.oc-box-list>p{padding:12px}
.oc-visibility{padding:14px;border:1px solid #b4d1ac;border-radius:10px;background:#eef6e9;min-height:48px}
.oc-box-copies{display:grid;gap:7px;margin-bottom:20px}
.oc-box-copies .btn{text-align:left;white-space:normal;justify-content:flex-start;min-height:38px}
.oc-inspector-setting{margin-top:24px!important;font-size:11px!important;line-height:1.5}
.oc-controls [data-oc=quick-wait]{width:100%;font-size:11px;white-space:normal;margin-top:4px}
.oc-tabs .btn{flex:1 1 42%;min-height:36px}
/* Inspector decoration exists only in the authenticated sample preview. */
.console-preview.oc-pick-boxes [data-oc-box]{outline:1px dashed #76956d;outline-offset:-1px;cursor:pointer}
.console-preview.oc-pick-boxes [data-oc-box]:hover,.console-preview.oc-pick-boxes [data-oc-box].oc-box-selected{outline:2px solid #e99d35;outline-offset:-2px}
.console-preview .oc-hidden-box-hint{display:block;width:100%;padding:8px 10px;border:1px dashed #a2804b;border-radius:7px;background:#f4e7c9;color:#644b21;text-align:left;font:11px/1.4 system-ui;cursor:pointer;margin:4px 0}
.console-preview .oc-hidden-box-hint:focus-visible{outline:2px solid #e99d35}

/* Explicit show also works for the formerly mobile-only rotate hint. */
.mobile-prepare-note.oc-box-shown{display:block!important}
.lobby-hero:has(>.oc-box-hidden):not(:has(>:not(.oc-box-hidden))){display:none}

.oc-controls [data-oc=quick-game-menu]{width:100%;margin-top:8px;font-size:11px}
.robot-exit-values{display:grid;gap:8px;margin:20px 0}
.robot-exit-values>div{display:flex;justify-content:space-between;gap:16px;padding:8px;border-bottom:1px solid #d4dace}
.robot-exit-values dd{font-weight:700;margin:0;white-space:nowrap}
.robot-exit-values .penalty{color:#9c202a;background:#ffeee9;border-radius:6px}
.game-sound-volume input{width:100%}

/* Irreversible full reset: clearly separated from the reporting-period controls. */
.area-reset-panel{margin-top:24px;border:1px solid #c78b76}.area-reset-panel>h2{margin-top:8px}.area-reset-panel>p{max-width:90ch;line-height:1.65}.area-reset-list{margin-top:18px}.area-reset-warning{padding:16px;border:1px solid #bf6a53;border-radius:12px;background:#fff2ed;color:#722e1e;margin-bottom:16px}.area-reset-warning p{margin:8px 0 0}.area-reset-cards{display:grid;gap:12px;max-height:280px;overflow:auto;margin:16px 0}.area-reset-cards>section{padding:14px;border:1px solid #d7decf;border-radius:10px;background:#f6faf3}.area-reset-cards dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.area-reset-cards dl>div{display:flex;justify-content:space-between;gap:8px}.area-reset-cards dt{font-size:12px}.area-reset-cards dd{margin:0;font-weight:700;font-size:13px}.area-reset-cards small{line-height:1.5;display:block}.area-reset-ack{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px!important;line-height:1.5}.area-reset-ack input{appearance:auto!important;min-width:20px!important;width:20px!important;height:20px!important;min-height:20px!important;flex:none;padding:0!important;margin:2px 0 0!important}.area-reset-error:not([hidden]){padding:12px;margin:10px 0;border:1px solid #b86450;color:#7a301f;background:#fff1ec;border-radius:8px}@media(max-width:500px){.area-reset-cards dl{grid-template-columns:1fr}.area-reset-panel{padding:16px}.area-reset-panel>.btn{width:100%;white-space:normal}}
