:root {
  color-scheme: dark;
  --bg: #111318;
  --panel: #181b22;
  --panel-2: #222631;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #9ca4b3;
  --accent: #8ea1ff;
  --mint: #68e0b2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.landing-shell {
  min-height: auto;
}

.site-nav {
  color: #ffffff;
}

.site-nav .brand span {
  color: #ffffff;
  font-size: 1rem;
}

.site-nav .brand-mark {
  color: #16112d;
  border-radius: 14px;
}

.hero .primary-button {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  color: #16112d;
  background: linear-gradient(135deg, #ffd84d, #38f5d5);
  font-weight: 950;
}

.hero h1 {
  color: #ffffff;
  font-size: 6rem;
}

.editor-shell {
  position: relative;
  z-index: 5;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  width: min(1160px, calc(100% - 36px));
  min-height: auto;
  margin: -40px auto 86px;
  padding: 18px;
  border: 1px solid rgba(181, 160, 255, 0.22);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(45, 42, 82, 0.94), rgba(37, 32, 67, 0.96)),
    radial-gradient(circle at 68% 110%, rgba(255, 128, 194, 0.18), transparent 42%);
  box-shadow: 0 46px 120px rgba(18, 12, 52, 0.48);
  backdrop-filter: blur(24px);
}

.editor-shell .sidebar {
  gap: 18px;
  padding: 16px;
  border: 0;
  border-radius: 28px;
  background: rgba(20, 18, 45, 0.72);
  backdrop-filter: none;
}

.editor-shell .brand {
  justify-content: center;
}

.editor-shell .brand > div:not(.brand-mark),
.editor-shell .tip-panel,
.editor-shell .nav-item span:last-child {
  display: none;
}

.editor-shell .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5fb7, #ffd45f);
}

.editor-shell .nav-list {
  gap: 14px;
}

.editor-shell .nav-item {
  display: grid;
  place-items: center;
  width: 100%;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.editor-shell .nav-item.active,
.editor-shell .nav-item:hover {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.82), rgba(255, 79, 196, 0.62));
}

.editor-shell .icon {
  width: auto;
  color: #ffffff;
}

.editor-shell .workspace {
  padding: 0;
}

.editor-shell .topbar {
  position: sticky;
  top: 92px;
  z-index: 15;
  min-height: 74px;
  margin-bottom: 16px;
  padding: 0 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
}

.editor-shell .topbar h1 {
  font-size: 1.9rem;
}

.editor-shell .eyebrow {
  margin-bottom: 4px;
  color: #72ffe2;
}

.editor-shell .studio-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 16px;
}

.editor-shell .preview-zone,
.editor-shell .panel-section {
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(45, 42, 75, 0.94), rgba(58, 44, 78, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.editor-shell .preview-zone {
  position: sticky;
  top: 92px;
  order: 2;
}

.editor-shell .control-panel {
  order: 1;
}

.editor-shell .preview-stage {
  min-height: 380px;
}

.editor-shell .canvas-lock {
  width: min(310px, 100%);
}

.editor-shell #iconCanvas {
  border-radius: 28px;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.34);
}

.editor-shell .preview-watermark {
  border-radius: 28px;
  font-size: 1.1rem;
}

.editor-shell .icon-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-height: 246px;
}

.editor-shell .icon-card {
  min-height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.editor-shell .icon-card.active,
.editor-shell .icon-card:hover {
  border-color: rgba(104, 224, 178, 0.74);
  background: rgba(104, 224, 178, 0.14);
  box-shadow: inset 0 0 0 1px rgba(104, 224, 178, 0.24);
}

.editor-shell .icon-card svg {
  width: 24px;
  height: 24px;
}

.editor-shell .preview-meta div,
.editor-shell .effect-card,
.editor-shell .pack-card,
.editor-shell .pricing-card,
.editor-shell .preset-card,
.editor-shell .shape-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
}

