.game-library-scopes{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:0 0 auto}.mobile-header-actions{display:none}
.review-queue-button{min-height:44px;padding:9px 13px;border:1px solid #56636a;border-radius:9px;background:transparent;color:var(--muted);font:750 11px Manrope;cursor:pointer}
.review-queue-button:hover,.review-queue-button:focus-visible,.review-queue-button.active{border-color:var(--lime);color:var(--text);outline:none}
.review-queue-button.active{background:#29343a}
.game-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.game-card-title h2{min-width:0}
.game-status{display:inline-flex;align-items:center;width:max-content;padding:5px 8px;border:1px solid #657078;border-radius:999px;color:#d8dee2;background:#20272c;font:700 9px 'DM Mono';letter-spacing:.45px;text-transform:uppercase;white-space:nowrap}
.game-status.governance-attention{border-color:#bc713d;background:#392418;color:#ffc08c}.game-status.governance-waiting{border-color:#477fa1;background:#172a36;color:#a7dcf7}.game-status.governance-success{border-color:#4c806a;background:#1f302a;color:#a7e3c8}.game-status.governance-neutral{border-color:#657078;background:#20272c;color:#d8dee2}
.game-creator{color:inherit;font:650 10px 'DM Mono';opacity:.72}
.game-detail-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:12px;color:#9eaaae}.game-governance-summary{display:grid;gap:7px;max-width:680px;margin-top:22px;padding:13px 15px;border:1px solid #657078;border-left-width:4px;border-radius:10px;background:#20272c}.game-governance-summary>div{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.game-governance-summary p{margin:0;color:#c4ccd0;font-size:12px;line-height:1.5}.game-governance-turn{color:#aeb8bd;font:700 9px 'DM Mono';letter-spacing:.35px;text-transform:uppercase}.game-governance-summary.governance-attention{border-color:#bc713d;background:#2b201a}.game-governance-summary.governance-attention .game-governance-turn{color:#ffc08c}.game-governance-summary.governance-waiting{border-color:#477fa1;background:#17252e}.game-governance-summary.governance-waiting .game-governance-turn{color:#a7dcf7}.game-governance-summary.governance-success{border-color:#4c806a;background:#1d2b26}.game-governance-summary.governance-success .game-governance-turn{color:#a7e3c8}
.game-creator-control{display:grid;grid-template-columns:minmax(0,260px) auto;align-items:end;gap:10px;margin:18px 0 4px;padding:14px;border:1px solid #d9ddd7;border-radius:10px;background:#f6f7f3}
.game-creator-control .creator-field{display:grid;gap:6px;margin:0;color:#536057;font:700 10px 'DM Mono';letter-spacing:.45px;text-transform:uppercase}
.game-creator-control select{width:100%;min-width:0}
.game-creator-control button{min-height:44px;white-space:nowrap}
.game-creator-control .creator-help{grid-column:1/-1;margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.review-return{border-color:#b9786d;color:#7d3024}
.game-review-feedback{display:grid;gap:7px;margin:18px 0 4px;padding:14px 16px;border:1px solid #9f7a50;border-left:4px solid #e1b35d;border-radius:10px;background:#2a241b;color:#f5ead1}
.game-review-feedback .eyebrow{margin:0;color:#e9bd68}
.game-review-feedback strong{font:700 11px 'DM Mono';letter-spacing:.25px;color:#f0d49d}
.game-review-feedback>p:last-child{margin:0;white-space:pre-wrap;line-height:1.55}
.game-shared-notice{max-width:620px;margin:16px 0 0;padding:10px 12px;border-left:3px solid #69767d;background:#242b2f;color:#cbd1d4;font-size:12px;line-height:1.5}
.request-changes-panel{display:grid;gap:10px;max-width:620px;margin:16px 0 0;padding:15px;border:1px solid #9f7a50;border-radius:10px;background:#211d18}
.request-changes-panel[hidden]{display:none}
.request-changes-panel label{font:700 10px 'DM Mono';letter-spacing:.45px;text-transform:uppercase;color:#f0d49d}
.request-changes-panel textarea{min-height:110px;resize:vertical}
.request-changes-panel .form-error{margin:0}
.request-changes-actions{display:flex;gap:8px;flex-wrap:wrap}
.destructive-action{margin-left:auto;border-color:#9f665e;color:#792f26}
.field-help,.field-help-block{color:var(--muted);font-size:11px;line-height:1.45}
.field-help{margin-top:-3px}
.field-help-block{margin:-2px 0 8px}
.legacy-role-warning,.form-notice{border:1px solid #8e7040;border-radius:8px;background:#2b261b;color:#f4d99a;padding:9px 11px;font-size:11px;line-height:1.45}
.legacy-role-warning{margin:0}
.form-notice{margin:0 0 20px}
.game-revision-marker{display:inline-flex;align-items:center;width:max-content;padding:4px 7px;border:1px solid #9b7135;border-radius:999px;background:#30271a;color:#efc77d;font:750 9px 'DM Mono';text-transform:uppercase}.game-revision-marker.revision-accepted{border-color:#4e8871;background:#20372f;color:#a7e3c8}.game-revision-marker.revision-declined{border-color:#9b675d;background:#3b2522;color:#f2b7aa}.game-revision-marker.revision-returned{border-color:#8a62b6;background:#2b2038;color:#d5b4f4}
.creator-revision-panel{display:grid;gap:16px;max-width:760px;margin:20px 0;padding:20px;border:1px solid #88683a;border-left:4px solid #d4a24d;border-radius:12px;background:linear-gradient(145deg,#24201a,#181a1c);color:#eee8dc}.creator-revision-panel>.eyebrow,.creator-revision-panel h2,.creator-revision-panel h3,.creator-revision-panel p{margin:0}.creator-revision-panel>.eyebrow{color:#e5b55e}.creator-revision-panel h2{color:#fff1d6}.creator-revision-panel h3{margin-bottom:8px;color:#f1d39b;font-size:13px}.creator-revision-panel section>p,.creator-revision-panel li{color:#eee8dc;line-height:1.55}.creator-revision-panel ul{display:grid;gap:6px;margin:0;padding-left:20px}.creator-revision-changes{display:grid;gap:9px}.creator-revision-changes article{display:grid;gap:8px;padding:12px;border:1px solid #51493e;border-radius:9px;background:#1b1d1f}.creator-revision-changes h4,.creator-revision-changes p{margin:0}.creator-revision-changes>article>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.creator-revision-changes span{display:grid;gap:4px;padding:9px;border-radius:7px;background:#242526;white-space:pre-wrap;line-height:1.5}.creator-revision-changes small{color:#a69d8f;font:700 8px 'DM Mono';text-transform:uppercase}.creator-revision-changes p{color:#bdb5a8;font-size:11px}.creator-revision-note{display:grid;gap:6px;color:#e7d2aa;font:700 10px 'DM Mono';text-transform:uppercase}.creator-revision-note textarea{resize:vertical}.creator-revision-actions{display:flex;gap:8px;flex-wrap:wrap}.creator-revision-panel>small{color:#afa697;line-height:1.5}.owner-revision-status{display:grid;gap:5px;max-width:680px;margin:18px 0 2px;padding:13px 15px;border:1px solid #80643a;border-left:4px solid #d4a24d;border-radius:9px;background:#29231a;color:#efe4cd}.owner-revision-status p{margin:0;color:#c7bdac;line-height:1.5}.owner-revision-status.response-accepted{border-color:#4c806a;background:#1f302a}.owner-revision-status.response-declined{border-color:#946056;background:#352321}.owner-revision-status.response-stale{border-color:#667078;background:#282d30}.owner-revision-status.governance-waiting{border-color:#477fa1;background:#17252e;color:#cdeeff}.owner-revision-status.governance-waiting p{color:#b8ced9}.owner-revision-status.governance-attention{border-color:#bc713d;background:#2b201a;color:#ffe0c2}.owner-revision-status.governance-attention p{color:#dfc2a8}
@media(max-width:900px){.mobile-header-actions{display:flex;align-items:center;gap:7px;grid-column:2;grid-row:1}.mobile-header-actions .mobile-beast{grid-column:auto;grid-row:auto}.sidebar-account{grid-column:3}}
@media(max-width:620px){.mobile-header-actions{grid-column:2;grid-row:1;justify-self:end}.mobile-header-actions .mobile-beast{width:48px;min-width:48px}.sidebar-account{grid-column:1/-1}.library-scope-row .game-library-scopes{width:100%;justify-content:stretch}.game-library-scopes .library-scope-control{flex:1}.review-queue-button{width:100%}.detail-actions .destructive-action{margin-left:0}.game-card-title{padding-right:4px}.game-creator-control{grid-template-columns:1fr}.game-creator-control .creator-help{grid-column:1}.game-creator-control button{width:100%}.request-changes-actions>*{flex:1;min-height:44px}.game-review-feedback{padding:12px}.creator-revision-panel{padding:15px}.creator-revision-changes>article>div{grid-template-columns:1fr}.creator-revision-actions>*{width:100%;min-height:44px}}
@media(max-width:350px){.mobile-header-actions{gap:5px}.mobile-header-actions .mobile-beast{width:44px;min-width:44px}}

/* Explicit stage text and dated history remain legible in either theme. */
.review-queue-stages{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,1.35fr);align-items:end;gap:22px;margin:0 0 24px;padding:0 0 22px;border-bottom:1px solid var(--divider)}
.review-queue-stages h2,.review-queue-stages p{margin:0}.review-queue-stages h2{margin-top:3px;font:800 calc(1.35rem * var(--text-display-scale))/1.2 var(--font-body)}.review-queue-stages>div:first-child>p:last-child{max-width:42rem;margin-top:7px;color:var(--text-secondary);font-size:calc(.8125rem * var(--text-body-scale));line-height:1.5}
.review-queue-stage-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.review-queue-stage-tabs button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:48px;padding:9px 10px;border:1px solid var(--divider);border-radius:7px;background:var(--surface-elevated);color:var(--text-secondary);font:700 calc(.75rem * var(--text-chrome-scale))/1.35 var(--font-body);text-align:left;cursor:pointer}
.review-queue-stage-tabs button:hover{border-color:var(--border-strong);background:var(--interactive-hover);color:var(--text-primary)}.review-queue-stage-tabs button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.review-queue-stage-tabs button.active{border-color:var(--accent-pink);background:var(--control-selected-bg,var(--surface-elevated));color:var(--text-primary)}
.review-queue-stage-tabs button span{min-width:0;overflow-wrap:anywhere}.review-queue-stage-tabs button strong{display:grid;flex:0 0 auto;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:var(--surface-primary);color:var(--text-primary);font:800 calc(.6875rem * var(--text-metadata-scale))/1 var(--font-body)}.review-queue-stage-tabs button.active strong{background:var(--accent-pink);color:#180b15}
@media(max-width:760px){.review-queue-stages{grid-template-columns:1fr;align-items:start;gap:14px}.review-queue-stage-tabs{width:100%}}
@media(max-width:430px){.review-queue-stage-tabs{grid-template-columns:1fr}.review-queue-stage-tabs button{min-height:44px}.review-queue-stages{margin-bottom:20px;padding-bottom:18px}}
.game-queue-decision{margin:12px 0;padding:12px;border:1px solid #bc713d;border-left-width:4px;border-radius:8px;background:#2b201a;color:#ffe0c2;min-width:0}
.game-queue-decision>p{margin:0;color:#ffe0c2;font-size:12px;line-height:1.55;font-weight:650}
.game-decision-history{display:grid;gap:6px;margin:10px 0 0;padding-left:18px;color:#eee8dc;font-size:12px;line-height:1.5}
.game-decision-history li{padding-left:2px}.game-decision-history time{display:block;color:#d6cdc0;font-size:11px}
.game-queue-decision .game-decision-history{color:#eee8dc}.game-list-copy .game-queue-decision{max-width:680px}

.game-card .game-queue-decision>p{display:block;overflow:visible;-webkit-line-clamp:unset;color:#ffe0c2}
html[data-theme="light"] .game-queue-decision{background:var(--surface-primary);border-color:#b9682f;color:#593213}
html[data-theme="light"] .game-queue-decision>p{color:#593213}
html[data-theme="light"] .game-decision-history{color:var(--text-secondary)}
html[data-theme="light"] .game-decision-history time{color:#526078}

.game-card>.game-queue-decision{grid-column:1/-1;margin:10px 0}
.detail-hero [data-review-state-changed],.detail-hero [data-review-refresh-error]{background:#2b261b;color:#f4d99a}
html[data-theme="light"] .game-governance-summary.governance-attention{background:var(--surface-primary);color:#593213}
html[data-theme="light"] .game-governance-summary.governance-waiting{background:var(--surface-primary);color:#14506d}
html[data-theme="light"] .game-governance-summary.governance-success{background:var(--surface-primary);color:#236247}
html[data-theme="light"] .game-governance-summary .game-governance-turn{color:var(--text-secondary)}
html[data-theme="light"] .owner-revision-status.response-accepted{background:var(--surface-primary);color:#236247}
html[data-theme="light"] .owner-revision-status.response-declined{background:var(--surface-primary);color:#593213}
html[data-theme="light"] .owner-revision-status.governance-attention{background:var(--surface-primary);color:#593213}
html[data-theme="light"] .owner-revision-status.governance-waiting{background:var(--surface-primary);color:#14506d}
html[data-theme="light"] .detail-hero [data-review-state-changed],html[data-theme="light"] .detail-hero [data-review-refresh-error]{background:var(--pastel-yellow);color:#593213}

#decline-submission-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;border:1px solid var(--line);border-radius:16px;padding:24px;background:#fff;color:#172b24}
#decline-submission-dialog::backdrop{background:rgba(0,0,0,.6)}
#decline-submission-dialog textarea{display:block;width:100%;min-height:100px;margin:8px 0 16px}
#decline-submission-dialog p{line-height:1.5;color:inherit}
[data-theme="dark"] #decline-submission-dialog{background:#152028;color:#edf3ef}
#decline-submission-dialog h2{font-size:24px;letter-spacing:normal;line-height:1.2}

#decline-submission-dialog button.primary-button{background:#8b1d45;color:#fff;border:1px solid #8b1d45}
#decline-submission-dialog button.ghost-button{background:#edf3ef;color:#172b24;border:1px solid #a8b9ae}
#decline-submission-dialog textarea{background:#fff;color:#172b24}

/* Owner actions must remain reachable on narrow Game detail screens. */
.detail-hero .detail-actions{flex-wrap:wrap}
.detail-hero .detail-actions>*{max-width:100%;flex-shrink:0}

/* Explicit save preflight is readable in both appearances. */
#game-save-action{background:var(--surface-secondary);color:var(--text-primary);border-color:var(--border-primary)}
