:root {
  --bg: #070a0e;
  --panel: #090d12;
  --panel-2: #0c1218;
  --panel-3: #10171f;
  --ink: #e8e3d8;
  --muted: #93a0aa;
  --muted-2: rgba(232, 227, 216, 0.42);
  --brass: #b8945f;
  --brass-soft: rgba(184, 148, 95, 0.24);
  --line: rgba(232, 227, 216, 0.11);
  --line-strong: rgba(232, 227, 216, 0.2);
  --danger: #d98f84;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(184, 148, 95, 0.22);
  border-radius: 99px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.admin-app {
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr) 62px;
  width: 100vw;
  height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #080c11;
  z-index: 10;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-line {
  display: block;
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, transparent, var(--brass) 30%, var(--brass) 70%, transparent);
  flex: 0 0 auto;
}

.admin-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.admin-brand span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--muted-2);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.save-state {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.save-state.is-dirty {
  color: #e2b66c;
  border-color: rgba(217, 164, 65, 0.35);
  background: rgba(217, 164, 65, 0.07);
}

.user-chip {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--brass);
}

.workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 440px;
  min-height: 0;
}

.slot-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.rail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 15px 13px;
  border-bottom: 1px solid var(--line);
}

.rail-head p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.rail-head small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.rail-count {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.slot-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.slot-btn {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.slot-btn:hover {
  border-color: rgba(232, 227, 216, 0.18);
}

.slot-btn.active {
  border-color: var(--brass-soft);
  background: rgba(184, 148, 95, 0.085);
}

.slot-btn.hero {
  background: linear-gradient(135deg, rgba(184, 148, 95, 0.10), var(--panel-2) 55%);
}

.slot-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #121a22;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  border: 1px solid var(--line);
}

.slot-btn.hero .slot-icon {
  color: var(--brass);
  border-color: var(--brass-soft);
}

.slot-copy {
  min-width: 0;
}

.slot-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.slot-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.slot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2b353f;
}

.slot-btn.has-item .slot-dot {
  background: var(--brass);
  box-shadow: 0 0 8px rgba(184, 148, 95, 0.5);
}

.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.storage-line {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted-2);
}

.preview {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, #0a1118 0%, #04070a 68%);
}

.admin-canvas {
  position: absolute;
  inset: 0;
}

.preview-top {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 7px;
  z-index: 2;
  pointer-events: none;
}

.preview-badge,
.preview-stats {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(5, 8, 12, 0.6);
  backdrop-filter: blur(12px);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.preview-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(5, 8, 12, 0.45);
  color: rgba(232, 227, 216, 0.35);
  font-size: 9px;
  letter-spacing: 0.15em;
  pointer-events: none;
}

.preview-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 7px;
  z-index: 2;
}

.inspector {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: var(--panel);
}

.inspector-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.inspector-tabs button {
  padding: 14px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.inspector-tabs button:hover {
  color: var(--ink);
}

.inspector-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.inspector-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 18px 34px;
}

.tab-panel {
  animation: panel-in 0.22s ease;
}

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

.section {
  margin-bottom: 24px;
}

.section:last-child {
  margin-bottom: 6px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-title small {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: none;
}

.section-hint {
  margin: -4px 0 12px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}

.field > span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brass-soft);
  background: #0d141b;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(232, 227, 216, 0.22);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.field textarea.tall {
  min-height: 118px;
}

.field-hint {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted-2);
}

.slot-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
}

.slot-summary-copy {
  min-width: 0;
}

.slot-summary-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.slot-summary-copy small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.type-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid var(--brass-soft);
  border-radius: 99px;
  color: var(--brass);
  font-size: 9px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.slot-hint {
  margin: 0 0 14px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted-2);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.segmented button {
  padding: 8px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.active {
  background: rgba(184, 148, 95, 0.15);
  color: var(--brass);
}

.media-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed rgba(232, 227, 216, 0.17);
  border-radius: 10px;
  background: var(--panel-2);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.media-box:hover,
.media-box.drop-active {
  border-color: var(--brass-soft);
  background: rgba(184, 148, 95, 0.06);
}

.media-thumb {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #05080c;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-info {
  min-width: 0;
  flex: 1;
}

.media-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink);
}

.media-meta {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted-2);
}

.media-action {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--brass);
  font-size: 10px;
  cursor: pointer;
}

.upload-progress {
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(232, 227, 216, 0.09);
}

.upload-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brass);
  transition: width 0.15s linear;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.primary-btn {
  padding: 10px 17px;
  border: 0;
  border-radius: 8px;
  background: var(--brass);
  color: #1c1409;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.primary-btn:hover {
  filter: brightness(1.07);
}