.editor-shell .primary-button {
  background: linear-gradient(135deg, #bdf566, #38f5d5);
}

.editor-shell .premium-pill {
  border: 0;
  background:
    linear-gradient(135deg, #fff5b8 0%, #ffd84d 34%, #8ff4ff 70%, #ffffff 100%);
  box-shadow: 0 16px 36px rgba(255, 216, 77, 0.2);
}

.editor-shell .effect-grid .premium-pill,
.editor-shell .effect-grid .premium-effect {
  min-height: 86px;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  text-align: left;
}

.editor-shell .effect-grid .premium-pill.active,
.editor-shell .effect-grid .premium-effect.active {
  border: 1px solid rgba(255, 216, 77, 0.82);
  box-shadow:
    0 16px 36px rgba(255, 216, 77, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.editor-shell .effect-grid .premium-effect {
  border-color: rgba(255, 216, 77, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.1), rgba(142, 244, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.editor-shell .effect-grid .premium-pill strong,
.editor-shell .effect-grid .premium-effect strong {
  color: var(--text);
}

.editor-shell .effect-grid .premium-pill span,
.editor-shell .effect-grid .premium-effect span {
  color: #9ef7e5;
  font-size: 0.78rem;
}

.editor-shell .editor-tabs {
  position: sticky;
  top: 92px;
  z-index: 4;
}

.editor-shell .editor-window-section {
  min-height: 320px;
}

.editor-shell .settings-card {
  min-height: 0;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(31, 29, 55, 0.88), rgba(28, 25, 48, 0.92));
}

.editor-shell .settings-card .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.editor-shell .settings-card .section-heading h2 {
  margin-bottom: 0;
}

.editor-shell .settings-card .section-heading p {
  max-width: 210px;
  text-align: right;
}

.asset-settings-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.asset-settings-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(13, 16, 23, 0.76);
}

.asset-settings-icon svg {
  width: 25px;
  height: 25px;
}

.asset-settings-head h2 {
  margin: 0 0 3px;
  font-size: 0.95rem;
}

.asset-settings-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.settings-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.09);
}

.settings-block {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.settings-block h3 {
  margin: 0;
  color: #b9eaff;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-block h3 span {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.68rem;
}

.settings-block-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-block-grid h3 {
  grid-column: 1 / -1;
}

.border-mode {
  grid-column: 1 / -1;
  min-height: 52px;
  margin-top: 0;
}

.content-segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.border-materials {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.border-materials button {
  display: grid;
  gap: 6px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
}

.border-materials button.active,
.border-materials button:hover {
  border-color: rgba(104, 224, 178, 0.7);
  color: #ffffff;
  background: rgba(104, 224, 178, 0.12);
}

.border-material-swatch {
  display: block;
  height: 10px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.border-material-swatch.custom {
  background: linear-gradient(135deg, #ff2bd6, #21f7ff);
}

.border-material-swatch.gold {
  background: linear-gradient(135deg, #fff8c9, #f6d36b 35%, #8a5a12 70%, #ffe69a);
}

.border-material-swatch.diamond {
  background: linear-gradient(135deg, #ffffff, #dff9ff 35%, #4dddf8 75%, #8ff4ff);
}

.border-material-swatch.platinum {
  background: linear-gradient(135deg, #ffffff, #cbd5e1 38%, #737f91 72%, #f8fbff);
}

.border-material-swatch.ruby {
  background: linear-gradient(135deg, #ffd6e1, #ff6f91 34%, #7b1028 75%, #3a0614);
}

.border-material-swatch.obsidian {
  background: linear-gradient(135deg, #d9e2ff, #8ea1ff 25%, #111827 58%, #05070c);
}

.precision-slider {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 12px;
}

.precision-slider span,
.precision-slider output {
  color: var(--muted);
  font-size: 0.78rem;
}

.precision-slider input {
  width: 100%;
  accent-color: #6d6cff;
  cursor: grab;
  touch-action: pan-y;
}

.precision-slider input:active {
  cursor: grabbing;
}

.precision-slider output {
  min-height: 36px;
  padding: 9px 10px;
  border-radius: 7px;
  background: rgba(13, 16, 23, 0.62);
  color: #ffffff;
  text-align: left;
}

.compact-color,
.compact-number {
  min-height: 62px;
  margin-top: 0;
}

.compact-number input {
  width: 100%;
}

.realistic-toggle {
  width: fit-content;
  min-width: 116px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.editor-shell .settings-card .field,
.editor-shell .settings-card .slider-field,
.editor-shell .settings-card .check-field,
.editor-shell .settings-card .color-mode {
  min-height: 46px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.editor-shell .settings-card .field input {
  width: 148px;
  height: 34px;
  border-radius: 9px;
  background: rgba(15, 17, 28, 0.66);
}

.editor-shell .settings-card .compact-number input {
  width: 100%;
  text-align: left;
}

.editor-shell .settings-card .slider-field input {
  width: 156px;
}

.editor-shell .settings-card .check-field input {
  width: 18px;
  height: 18px;
}

.editor-shell .settings-card .small-segmented {
  width: 154px;
  padding: 3px;
  border-radius: 10px;
}

.editor-shell .settings-card .small-segmented button {
  min-height: 30px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.editor-shell .settings-card .palette-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.editor-shell .settings-card .color-field {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 74px;
  margin-top: 8px;
  padding: 9px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.editor-shell .settings-card .color-field span {
  font-size: 0.72rem;
  text-align: center;
}

.editor-shell .settings-card .color-field input {
  width: 38px;
  height: 38px;
  padding: 2px;
  border-radius: 50%;
}

.editor-shell .settings-card .effect-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.editor-shell .settings-card .effect-card,
.editor-shell .settings-card .effect-grid .premium-pill,
.editor-shell .settings-card .effect-grid .premium-effect {
  min-height: 82px;
  padding: 9px;
  border-radius: 12px;
}

.editor-shell .settings-card .effect-card strong,
.editor-shell .settings-card .effect-grid .premium-pill strong,
.editor-shell .settings-card .effect-grid .premium-effect strong {
  font-size: 0.8rem;
}

.editor-shell .settings-card .effect-card span,
.editor-shell .settings-card .effect-grid .premium-pill span,
.editor-shell .settings-card .effect-grid .premium-effect span {
  font-size: 0.68rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(142, 161, 255, 0.22), transparent 30%),
    radial-gradient(circle at 84% 6%, rgba(104, 224, 178, 0.14), transparent 28%),
    linear-gradient(145deg, #111318 0%, #171a22 48%, #0f1116 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(15, 17, 22, 0.8);
  backdrop-filter: blur(22px);
}

.brand,
.nav-item,
.topbar,
.top-actions,
.preview-meta,
.field,
.slider-field,
.color-field,
.check-field,
.color-mode {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #111318;
  background: linear-gradient(135deg, #8ea1ff, #68e0b2);
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(142, 161, 255, 0.28);
}

.brand strong,
.tip-panel strong {
  display: block;
}

.brand span,
.tip-panel span,
.section-heading p,
.preview-meta span,
.field span,
.slider-field span,
.color-field span,
.check-field span,
.color-mode span,
.eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  gap: 12px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.icon {
  color: var(--mint);
  width: 22px;
  text-align: center;
}

.tip-panel {
  margin-top: auto;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.tip-panel span {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--mint);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 3.35rem;
  line-height: 0.96;
}

h2 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.top-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  white-space: nowrap;
}

.premium-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #211400;
  background:
    linear-gradient(135deg, #fff2a8 0%, #ffd84d 36%, #b9f2ff 68%, #ffffff 100%);
  box-shadow:
    0 18px 42px rgba(255, 216, 77, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-weight: 950;
  white-space: nowrap;
}

.premium-pill span {
  color: #0f6b7a;
}

.ghost-button {
  padding: 0 15px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.075);
}

.primary-button {
  padding: 0 18px;
  color: #111318;
  background: linear-gradient(135deg, #8ea1ff, #68e0b2);
  font-weight: 900;
}

.export-format {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(18, 20, 32, 0.7);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 20px;
  align-items: start;
}

.preview-zone {
  position: sticky;
  top: 28px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 20, 26, 0.74);
  box-shadow: var(--shadow);
}

.preview-stage {
  display: grid;
  place-items: center;
  min-height: 620px;
}

.canvas-lock {
  position: relative;
  width: min(512px, 100%);
  user-select: none;
}

#iconCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.preview-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 22%;
  color: rgba(255, 255, 255, 0.16);
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  transform: rotate(-24deg);
}

.preview-meta {
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.preview-meta div {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.preview-meta strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-preview {
  margin-top: 16px;
}

.discord-chat-preview {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #313338;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 45px rgba(0, 0, 0, 0.18);
}

.discord-chat-top {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.32);
  color: #f2f3f5;
  background: #2b2d31;
}

.discord-chat-top span {
  color: #80848e;
  font-size: 1.25rem;
  font-weight: 900;
}

.discord-chat-top strong {
  font-size: 0.95rem;
}

.discord-chat-top small {
  margin-left: auto;
  color: #949ba4;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.discord-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.discord-message + .discord-message {
  padding-top: 4px;
}

.discord-message.featured {
  background: rgba(88, 101, 242, 0.07);
}

.discord-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-weight: 950;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.16);
}

.discord-avatar.nova {
  background: linear-gradient(135deg, #5865f2, #43e8c4);
}

.discord-avatar.rookie {
  background: linear-gradient(135deg, #3f4654, #202329);
}

.discord-message-body {
  min-width: 0;
}

.discord-message-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
}

.discord-message-head strong {
  color: var(--role-color, #43e8c4);
  font-size: 0.94rem;
  font-weight: 850;
}

.discord-message-head canvas {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.discord-message-head time {
  color: #949ba4;
  font-size: 0.72rem;
}

.discord-message p {
  margin: 2px 0 0;
  color: #f2f3f5;
  font-size: 0.94rem;
  line-height: 1.42;
}

#discordMobileCanvas {
  display: none;
}

.control-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.editor-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(20, 18, 45, 0.62);
}

.editor-tabs button {
  min-height: 42px;
  border-radius: 15px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.editor-tabs button.active {
  color: #111318;
  background: linear-gradient(135deg, #bdf566, #38f5d5);
  box-shadow: 0 14px 30px rgba(56, 245, 213, 0.18);
}

.editor-window-section.is-hidden {
  display: none;
}

.panel-section {
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(24, 27, 34, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  scroll-margin-top: 28px;
}

.section-heading {
  margin-bottom: 13px;
}

.section-heading p {
  margin-bottom: 0;
}

.search-field {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.search-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: rgba(13, 16, 23, 0.62);
}

.pill-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
  max-width: 100%;
}

.pill-row button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 850;
}

.pill-row button.active,
.pill-row button:hover {
  color: #101318;
  border-color: transparent;
  background: linear-gradient(135deg, #bdf566, #38f5d5);
}

.empty-message {
  display: none;
  margin: 12px 0 0;
  color: var(--muted);
}

.empty-message.is-visible {
  display: block;
}

.field,
.slider-field,
.color-field,
.check-field,
.color-mode {
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.field input,
.field select {
  width: 190px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: var(--panel-2);
}

.field input:focus,
.field select:focus {
  border-color: rgba(142, 161, 255, 0.7);
}

.check-field input {
  width: 22px;
  height: 22px;
  accent-color: var(--mint);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.icon-card,
.shape-card {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-2);
}

.icon-card {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.icon-card:hover,
.icon-card.active,
.shape-card:hover,
.shape-card.active {
  border-color: rgba(104, 224, 178, 0.7);
  background: rgba(104, 224, 178, 0.12);
}

.icon-card svg {
  width: 24px;
  height: 24px;
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.background-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.template-card {
  display: grid;
  gap: 8px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
}

.template-card:hover {
  border-color: rgba(104, 224, 178, 0.72);
  background: rgba(104, 224, 178, 0.12);
}

.template-card span {
  display: block;
  height: 26px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(135deg, var(--a), var(--b));
}

.shape-card {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 9px 7px;
}

.shape-card svg {
  width: 34px;
  height: 34px;
}

.shape-card span {
  color: var(--muted);
  font-size: 0.72rem;
}

.shape-card small {
  display: inline-grid;
  place-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  color: #261400;
  background: linear-gradient(135deg, #fff2a8, #ffd84d, #8ff4ff);
  font-size: 0.66rem;
  font-weight: 950;
}

.shape-card.is-premium {
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.14), rgba(56, 245, 213, 0.12)),
    rgba(255, 255, 255, 0.09);
}

.shape-card.is-premium.active,
.shape-card.is-premium:hover {
  border-color: rgba(255, 216, 77, 0.78);
  box-shadow: 0 14px 32px rgba(255, 216, 77, 0.12);
}

.background-style-card {
  display: grid;
  gap: 7px;
  min-height: 108px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  text-align: left;
}

.background-style-card:hover,
.background-style-card.active {
  border-color: rgba(104, 224, 178, 0.72);
  background: rgba(104, 224, 178, 0.12);
}

.background-style-card strong {
  font-size: 0.9rem;
}

.background-style-card small {
  color: var(--muted);
  font-size: 0.74rem;
}

.background-style-preview {
  position: relative;
  display: block;
  height: 38px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #8ea1ff, #68e0b2);
}

.background-style-preview::after {
  position: absolute;
  inset: 0;
  content: "";
}

.background-style-preview.clean::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
}

.background-style-preview.halo::after {
  background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.78), transparent 52%);
}

.background-style-preview.diagonal::after {
  background:
    linear-gradient(158deg, rgba(255,255,255,0.3) 0 36%, transparent 37% 62%, rgba(0,0,0,0.16) 63% 100%);
}

.background-style-preview.rings::after {
  background:
    repeating-radial-gradient(circle at 76% 22%, rgba(255,255,255,0.28) 0 2px, transparent 3px 13px);
}

.background-style-preview.stripes::after {
  background:
    repeating-linear-gradient(128deg, rgba(255,255,255,0.2) 0 3px, transparent 4px 13px);
}

.background-style-preview.grid::after {
  background:
    linear-gradient(rgba(255,255,255,0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.17) 1px, transparent 1px);
  background-size: 13px 13px;
}

.background-style-preview.glass::after {
  background:
    radial-gradient(ellipse at 32% 12%, rgba(255,255,255,0.7), transparent 50%),
    linear-gradient(135deg, rgba(255,255,255,0.24), transparent 55%);
}

.background-style-preview.spotlight::after {
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.48), rgba(0,0,0,0.2) 76%);
}

.background-style-preview.mesh::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.62), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(255,95,183,0.42), transparent 48%),
    radial-gradient(circle at 40% 86%, rgba(56,245,213,0.42), transparent 50%);
}

.background-style-preview.neon::after {
  background:
    radial-gradient(circle at 65% 45%, rgba(56,245,213,0.36), transparent 46%),
    linear-gradient(128deg, transparent 0 38%, rgba(255,255,255,0.5) 39% 43%, transparent 44% 100%);
}

.background-style-preview.sunburst::after {
  background: conic-gradient(from 0deg, rgba(255,255,255,0.28) 0 10deg, transparent 11deg 22deg);
}

.background-style-preview.waves::after {
  background:
    repeating-radial-gradient(ellipse at 10% 70%, rgba(255,255,255,0.24) 0 2px, transparent 3px 12px);
}

.background-style-preview.dots::after {
  background: radial-gradient(circle, rgba(255,255,255,0.35) 1px, transparent 2px);
  background-size: 12px 12px;
}

.background-style-preview.cyber::after {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.17) 0 1px, transparent 2px 7px),
    linear-gradient(90deg, transparent 0 20%, rgba(56,245,213,0.45) 21% 24%, transparent 25% 100%);
}

.background-style-preview.aurora::after {
  background:
    linear-gradient(128deg, transparent 0 18%, rgba(255,255,255,0.36) 28%, rgba(56,245,213,0.3) 54%, transparent 78%);
}

.background-style-preview.vignette::after {
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,0.3), rgba(0,0,0,0.3) 78%);
}

.background-style-preview.bubble::after {
  background:
    radial-gradient(circle at 20% 30%, transparent 0 8%, rgba(255,255,255,0.28) 9% 11%, transparent 12%),
    radial-gradient(circle at 76% 24%, transparent 0 12%, rgba(255,255,255,0.24) 13% 15%, transparent 16%),
    radial-gradient(circle at 72% 74%, transparent 0 10%, rgba(255,255,255,0.24) 11% 13%, transparent 14%);
}

.background-style-preview.spark::after {
  background:
    radial-gradient(circle at 20% 22%, rgba(255,255,255,0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 28%, rgba(255,255,255,0.75) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 72%, rgba(255,255,255,0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 70%, rgba(255,255,255,0.6) 0 1px, transparent 2px);
}

.background-style-preview.split::after {
  background:
    linear-gradient(108deg, rgba(255,255,255,0.3) 0 46%, rgba(0,0,0,0.18) 47% 100%);
}

.background-style-preview.carbon::after {
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.16), transparent 42%),
    radial-gradient(circle at 76% 78%, rgba(0,0,0,0.48), transparent 58%),
    repeating-linear-gradient(118deg, rgba(255,255,255,0.06) 0 1px, transparent 2px 7px),
    repeating-linear-gradient(62deg, rgba(0,0,0,0.24) 0 1px, transparent 2px 9px);
}

.background-style-preview.gold {
  background: linear-gradient(135deg, #f7d774, #8f5c12);
}

.background-style-preview.gold::after {
  background:
    radial-gradient(circle at 26% 18%, rgba(255,255,255,0.72), transparent 42%),
    radial-gradient(circle at 78% 78%, rgba(80,43,5,0.26), transparent 56%),
    linear-gradient(135deg, rgba(255,255,255,0.32), rgba(255,246,190,0.18), rgba(91,54,10,0.18));
}

.background-style-preview.diamondCut {
  background: linear-gradient(135deg, #e6fbff, #45d7f4);
}

.background-style-preview.diamondCut::after {
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.78), transparent 42%),
    radial-gradient(circle at 76% 78%, rgba(18,83,117,0.24), transparent 58%);
}

.background-style-preview.platinum {
  background: linear-gradient(135deg, #f6f8fb, #747f91);
}

.background-style-preview.platinum::after {
  background:
    radial-gradient(circle at 24% 16%, rgba(255,255,255,0.78), transparent 42%),
    radial-gradient(circle at 74% 76%, rgba(54,62,78,0.26), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,0.3), rgba(221,229,240,0.16), rgba(245,248,252,0.32));
}

.background-style-preview.gem {
  background: linear-gradient(135deg, #ff5a7d, #5b1028);
}

.background-style-preview.gem::after {
  background:
    radial-gradient(circle at 26% 18%, rgba(255,255,255,0.64), transparent 36%),
    radial-gradient(circle at 72% 72%, rgba(0,0,0,0.3), transparent 58%);
}

.background-style-preview.obsidian {
  background: linear-gradient(135deg, #343a48, #05070c);
}

.background-style-preview.obsidian::after {
  background:
    radial-gradient(circle at 26% 18%, rgba(255,255,255,0.18), transparent 42%),
    radial-gradient(circle at 72% 28%, rgba(142,161,255,0.28), transparent 48%),
    radial-gradient(circle at 70% 82%, rgba(0,0,0,0.48), transparent 56%);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.effect-grid,
.pack-grid,
.premium-grid {
  display: grid;
  gap: 10px;
}

.effect-grid,
.premium-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.effect-card,
.pack-card,
.pricing-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-2);
}

.effect-card,
.pack-card {
  min-height: 70px;
  padding: 12px;
  text-align: left;
}

.effect-grid [data-effect] {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  overflow: hidden;
  isolation: isolate;
}

.effect-grid [data-effect]::before {
  content: "";
  display: block;
  width: 100%;
  height: 34px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

.effect-grid [data-effect="clean"]::before {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.34), transparent 38%),
    linear-gradient(135deg, rgba(142, 161, 255, 0.94), rgba(104, 224, 178, 0.94));
}

.effect-grid [data-effect="shadow"]::before {
  border-color: rgba(255,255,255,0.24);
  background:
    radial-gradient(ellipse at 58% 66%, rgba(0,0,0,0.58), transparent 48%),
    radial-gradient(circle at 38% 34%, rgba(255,255,255,0.72), transparent 18%),
    linear-gradient(135deg, rgba(75,84,112,0.9), rgba(17,20,31,0.92));
}

.effect-grid [data-effect="neon"]::before {
  border-color: rgba(104, 224, 178, 0.72);
  background:
    radial-gradient(circle at 52% 50%, rgba(255,255,255,0.96) 0 9%, rgba(104,224,178,0.78) 10% 25%, transparent 38%),
    radial-gradient(circle at 52% 50%, rgba(33,247,255,0.56), transparent 58%),
    linear-gradient(135deg, #15172a, #252046);
  box-shadow:
    0 0 20px rgba(56, 245, 213, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.effect-grid [data-effect="glass"]::before {
  border-color: rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(circle at 23% 18%, rgba(255,255,255,0.78), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255,255,255,0.16) 38%, transparent 39%),
    linear-gradient(135deg, rgba(190, 230, 255, 0.82), rgba(64, 238, 212, 0.68));
  backdrop-filter: blur(8px);
}

.effect-grid [data-effect="chrome"]::before {
  border-color: rgba(255, 216, 77, 0.82);
  background:
    linear-gradient(135deg, #ffffff 0 14%, #aaf5ff 18% 28%, #2b3042 34% 46%, #ffffff 51% 62%, #767e96 68% 78%, #ffe36e 88% 100%);
  box-shadow:
    0 0 20px rgba(255, 216, 77, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.effect-grid [data-effect="crystal"]::before {
  border-color: rgba(142, 244, 255, 0.74);
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.86), transparent 34%),
    radial-gradient(circle at 76% 76%, rgba(0,158,203,0.24), transparent 55%),
    linear-gradient(135deg, #ffffff, #dffaff 32%, #7ee7ff 72%, #ffffff);
}

.effect-grid [data-effect="emboss"]::before {
  border-color: rgba(255,255,255,0.22);
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.58), transparent 35%),
    radial-gradient(circle at 74% 74%, rgba(0,0,0,0.3), transparent 50%),
    linear-gradient(135deg, #aab4c8, #3a4256);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.55),
    inset -2px -2px 0 rgba(0,0,0,0.22);
}

.effect-grid [data-effect="goldFoil"]::before {
  border-color: rgba(255, 216, 77, 0.86);
  background:
    radial-gradient(circle at 22% 20%, rgba(255,255,255,0.7), transparent 38%),
    linear-gradient(135deg, #fff8c9, #f7d46c 28%, #8d5a12 48%, #fff0a8 66%, #b77816 82%, #fff7cf);
  box-shadow:
    0 0 18px rgba(255, 216, 77, 0.32),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.effect-grid [data-effect] strong,
.effect-grid [data-effect] span {
  position: relative;
  z-index: 1;
}

.effect-card.active {
  border-color: rgba(104, 224, 178, 0.8);
  background: rgba(104, 224, 178, 0.12);
}

.effect-card.locked,
.pack-card {
  background:
    linear-gradient(135deg, rgba(142, 161, 255, 0.12), rgba(104, 224, 178, 0.08)),
    var(--panel-2);
}

.effect-card strong,
.pack-card strong,
.pricing-card strong {
  display: block;
}

.effect-card span,
.pack-card span,
.pricing-card span,
.pricing-card p {
  color: var(--muted);
  font-size: 0.78rem;
}

.pricing-card {
  padding: 14px;
}

.pricing-card strong {
  margin: 5px 0;
  font-size: 1.5rem;
}

.pricing-card p {
  margin-bottom: 0;
  line-height: 1.35;
}

.pricing-card.featured {
  border-color: rgba(104, 224, 178, 0.7);
}

.preset-card {
  position: relative;
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-2);
  text-align: left;
}

.preset-card.active {
  border-color: rgba(104, 224, 178, 0.7);
}

.preset-card.is-premium {
  border-color: rgba(255, 216, 77, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.14), rgba(185, 242, 255, 0.08)),
    var(--panel-2);
}

.preset-card.is-premium.active {
  border-color: rgba(255, 216, 77, 0.8);
  box-shadow: 0 14px 34px rgba(255, 216, 77, 0.13);
}

.preset-card small {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #261400;
  background: linear-gradient(135deg, #fff2a8, #ffd84d, #8ff4ff);
  font-size: 0.62rem;
  font-weight: 950;
}

.preset-swatch {
  display: block;
  height: 28px;
  margin-bottom: 9px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.62), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(0, 0, 0, 0.18), transparent 56%),
    linear-gradient(135deg, var(--a), var(--b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.preset-card strong {
  display: block;
  font-size: 0.9rem;
}

.preset-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.small-segmented {
  width: 190px;
  grid-template-columns: repeat(2, 1fr);
}

.segmented button {
  min-height: 34px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
}

.segmented button.active {
  color: #111318;
  background: var(--mint);
  font-weight: 900;
}

.palette-grid {
  display: grid;
  gap: 10px;
}

.color-field input {
  width: 64px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.slider-field input {
  width: 190px;
  accent-color: var(--accent);
}

.wide-button {
  width: 100%;
}

.discord-flow {
  display: grid;
  gap: 10px;
}

.staff-panel {
  display: grid;
  gap: 10px;
}

.staff-upload {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.staff-upload input {
  color: var(--muted);
}

.staff-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  background: var(--panel-2);
  font: 0.86rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.staff-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.staff-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 76px;
}

.staff-preview-item {
  display: grid;
  place-items: center;
  min-height: 70px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.staff-preview-item svg {
  width: 34px;
  height: 34px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid rgba(104, 224, 178, 0.4);
  border-radius: 12px;
  color: var(--text);
  background: rgba(24, 27, 34, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: rgba(56, 245, 213, 0.74);
  background:
    radial-gradient(circle at 12% 20%, rgba(56, 245, 213, 0.18), transparent 38%),
    rgba(24, 27, 34, 0.96);
  animation: toastPop 260ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.icon-card,
.shape-card,
.preset-card,
.background-style-card,
.template-card,
.effect-card,
.editor-tabs button,
.segmented button,
.border-materials button,
.ghost-button,
.primary-button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.icon-card:hover,
.shape-card:hover,
.preset-card:hover,
.background-style-card:hover,
.template-card:hover,
.effect-card:hover,
.border-materials button:hover {
  transform: translate3d(0, -2px, 0);
}

.template-card:hover,
.preset-card:hover {
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(104, 224, 178, 0.14);
}

.ghost-button:hover,
.primary-button:hover {
  transform: translate3d(0, -2px, 0);
}

.ghost-button:active,
.primary-button:active,
.editor-tabs button:active,
.segmented button:active {
  transform: translate3d(0, 1px, 0) scale(0.98);
}

.icon-card.is-picked,
.shape-card.is-picked,
.template-card.is-picked,
.preset-card.is-picked,
.background-style-card.is-picked,
.effect-card.is-picked {
  animation: selectedPop 360ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.control-panel.is-switching {
  animation: panelSwitch 220ms ease both;
}

.icon-grid.is-filtering {
  opacity: 0.45;
  transform: translate3d(0, 4px, 0);
}

.editor-shell::before {
  content: "";
  position: absolute;
  inset: -24px 14% auto;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 245, 213, 0.2), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

.preview-zone {
  animation: editorPreviewFloat 7s ease-in-out infinite;
}

#downloadButton.is-exporting {
  pointer-events: none;
}

#downloadButton.is-exporting::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(17, 19, 24, 0.25);
  border-top-color: #111318;
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}

@keyframes selectedPop {
  0% {
    transform: scale(0.96);
  }

  55% {
    transform: scale(1.045);
    box-shadow: 0 0 26px rgba(104, 224, 178, 0.2);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes panelSwitch {
  from {
    opacity: 0.82;
    transform: translate3d(0, 8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes toastPop {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes editorPreviewFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.app-shell.editor-shell {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  width: min(1160px, calc(100% - 36px));
  min-height: auto;
  margin: -40px auto 86px;
  padding: 18px;
  border: 1px solid rgba(181, 160, 255, 0.22);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(45, 42, 82, 0.94), rgba(37, 32, 67, 0.96)),
    radial-gradient(circle at 68% 110%, rgba(255, 128, 194, 0.18), transparent 42%);
}

.app-shell.editor-shell .sidebar {
  gap: 18px;
  padding: 16px;
  border: 0;
  border-radius: 28px;
  background: rgba(20, 18, 45, 0.72);
}

.app-shell.editor-shell .workspace {
  padding: 0;
}

.app-shell.editor-shell .studio-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
}

@media (max-width: 1120px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .preview-zone {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 108px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .editor-shell {
    grid-template-columns: 1fr;
    gap: 10px;
    width: calc(100% - 14px);
    margin: -18px auto 44px;
    padding: 9px;
    border-radius: 24px;
  }

  .sidebar {
    position: sticky;
    top: 76px;
    z-index: 10;
    gap: 14px;
    padding: 14px;
  }

  .editor-shell .sidebar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    padding: 10px;
    border-radius: 20px;
  }

  .editor-shell .brand {
    justify-content: start;
  }

  .editor-shell .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .editor-shell .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .editor-shell .nav-item {
    flex: 0 0 46px;
    height: 40px;
    border-radius: 13px;
  }

  .editor-shell .studio-grid {
    grid-template-columns: 1fr;
  }

  .editor-shell .preview-zone {
    position: static;
    order: 1;
    padding: 14px;
    border-radius: 20px;
  }

  .editor-shell .control-panel {
    order: 2;
  }

  .editor-shell .topbar {
    position: sticky;
    top: 74px;
    z-index: 16;
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 14px;
    border-radius: 20px;
  }

  .editor-shell .topbar h1 {
    font-size: 1.65rem;
  }

  .editor-shell .eyebrow {
    font-size: 0.7rem;
  }

  .nav-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-item {
    justify-content: center;
    padding: 0;
    font-size: 0.78rem;
  }

  .nav-item .icon,
  .tip-panel {
    display: none;
  }

  .workspace {
    padding: 0;
  }

  .topbar,
  .preview-meta,
  .field,
  .slider-field,
  .color-field,
  .check-field,
  .color-mode {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .preview-stage {
    min-height: 270px;
  }

  .editor-shell .canvas-lock {
    width: min(250px, 86vw);
  }

  .preview-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .preview-meta div {
    padding: 10px;
    border-radius: 12px;
  }

  .preview-meta span {
    font-size: 0.68rem;
  }

  .preview-meta strong {
    font-size: 0.8rem;
  }

  .field input,
  .field select,
  .slider-field input,
  .small-segmented {
    width: 100%;
  }

  .editor-shell .settings-card .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-shell .settings-card .section-heading p {
    max-width: none;
    text-align: left;
  }

  .editor-shell .settings-card .palette-grid,
  .editor-shell .settings-card .effect-grid,
  .template-grid,
  .settings-block-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-shell .editor-tabs {
    position: sticky;
    top: 136px;
    z-index: 9;
    border-radius: 16px;
  }

  .editor-tabs button {
    min-height: 40px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  .panel-section {
    padding: 14px;
    border-radius: 20px;
  }

  .precision-slider {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
  }

  .precision-slider output {
    grid-column: 2;
    min-height: 30px;
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  .editor-shell .settings-card .field input,
  .editor-shell .settings-card .slider-field input,
  .editor-shell .settings-card .small-segmented {
    width: 100%;
  }

  .icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 310px;
  }

  .editor-shell .icon-card {
    min-height: 48px;
  }

  .shape-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .background-style-grid,
  .preset-grid {
    grid-template-columns: 1fr;
  }

  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discord-message {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .discord-avatar {
    width: 36px;
    height: 36px;
  }

  .editor-shell .top-actions {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(20, 18, 45, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  }

  .editor-shell .top-actions .ghost-button {
    height: 38px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .export-format {
    grid-column: 1 / 2;
    justify-content: center;
    width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 0 8px;
    border-radius: 13px;
    font-size: 0.72rem;
  }

  #downloadButton {
    grid-column: 2 / 4;
    width: 100%;
    height: 42px;
    border-radius: 13px;
    font-size: 0.86rem;
  }

  #undoButton,
  #redoButton,
  #resetButton {
    order: 2;
  }
}

@media (max-width: 430px) {
  .editor-shell .top-actions {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .export-format {
    grid-column: 1 / 3;
  }

  #downloadButton {
    grid-column: 3 / 7;
  }

  #undoButton,
  #redoButton,
  #resetButton {
    min-width: 0;
    padding: 0 4px;
    font-size: 0.7rem;
  }

  .preview-meta {
    grid-template-columns: 1fr;
  }

  .editor-shell .settings-card .palette-grid,
  .editor-shell .settings-card .effect-grid,
  .settings-block-grid,
  .border-materials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-shell,
  .app-shell,
  .faq-section,
  .site-footer,
  .site-nav {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }

  .mobile-closed {
    display: grid !important;
  }
}
