.gc-admin{color:#ecdfbd}.gc-toolbar{display:flex;gap:8px;margin:12px 0;align-items:center}.gc-toolbar input{min-width:0;max-width:250px}.gc-toolbar #gcNew{margin-left:auto}.gc-table{overflow:auto}.gc-table table{width:100%;border-collapse:collapse;min-width:680px;font-size:12px}.gc-table th,.gc-table td{border:1px solid #b89d5945;padding:8px;text-align:left}.gc-table th{background:#97712e22;color:#f1d391}.gc-table small{display:block;margin-top:3px;color:#afa58e}.gc-thumb{height:36px;width:36px;object-fit:cover;vertical-align:middle;margin-right:6px;border-radius:6px}.gc-switch{border:0;background:transparent;padding:3px;cursor:pointer}.gc-status{display:inline-block;border-radius:6px;padding:4px 7px;font-size:11px}.gc-green{color:#70e4a7;background:#247b4b26}.gc-red{color:#f09a8e;background:#a9382d26}.gc-pager{margin-top:12px}.gc-dialog{width:min(680px,calc(100vw - 46px));max-height:85vh;overflow:auto}.gc-form{display:grid;grid-template-columns:1fr 1fr;gap:9px 14px;margin:10px 0}.gc-admin label{display:grid;gap:5px;font-size:12px}.gc-admin input:not([type=checkbox]),.gc-admin select{box-sizing:border-box;width:100%;background:#0a1217;color:#f4e5c0;border:1px solid #bda36365;border-radius:7px;padding:8px;font:inherit}.gc-admin input[readonly]{opacity:.65}.gc-checks{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0}.gc-checks .gc-check{display:flex;align-items:center;gap:4px}.gc-check input{width:15px;height:15px;accent-color:#d9b660}.gc-image{display:flex;gap:12px;align-items:center;margin:12px 0;flex-wrap:wrap}.gc-preview{width:70px;height:70px;object-fit:cover;border:1px solid #d1b67480;border-radius:9px}.gc-admin #gcProblem,.gc-admin #gcStatus{color:#f4c086;font-size:12px}.gc-admin button:disabled{opacity:.45}@media(max-width:500px){.gc-form{grid-template-columns:1fr}.gc-toolbar{flex-wrap:wrap}.gc-toolbar input{flex:1;max-width:none}.gc-toolbar #gcNew{margin-left:0}.gc-dialog{width:calc(100vw - 40px)}.gc-checks{gap:10px}}
.gc-dialog{box-sizing:border-box;width:100%;max-width:680px;min-width:0}.gc-form{grid-template-columns:repeat(2,minmax(0,1fr))}.gc-form label,.gc-image label{min-width:0}.gc-image label{flex:1}.gc-admin input[type=file]{max-width:100%}@media(max-width:500px){.gc-dialog{width:100%}.gc-form{grid-template-columns:minmax(0,1fr)}}
.gc-admin label{margin:0}.gc-dialog .gc-checks{margin:12px 0}.gc-dialog>label{margin:10px 0}
.gc-uu-dialog{max-width:1050px}.gc-admin textarea{box-sizing:border-box;width:100%;min-width:0;resize:vertical;border:1px solid #bda36365;border-radius:7px;background:#0a1217;color:#f4e5c0;padding:8px;font:12px monospace}.gc-uu-dialog .gf-row{gap:8px;flex-wrap:wrap}.gc-uu-dialog .gc-table{max-height:35vh;margin:12px 0}.gc-uu-dialog #gcUUProblem{overflow-wrap:anywhere;color:#f4c086}.gc-uu-dialog>button{margin-top:12px}
.gc-uu-dialog summary{font-size:12px;color:#e4c783;cursor:pointer}.gc-uu-dialog details p{font-size:12px;line-height:1.5}@media(max-width:500px){.gc-uu-dialog h3{font-size:16px}.gc-uu-dialog .gf-row{align-items:start}.gc-uu-dialog #gcUUClose{margin-left:auto}.gc-uu-dialog .gc-bulkbar button{white-space:normal}}
.gc-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;align-items:end;margin:10px 0}.gc-filters select{padding:6px;font-size:12px}.gc-bulkbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:12px 0}.gc-bulkbar>span{color:#ffe1a0}.gc-table:has([data-gc-select]) table{min-width:1060px}.gc-table input[type=checkbox]{width:16px;height:16px;accent-color:#d2b269}.gc-dialog #gcBatchCategoryRow[hidden]{display:none}.gc-dialog p{overflow-wrap:anywhere}@media(max-width:500px){.gc-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}

.gc-hierarchy{display:inline-block;padding:2px 5px;border:1px solid #a68b4866;border-radius:4px;font-size:11px;color:#e9d293;background:#3c2e122e;white-space:nowrap}

/* Compact directory rows and controls; image previews keep editor state intact. */
.gc-admin .gc-table th,.gc-admin .gc-table td{padding:4px 6px;line-height:1.3}.gc-admin .gc-table small{margin-top:1px}.gc-admin .gc-thumb{width:28px;height:28px;margin:0;border-radius:4px}.gc-admin .gc-status{padding:2px 5px;font-size:10px}.gc-admin .gc-table button,.gc-admin .gc-toolbar button,.gc-admin .gc-bulkbar button,.gc-admin .gc-pager button{min-height:24px;padding:3px 7px;line-height:1.2;font-size:11px}.gc-admin .gc-thumb-button{display:inline-flex;align-items:center;justify-content:center;padding:0!important;border:0;background:transparent;cursor:zoom-in;min-height:0!important}.gc-korean-image{display:flex;gap:8px;align-items:center;flex-wrap:wrap;width:100%;border-top:1px solid #b89d5945;padding-top:8px}.gc-image-zoom{position:fixed;inset:0;z-index:200000;background:#000c;display:grid;place-items:center;padding:20px}.gc-image-zoom section{max-width:90vw;max-height:90vh;display:flex;flex-direction:column;align-items:end;gap:10px}.gc-image-zoom img{display:block;max-width:85vw;max-height:75vh;object-fit:contain}.gc-image-zoom button{padding:6px 14px;border:1px solid #c4a969;border-radius:6px;background:#25231b;color:#ffe4ae;cursor:pointer}.gc-image-zoom p{color:#ffe4ae}

.gc-mapping-dialog{max-width:1080px}.gc-mapping-dialog .gc-table{max-height:55vh}.gc-mapping-dialog .gc-filters{grid-template-columns:1fr 1fr 1fr 2fr auto}
.gc-admin .gc-table input[type=checkbox]{min-height:14px;height:14px;width:14px;padding:0;margin:0}.gc-admin .gc-table .gc-switch{min-height:22px;padding:0}.gc-admin .gf-row>button{min-height:26px;padding:4px 8px;font-size:12px}

/* Game editor only: keep category/provider dialogs and save contracts unchanged. */
.gc-dialog.gc-game-editor{max-width:820px;width:100%;padding:0;overflow:auto;max-height:88vh}
.gc-game-editor .gc-editor-header,.gc-game-editor .gc-editor-section,.gc-game-editor .gc-image-grid{margin:0;padding:12px 16px}
.gc-game-editor .gc-editor-header{display:flex;justify-content:space-between;border-bottom:1px solid #b89d5945}.gc-game-editor .gc-editor-header h3{font-size:16px;margin:0}
.gc-game-editor h4{font-size:13px;margin:0 0 10px;color:#efd392}
.gc-game-editor .gc-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
.gc-game-editor input:not([type=checkbox]):not([type=file]),.gc-game-editor select,.gc-game-editor button:not(.gc-thumb-button){height:28px;min-height:28px;padding:3px 8px;font-size:12px;box-sizing:border-box}
.gc-game-editor .gc-checks{margin:12px 0 0}.gc-game-editor .gc-image-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
.gc-game-editor .gc-image-card{border:1px solid #b89d5945;border-radius:7px;padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0}
.gc-game-editor .gc-image-card label{flex:none}.gc-game-editor .gc-image-card button:not(.gc-thumb-button){align-self:start}.gc-game-editor .gc-image-card small{font-size:11px;color:#bfb49d}
.gc-game-editor .gc-image-card input[type=file]{font-size:11px;padding:4px}.gc-game-editor .gc-preview{width:88px;height:88px;object-fit:contain}
.gc-game-editor .gc-remote-image{grid-column:1/-1;font-size:12px}.gc-game-editor summary{cursor:pointer;color:#e4c783;font-size:12px}.gc-game-editor details[open]>summary{margin-bottom:10px}
.gc-game-editor .gc-mapping-summary{font-size:12px;overflow-wrap:anywhere;color:#bfb49d}.gc-game-editor .gc-identities p{font-size:12px}
.gc-game-editor .gc-editor-footer{position:sticky;bottom:0;background:#171b21;border-top:1px solid #b89d5945;padding:10px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;z-index:2}.gc-game-editor .gc-editor-buttons{display:flex;gap:8px;align-items:end;grid-column:2;grid-row:1/3}.gc-game-editor #gcProblem{margin:0;grid-column:1}
@media(max-width:600px){.gc-game-editor .gc-form{grid-template-columns:1fr 1fr}.gc-game-editor .gc-image-grid{grid-template-columns:1fr}.gc-game-editor .gc-editor-footer{grid-template-columns:1fr}.gc-game-editor .gc-editor-buttons{grid-column:1;grid-row:auto;justify-content:flex-end}}

#modal .modal-card:has(>.gc-game-editor){width:min(820px,calc(100vw - 32px));max-width:820px;padding:0;overflow:hidden;max-height:88vh}.gc-game-editor .gc-image-card #gcKoreanImageState{order:0}

/* Compact upload rows: previews stay clickable; upload/save behavior is unchanged. */
.gc-game-editor .gc-image-card{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:6px 10px;align-items:center;padding:10px}
.gc-game-editor .gc-image-card h4{grid-column:1/-1;margin:0 0 3px}
.gc-game-editor .gc-image-card #gcImagePreview,.gc-game-editor .gc-image-card #gcKoreanImagePreview{grid-column:1;grid-row:2/4;align-self:start}
.gc-game-editor .gc-image-card .gc-preview{width:54px;height:54px;border-radius:5px}
.gc-game-editor .gc-image-card>label{grid-column:2/-1;font-size:11px;gap:3px}
.gc-game-editor .gc-image-card>button{grid-column:3;grid-row:3;font-size:11px!important;padding:2px 6px!important;height:24px!important;min-height:24px!important}
.gc-game-editor .gc-image-card #gcKoreanImageState{grid-column:2;grid-row:3;font-size:10px;line-height:1.3}
.gc-game-editor .gc-image-card>small:not(#gcKoreanImageState){display:none}
.gc-game-editor .gc-image-card input[type=file]{padding:2px;font-size:10px;max-width:100%}
.gc-game-editor .gc-image-grid{gap:8px;padding-top:4px;padding-bottom:8px}
@media(max-width:760px){.gc-game-editor .gc-image-grid{grid-template-columns:1fr}}

.gc-game-editor .gc-image-card [id^=gcImagePreview_]{grid-column:1;grid-row:2/4;align-self:start}.gc-game-editor .gc-remote-image{order:5}