.primary-btn:active {
  transform: translateY(1px);
}

.primary-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.primary-btn.wide {
  width: 100%;
}

.ghost-btn {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.ghost-btn:hover {
  border-color: var(--brass-soft);
  color: var(--brass);
}

.ghost-btn.small {
  padding: 6px 9px;
  font-size: 10px;
}

.danger-btn {
  padding: 9px 15px;
  border: 1px solid rgba(197, 93, 82, 0.32);
  border-radius: 7px;
  background: rgba(197, 93, 82, 0.12);
  color: var(--danger);
  font-size: 11px;
  cursor: pointer;
}

.danger-btn:hover {
  background: rgba(197, 93, 82, 0.2);
}

.text-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brass);
  font-size: 11px;
  cursor: pointer;
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  cursor: pointer;
}

.switch > span {
  font-size: 11px;
  color: var(--muted);
}

.switch input {
  appearance: none;
  width: 38px;
  height: 21px;
  margin: 0;
  border-radius: 99px;
  background: #1a232c;
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #d8d2c6;
  transition: transform 0.2s ease;
}

.switch input:checked {
  background: rgba(184, 148, 95, 0.75);
  border-color: var(--brass-soft);
}

.switch input:checked::after {
  transform: translateX(17px);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
}

.range-label {
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.range-row input[type="range"] {
  width: 100%;
  height: 3px;
  appearance: none;
  border-radius: 99px;
  background: rgba(232, 227, 216, 0.12);
  outline: none;
}

.range-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brass);
  cursor: pointer;
  border: 2px solid #0b1015;
  box-shadow: 0 0 0 1px rgba(184, 148, 95, 0.35);
}

.range-value {
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.color-row input[type="color"] {
  width: 34px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  cursor: pointer;
}

.color-row span {
  font-size: 10px;
  color: var(--muted-2);
}

.light-card {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  overflow: hidden;
}

.light-card[open] {
  border-color: rgba(184, 148, 95, 0.22);
}

.light-card summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.light-card summary::-webkit-details-marker {
  display: none;
}

.light-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  flex: 0 0 auto;
}

.light-summary-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.light-summary-value {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.light-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
}

.light-body .field {
  margin-bottom: 9px;
}

.light-body .switch {
  padding: 6px 0;
}

.scene-card {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.storage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.storage-cell {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.015);
}

.storage-cell span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.storage-cell strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.backup-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
}

.backup-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.015);
}

.backup-copy {
  flex: 1;
  min-width: 0;
}

.backup-copy strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
}

.backup-copy small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: var(--muted-2);
}

.empty-state {
  padding: 24px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  text-align: center;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.8;
}

.savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  background: #080c11;
  z-index: 10;
}

.savebar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
}

.savebar-info small {
  margin-left: 3px;
  font-size: 9px;
  color: var(--muted-2);
}

.dirty-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  flex: 0 0 auto;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.dirty-dot.is-dirty {
  background: #d9a441;
  border-color: #d9a441;
  box-shadow: 0 0 9px rgba(217, 164, 65, 0.55);
}

.savebar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.savebar-note {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  white-space: nowrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  z-index: 120;
  transform: translateX(-50%) translateY(6px);
  padding: 11px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(8, 13, 18, 0.94);
  backdrop-filter: blur(18px);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

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

.toast.is-error {
  border-color: rgba(197, 93, 82, 0.35);
  color: var(--danger);
}

.confirm {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.confirm-card {
  width: min(390px, calc(100vw - 40px));
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0b1117;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.confirm-card h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.confirm-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.login {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 38%, #0c141b 0%, #05080c 66%);
}

.login-card {
  width: min(410px, 100%);
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(10, 15, 20, 0.94);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
}

.login-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.login-head p {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--brass);
}

.login-head h1 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.login-note {
  margin: 18px 0 20px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.login-error {
  margin: -4px 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(197, 93, 82, 0.3);
  border-radius: 7px;
  background: rgba(197, 93, 82, 0.08);
  color: var(--danger);
  font-size: 11px;
  line-height: 1.6;
}

.login-back {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 10px;
  color: var(--muted-2);
  text-decoration: none;
}

.login-back:hover {
  color: var(--brass);
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 215px minmax(0, 1fr) 370px;
  }

  .inspector-scroll {
    padding: 15px 14px 28px;
  }
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 50vh) minmax(0, 1fr);
  }

  .slot-rail {
    display: none;
  }

  .preview {
    grid-row: 1;
  }

  .inspector {
    grid-row: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .savebar-note,
  .preview-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
