.page {
  padding: 24px;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(88, 101, 242, 0.10), transparent 25%),
    linear-gradient(180deg, #0f1012 0%, #121316 100%);
  color: #f2f3f5;
}

.expr-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.expr-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  background: rgba(24, 25, 28, 0.84);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 24px;
}

.expr-topbar h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.expr-topbar p {
  margin: 0;
  color: #a7adb7;
  font-size: 14px;
}

.title-badge {
  width: fit-content;
  background: rgba(88, 101, 242, 0.16);
  color: #cfd3ff;
  border: 1px solid rgba(88, 101, 242, 0.28);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.expr-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.expr-tab,
.expr-btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  transition: .18s ease;
}

.expr-tab {
  background: #23252b;
  color: #e6e8eb;
  border: 1px solid #343840;
}

.expr-tab.active,
.expr-btn {
  background: linear-gradient(180deg, #6b77f5, #5865f2);
  color: #fff;
}

.expr-panel {
  display: none;
}

.expr-panel.active {
  display: block;
}

.expr-card {
  background: linear-gradient(180deg, rgba(30,31,34,.98), rgba(24,25,28,.98));
  border: 1px solid #2d3035;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.expr-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 22px;
}

.expr-field {
  margin-bottom: 14px;
}

.expr-field label {
  display: block;
  margin-bottom: 8px;
  color: #cfd3da;
  font-weight: 700;
}

.expr-input {
  width: 100%;
  background: #111214;
  color: #f2f3f5;
  border: 1px solid #31343b;
  border-radius: 12px;
  outline: none;
  padding: 13px 14px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.emoji-card {
  background: #1b1d22;
  border: 1px solid #2d3035;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

.emoji-preview {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.emoji-name {
  font-size: 13px;
  margin-bottom: 10px;
  word-break: break-word;
}

.small {
  width: 100%;
}

.empty-state {
  padding: 20px;
  text-align: center;
  color: #a7adb7;
}

.builder-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.builder-preview-wrap {
  position: sticky;
  top: 20px;
}

.builder-preview {
  width: 256px;
  height: 256px;
  margin: 0 auto 16px;
  position: relative;
  background: #111214;
  border: 1px solid #2d3035;
  border-radius: 20px;
  overflow: hidden;
}

.builder-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.builder-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.builder-section h4 {
  margin: 0 0 10px;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
}

.builder-option {
  background: #1b1d22;
  border: 1px solid #2d3035;
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.builder-option img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .builder-preview-wrap {
    position: static;
  }

  .builder-preview {
    width: 220px;
    height: 220px;
  }
}