﻿:root {
  --bg-0: #060912;
  --bg-1: #10172d;
  --panel: rgba(10, 16, 33, 0.78);
  --line: rgba(109, 233, 255, 0.35);
  --text: #eaf8ff;
  --muted: #9ec0ce;
  --cyan: #6de9ff;
  --gold: #ffd06a;
  --danger: #ff6b8a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  overflow-x: hidden;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(81, 183, 255, 0.2), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(255, 149, 93, 0.18), transparent 32%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1));
}

.ambient {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0.4px);
}

.ambient-a {
  width: 380px;
  height: 380px;
  left: -140px;
  top: 35%;
  border: 1px solid rgba(109, 233, 255, 0.25);
  background: radial-gradient(circle, rgba(109, 233, 255, 0.18), rgba(109, 233, 255, 0));
}

.ambient-b {
  width: 340px;
  height: 340px;
  right: -120px;
  top: 16%;
  border: 1px solid rgba(255, 208, 106, 0.22);
  background: radial-gradient(circle, rgba(255, 208, 106, 0.12), rgba(255, 208, 106, 0));
}

.app-shell {
  position: relative;
  width: min(1160px, 94vw);
  margin: 28px auto 40px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(7, 13, 26, 0.88), rgba(10, 16, 33, 0.62));
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.topbar {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(109, 233, 255, 0.1), rgba(255, 208, 106, 0.07));
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
  letter-spacing: 0.04em;
}

h1 {
  margin-top: 4px;
  font-size: clamp(24px, 3.2vw, 40px);
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.primary-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.nav-tile {
  min-height: 44px;
  border: 1px solid rgba(109, 233, 255, 0.35);
  border-radius: 12px;
  background: rgba(8, 17, 34, 0.78);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.nav-tile:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.nav-tile.is-active {
  border-color: var(--gold);
  background: linear-gradient(110deg, rgba(109, 233, 255, 0.16), rgba(255, 208, 106, 0.18));
}

.panel {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: var(--panel);
  padding: 18px;
}

.panel.panel-active {
  display: block;
  animation: panel-in 240ms ease;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.world-intro {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 208, 106, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(255, 208, 106, 0.08), rgba(109, 233, 255, 0.07)),
    rgba(7, 14, 29, 0.78);
}

.world-intro h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #ffe4a3;
}

.world-intro-lines {
  margin: 0;
}

.world-intro-lines span {
  display: block;
  color: #c9deea;
  line-height: 1.72;
}

.world-intro-lines span:last-child {
  margin-top: 6px;
  color: #ffcf74;
  font-weight: 700;
}

.feature-card {
  padding: 14px;
  border: 1px solid rgba(109, 233, 255, 0.25);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 26, 52, 0.66), rgba(7, 13, 26, 0.7));
}

.feature-card p {
  margin-top: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.btn {
  border: 1px solid rgba(109, 233, 255, 0.45);
  border-radius: 10px;
  background: rgba(9, 17, 34, 0.78);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.btn:hover:not(:disabled) {
  border-color: var(--cyan);
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.btn-primary {
  border-color: rgba(255, 208, 106, 0.65);
  background: linear-gradient(130deg, rgba(109, 233, 255, 0.12), rgba(255, 208, 106, 0.16));
}

.btn-danger {
  border-color: rgba(255, 107, 138, 0.68);
  background: linear-gradient(130deg, rgba(255, 107, 138, 0.2), rgba(255, 107, 138, 0.08));
}

.btn-danger:hover:not(:disabled) {
  border-color: rgba(255, 133, 159, 0.88);
}

.step-label {
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.create-step-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.step-chip {
  border: 1px solid rgba(109, 233, 255, 0.32);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  background: rgba(8, 17, 34, 0.82);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step-chip:hover:not(:disabled) {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.step-chip.is-active {
  border-color: var(--gold);
  background: linear-gradient(130deg, rgba(109, 233, 255, 0.16), rgba(255, 208, 106, 0.2));
}

.step-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.step-subtitle {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--muted);
}

.create-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.create-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 14px;
}

.create-step-view[hidden] {
  display: none !important;
}

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

.origin-card,
.domain-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(109, 233, 255, 0.3);
  border-radius: 12px;
  background: rgba(8, 16, 33, 0.88);
  color: var(--text);
  padding: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.origin-card:hover,
.domain-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.origin-card.selected,
.domain-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 208, 106, 0.45), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.domain-order {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid rgba(255, 208, 106, 0.6);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  color: #ffe1a8;
}

.origin-zh {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.origin-en {
  display: block;
  margin-top: 4px;
  color: #8eddf8;
  font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
  font-size: 13px;
}

.origin-summary {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.selection-pane {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(10, 18, 36, 0.84);
}

.step2-form-pane {
  border: 1px solid rgba(109, 233, 255, 0.18);
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 14, 29, 0.68);
}

.step4-main-pane {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.step5-main-pane {
  display: grid;
  gap: 12px;
}

.step4-main-pane > .step4-block:first-child {
  grid-column: 1 / -1;
}

#patronBlock {
  grid-column: 1 / -1;
}

.step4-block {
  border: 1px solid rgba(109, 233, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 14, 29, 0.68);
}

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

.attribute-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(109, 233, 255, 0.3);
  border-radius: 12px;
  background: rgba(8, 16, 33, 0.88);
  color: var(--text);
  padding: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.attribute-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.attribute-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 208, 106, 0.45), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.attribute-card.locked {
  cursor: not-allowed;
  opacity: 0.62;
}

.event-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}

.event-list.compact {
  max-height: 220px;
}

.event-card {
  text-align: left;
  border: 1px solid rgba(109, 233, 255, 0.24);
  border-radius: 10px;
  background: rgba(6, 13, 28, 0.84);
  color: var(--text);
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.event-card:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--cyan);
}

.event-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 208, 106, 0.4);
}

