.face-editor-dir-chip.is-active,
.face-editor-frame-chip-wrap.is-active {
  border-color: rgba(255, 212, 0, 0.95);
  box-shadow: 0 0 0 2px rgba(255,212,0,0.28);
}
.face-editor-dir-chip.is-current,
.face-editor-frame-chip-wrap.is-current {
  outline: 1px dashed rgba(132, 209, 235, 0.55);
  outline-offset: 1px;
}
.face-editor-frame-chip-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(132, 209, 235, 0.18);
  background: rgba(8, 18, 28, 0.72);
  border-radius: 999px;
  overflow: hidden;
}
.face-editor-frame-chip {
  padding: 4px 8px;
  border: 0;
  background: transparent;
}
.face-editor-frame-chip-clear {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border: 0;
  border-left: 1px solid rgba(132, 209, 235, 0.18);
  background: rgba(255,255,255,0.05);
  line-height: 1;
}
.face-editor-part-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.face-editor-part-chip-preview {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  image-rendering: pixelated;
  flex: 0 0 auto;
}
.face-editor-part-chip-label {
  text-align: left;
}
.face-editor-inline-toggle {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}
.face-editor-colors-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}
.face-editor-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #eefbff;
}
.face-editor-color-row input[type="color"] {
  width: 48px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}
#face-editor-export {
  width: 100%;
  min-height: 240px;
  resize: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.4;
}


.face-editor-create-launch {
  align-self: end;
  min-width: 110px;
}

.face-editor-create-card {
  gap: 10px;
}

.face-editor-create-stage-wrap {
  width: 100%;
  min-height: 320px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(0,0,0,0.2);
  padding: 10px;
}

.face-editor-create-stage {
  position: relative;
  display: inline-block;
  line-height: 0;
}

#face-editor-create-onion-canvas {
  position: absolute;
  inset: 0;
  display: block;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 1;
}

#face-editor-create-canvas {
  position: relative;
  display: block;
  image-rendering: pixelated;
  z-index: 2;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.08) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.08) 75%, rgba(255,255,255,0.08)),
    linear-gradient(45deg, rgba(255,255,255,0.08) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.08) 75%, rgba(255,255,255,0.08));
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: crosshair;
}

.face-editor-create-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.12) 1px, transparent 1px);
}

.face-editor-create-card input[type="text"] {
  min-width: 180px;
}

.face-editor-create-card .face-editor-toolbar-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-subscription-front {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
button.stats-subscription-front {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(13, 27, 42, 0.72);
  color: inherit;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
}
button.stats-subscription-front:hover {
  background: rgba(27, 38, 59, 0.92);
  border-color: rgba(255,255,255,0.24);
}
.ui-toolbar-appearance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.ui-inline-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #a9d6ff;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.ui-help-current-notes {
  margin: 0;
  padding-left: 20px;
}

.ui-panel-bg-row select,
.ui-toolbar-appearance-grid .ui-panel-bg-row select {
  width: 140px;
  max-width: 140px;
  min-width: 140px;
  flex: 0 0 140px;
}
.stats-subscription-front-secondary {
  margin-top: 6px;
  width: 100%;
}
#chao-alignment-subscription.hidden {
  display: none !important;
}


.face-editor-dir-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.face-editor-dir-preview-thumb {
  width: 64px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: rgba(8, 18, 28, 0.72);
  border: 1px solid rgba(132, 209, 235, 0.18);
  border-radius: 10px;
  color: #eefbff;
}
.face-editor-dir-preview-thumb.is-active {
  border-color: rgba(255, 212, 0, 0.95);
  box-shadow: 0 0 0 2px rgba(255,212,0,0.28);
}
.face-editor-dir-preview-thumb.is-current {
  outline: 1px dashed rgba(132, 209, 235, 0.55);
  outline-offset: 1px;
}
.face-editor-part-browser-tools {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}
.face-editor-part-filter-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(132, 209, 235, 0.18);
  background: rgba(8, 18, 28, 0.72);
  color: #eefbff;
  cursor: pointer;
  font-size: 12px;
}
.face-editor-part-filter-chip.is-active {
  border-color: rgba(255, 212, 0, 0.95);
  box-shadow: 0 0 0 2px rgba(255,212,0,0.28);
}
.face-editor-part-browser-empty {
  width: 100%;
  padding: 8px 10px;
  border: 1px dashed rgba(132, 209, 235, 0.18);
  border-radius: 10px;
  color: #d8eef4;
  font-size: 12px;
  background: rgba(8, 18, 28, 0.42);
}


.face-editor-dir-chip{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:56px;padding:6px;}
.face-editor-dir-chip-preview{width:40px;height:40px;border:1px solid rgba(255,255,255,.14);background-repeat:no-repeat;background-position:center;background-size:contain;border-radius:6px;image-rendering:pixelated;}
.face-editor-dir-chip-label{font-size:11px;line-height:1;}
.face-editor-sheet-tools input{width:56px;}


.face-editor-sheet-naming-tools input{min-width:180px;width:220px;}
.face-editor-sheet-preview{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:8px;
  max-height:280px;
  overflow:auto;
  padding:4px 2px 2px;
}
