.face-editor-sheet-preview-card{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:8px;
  border-radius:10px;
  border:1px solid rgba(132,209,235,.18);
  background:rgba(8,18,28,.72);
  color:#eefbff;
  text-align:left;
  cursor:pointer;
}
.face-editor-sheet-preview-card.is-active{
  border-color:rgba(255,212,0,.95);
  box-shadow:0 0 0 2px rgba(255,212,0,.28);
}
.face-editor-sheet-preview-thumb{
  width:100%;
  aspect-ratio:1/1;
  border:1px solid rgba(255,255,255,.14);
  border-radius:8px;
  background:rgba(255,255,255,.04);
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  image-rendering:pixelated;
}
.face-editor-sheet-preview-label{font-size:11px;opacity:.9;}
.face-editor-sheet-preview-name{font-size:12px;font-weight:600;word-break:break-word;}
.face-editor-sheet-preview-sub{font-size:11px;opacity:.78;word-break:break-word;}
.face-editor-sheet-preview-empty{
  padding:10px 12px;
  border:1px dashed rgba(132,209,235,.18);
  border-radius:10px;
  color:#d8eef4;
  background:rgba(8,18,28,.42);
}

@media (max-width: 1100px) {
  .face-editor-compare-wrap { grid-template-columns: 1fr; }
}


#face-editor-override-jump-select { min-width: 220px; max-width: 280px; }
.face-editor-summary-jump { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: inherit; border-radius: 999px; padding: 2px 8px; cursor: pointer; }
.face-editor-summary-jump:hover { background: rgba(255,255,255,0.14); }
.face-editor-session-modified { box-shadow: inset 0 0 0 2px rgba(90, 200, 120, 0.9); }
.face-editor-session-cleared { box-shadow: inset 0 0 0 2px rgba(255, 120, 120, 0.95); }
.face-editor-override-legend .face-editor-legend-dot-modified, .face-editor-override-legend .face-editor-legend-dot-cleared { display:inline-block; width:10px; height:10px; border-radius:50%; margin:0 4px 0 10px; vertical-align:middle; }
.face-editor-override-legend .face-editor-legend-dot-modified { background: rgba(90, 200, 120, 0.95); }
.face-editor-override-legend .face-editor-legend-dot-cleared { background: rgba(255, 120, 120, 0.95); }


/* Phase 10 duplicate root-shell block removed. The stronger Phase 11 contract below is authoritative. */

.results-shell-root {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.results-shell-root > .panel-header {
  flex: 0 0 auto !important;
}

.results-shell-root > .panel-body.global-results-panel-body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 12px !important;
  overflow: hidden !important;
}

.results-shell-root #global-results-banner,
.results-shell-root #global-results-title,
.results-shell-root #global-results-page-indicator,
.results-shell-root #global-results-footer {
  flex: 0 0 auto;
}

.results-shell-root #global-results-body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 18px 16px !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}

.results-shell-root #global-results-list {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.results-shell-root .results-page {
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  flex: 0 0 auto !important;
}

.results-shell-root #results-page-overview:not(.hidden) {
  display: grid !important;
}

.results-shell-root #results-page-chao-rewards:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

.results-shell-root #results-reward-nav {
  width: auto !important;
  max-width: 100% !important;
  justify-content: center !important;
}

.results-shell-root #results-reward-content {
  display: grid !important;
  width: min(100%, 1040px) !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr) !important;
  gap: 16px !important;
  align-content: start !important;
}

.results-shell-root #results-page-summary:not(.hidden) {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.results-shell-root #results-page-summary > #results-summary-list {
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
}

.results-shell-root .results-page.hidden,
.results-shell-root .legacy-results-hidden {
  display: none !important;
}


.results-shell-root #results-page-overview {
  align-content: start !important;
}

.results-shell-root #results-overview-stage,
.results-shell-root #results-overview-sidebar,
.results-shell-root #results-reward-stage,
.results-shell-root #results-reward-feed,
.results-shell-root #results-summary-list {
  min-width: 0 !important;
}

.results-shell-root #results-overview-stage,
.results-shell-root #results-reward-stage {
  min-height: 420px !important;
}

.results-shell-root #results-overview-sidebar,
.results-shell-root #results-reward-feed,
.results-shell-root #results-summary-list {
  max-height: 100% !important;
}

.results-shell-root #global-results-footer {
  justify-content: center !important;
  gap: 18px !important;
}

/* Face editor basic/advanced mode */
#chao-face-editor-panel.face-editor-mode-basic [data-face-editor-advanced] {
  display: none !important;
}
.face-editor-mode-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.face-editor-mode-btn {
  background: rgba(42, 108, 146, 0.6);
  color: #fff;
  border: 1px solid rgba(132, 209, 235, 0.24);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.face-editor-mode-btn.is-active {
  border-color: rgba(255, 212, 0, 0.95);
  box-shadow: 0 0 0 2px rgba(255,212,0,0.22);
  background: rgba(70, 124, 44, 0.78);
}
.face-editor-mode-hint {
  font-size: 12px;
  color: rgba(221, 244, 255, 0.82);
}
#face-editor-project-store-status {
  min-height: 18px;
}