.event-card:disabled {
  cursor: default;
  opacity: 0.92;
}

.event-card.custom-trigger {
  border-style: dashed;
  border-color: rgba(255, 208, 106, 0.48);
  background: linear-gradient(145deg, rgba(255, 208, 106, 0.08), rgba(109, 233, 255, 0.08));
}

.event-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.event-content {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.event-tag {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid rgba(255, 208, 106, 0.45);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  color: #ffd88a;
}

.patron-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(109, 233, 255, 0.2);
}

.ability-slot-wrap {
  margin-top: 8px;
}

.ability-slot-card {
  border: 1px solid rgba(109, 233, 255, 0.24);
  border-radius: 10px;
  background: rgba(6, 13, 28, 0.84);
  padding: 10px;
}

.ability-slot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.ability-slot-meta {
  display: inline-flex;
  border: 1px solid rgba(109, 233, 255, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  color: #c8effd;
}

.ability-slot-source {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ability-choice-grid,
.ability-third-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ability-choice-btn {
  text-align: left;
  border: 1px solid rgba(109, 233, 255, 0.28);
  border-radius: 10px;
  background: rgba(8, 16, 33, 0.84);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ability-choice-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--cyan);
}

.ability-choice-btn.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 208, 106, 0.45);
}

.ability-choice-btn:disabled {
  cursor: default;
  opacity: 0.88;
}

.ability-name {
  font-size: 14px;
  font-weight: 700;
}

.ability-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.patron-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #d6effa;
}

.custom-box {
  position: relative;
  margin-top: 10px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(109, 233, 255, 0.18);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 15, 31, 0.52);
}

.custom-box.is-locked {
  opacity: 0.7;
}

.custom-box.is-locked::after {
  content: '已锁定：点击左侧对应“自定义”按钮解锁';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(3, 8, 18, 0.62);
  color: #c5e2ef;
  font-size: 12px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.custom-side-panel {
  margin-top: 12px;
  border: 1px solid rgba(109, 233, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(6, 13, 28, 0.6);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.custom-side-panel h4 {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #cbefff;
}

.custom-side-panel .field-note {
  margin-top: 0;
}

.custom-side-panel > h4,
.custom-side-panel > .field-note {
  grid-column: 1 / -1;
}

.custom-box[hidden] {
  display: none !important;
}

.custom-title {
  margin: 0;
  color: #ffe2a6;
  font-size: 13px;
  font-weight: 700;
}

.ability-select {
  position: relative;
}

.ability-select-trigger {
  width: 100%;
  border: 1px solid rgba(109, 233, 255, 0.3);
  border-radius: 10px;
  background: rgba(4, 10, 22, 0.72);
  color: var(--text);
  font-size: 13px;
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
}

.ability-select-trigger::after {
  content: '▼';
  float: right;
  color: #9cdff3;
  font-size: 10px;
  margin-top: 2px;
}

.ability-select-menu {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid rgba(109, 233, 255, 0.32);
  border-radius: 10px;
  background: rgba(5, 11, 24, 0.95);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.ability-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ability-chip {
  border: 1px solid rgba(109, 233, 255, 0.28);
  border-radius: 999px;
  background: rgba(9, 18, 37, 0.8);
  color: #d6edf6;
  font-size: 12px;
  padding: 5px 9px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ability-chip:hover:not(:disabled) {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.ability-chip.is-selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 208, 106, 0.2), rgba(109, 233, 255, 0.15));
  color: #ffe7b7;
}

.ability-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.custom-box input,
.custom-box textarea {
  width: 100%;
  border: 1px solid rgba(109, 233, 255, 0.28);
  border-radius: 10px;
  background: rgba(4, 10, 22, 0.72);
  color: var(--text);
  font-size: 14px;
  padding: 9px 11px;
}

.custom-box textarea {
  resize: vertical;
  min-height: 92px;
}

.custom-box input:focus,
.custom-box textarea:focus {
  outline: 2px solid rgba(109, 233, 255, 0.38);
  border-color: var(--cyan);
}

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

.field-group label,
.field-group legend {
  display: block;
  margin-bottom: 7px;
  color: #d8f5ff;
  font-size: 14px;
  font-weight: 700;
}

#ageInput {
  width: 100%;
  border: 1px solid rgba(109, 233, 255, 0.32);
  border-radius: 10px;
  background: rgba(4, 10, 22, 0.72);
  color: var(--text);
  font-size: 15px;
  padding: 10px 12px;
}

#ageInput:focus {
  outline: 2px solid rgba(109, 233, 255, 0.38);
  border-color: var(--cyan);
}

.field-note {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.gender-fieldset {
  border: 1px solid rgba(109, 233, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
}

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

.gender-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(109, 233, 255, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  color: #cceffc;
  background: rgba(9, 18, 37, 0.68);
  font-size: 14px;
  cursor: pointer;
}

.gender-option:hover {
  border-color: rgba(109, 233, 255, 0.44);
}

.selected-origin {
  margin-top: 8px;
  min-height: 220px;
  max-height: 70vh;
  overflow: auto;
  border: 1px solid rgba(109, 233, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(5, 12, 26, 0.64);
}

.selected-origin.selected-origin-compact {
  min-height: 140px;
}

.selected-origin p {
  margin: 0;
  line-height: 1.5;
}

.selected-title {
  font-size: 19px;
  font-weight: 700;
}

.selected-sub {
  margin-top: 4px;
  color: #8eddf8;
  font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
  font-size: 13px;
}

.selected-summary {
  margin-top: 8px;
  color: var(--muted);
}

.selected-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(109, 233, 255, 0.22);
}

.selected-section h4 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #bce9f8;
}

.selected-lore,
.gift-type,
.gift-effect {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.gift-type {
  color: #9de5ff;
}

.empty-state {
  color: var(--muted);
}

.step-rules {
  margin: 12px 0 6px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.rules-hint {
  min-height: 22px;
  margin-top: 4px;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 600;
}

.step-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.preview-block,
.transfer-block {
  border: 1px solid rgba(109, 233, 255, 0.22);
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 14, 29, 0.74);
}

.preview-block h3,
.transfer-block h3 {
  margin-bottom: 8px;
}

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

.preview-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  background: rgba(4, 10, 22, 0.76);
}

.preview-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #b7ecfb;
}

.preview-card p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.preview-card p strong {
  color: #d9f6ff;
}

.card-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.file-picker {
  display: inline-flex;
  align-items: center;
  border: 1px dashed rgba(109, 233, 255, 0.55);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.file-picker input {
  display: none;
}

.json-label {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 600;
}

#jsonInput {
  width: 100%;
  border: 1px solid rgba(109, 233, 255, 0.35);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  background: rgba(4, 10, 22, 0.72);
  font-family: Consolas, 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

#jsonInput:focus {
  outline: 2px solid rgba(109, 233, 255, 0.4);
  border-color: var(--cyan);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(4, 10, 22, 0.92);
  border: 1px solid rgba(109, 233, 255, 0.55);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .primary-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-layout,
  .home-grid,
  .preview-grid,
  .transfer-grid {
    grid-template-columns: 1fr;
  }

  .step4-main-pane {
    grid-template-columns: 1fr;
  }

  .origin-grid,
  .domain-grid,
  .attribute-grid,
  .ability-choice-grid,
  .ability-third-list {
    grid-template-columns: 1fr;
  }

  .gender-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    margin: 14px auto 24px;
    padding: 14px;
    border-radius: 16px;
  }

  .topbar {
    padding: 12px;
  }

  .subtitle {
    font-size: 14px;
  }

  .panel {
    padding: 12px;
  }

  .create-toolbar .btn {
    width: 100%;
  }

  .origin-zh {
    font-size: 17px;
  }

  .selected-origin {
    max-height: none;
  }

  .selected-origin.selected-origin-compact {
    min-height: 110px;
  }

  .btn,
  .nav-tile {
    min-height: 42px;
  }

  .ability-select-menu {
    position: static;
    margin-top: 8px;
  }
}

@media (min-width: 1180px) {
  .custom-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
