:root {
  --bg: #fff8f3;
  --panel: #ffffff;
  --line: rgba(220, 196, 181, 0.45);
  --primary: #d98661;
  --primary-soft: #fff0e7;
  --green: #31483a;
  --text: #342923;
  --muted: #8f7d72;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #fffaf5 0%, #fff2e7 100%);
  color: var(--text);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px 1fr;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.92);
  padding: 28px 22px;
}

.brand-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.brand h1 {
  margin: 18px 0 12px;
  font-size: 32px;
}

.brand p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.toolbar {
  display: flex;
  gap: 12px;
  margin: 24px 0 18px;
  flex-wrap: wrap;
}

.password-input {
  flex: 1;
  min-width: 160px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fffdf9;
  padding: 0 16px;
  font-size: 14px;
}

.btn {
  border: none;
  border-radius: 999px;
  height: 42px;
  padding: 0 18px;
  background: #f4f2ef;
  color: #5f534c;
  cursor: pointer;
  font-size: 14px;
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
}

.btn.danger {
  background: #f8ebe6;
  color: #c95f47;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.product-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  cursor: pointer;
}

.product-item.active {
  border-color: rgba(217, 134, 97, 0.55);
  box-shadow: 0 12px 28px rgba(188, 137, 103, 0.12);
}

.product-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  background: #fff1e8;
}

.product-fake {
  width: 100%;
  height: 140px;
  border-radius: 16px;
}

.product-item h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.product-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.product-price {
  margin-top: 10px;
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
}

.content {
  padding: 30px;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
}

.panel-stack {
  margin-top: 24px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-head h2 {
  margin: 0;
  font-size: 30px;
}

.panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.status {
  padding: 10px 16px;
  border-radius: 999px;
  background: #eef6f1;
  color: var(--green);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.field,
.checkbox-row,
.preview-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full,
.checkbox-row.full,
.preview-block.full {
  grid-column: 1 / -1;
}

.field span,
.checkbox-row span {
  font-size: 14px;
  color: #6f5e53;
}

.field input,
.field select,
.settings-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdf9;
  padding: 0 14px;
  font-size: 15px;
}

.field input,
.field select {
  height: 46px;
}

.settings-textarea {
  min-height: 260px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.settings-textarea.compact {
  min-height: 96px;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.preview-block {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #fffdf9;
}

#imagePreview {
  width: 100%;
  max-height: 260px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff5ee;
}

.preview-tip {
  color: var(--muted);
  font-size: 14px;
}

.actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
}

.board-list {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.board-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.board-card h3 {
  margin: 0;
  font-size: 18px;
}

.board-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.board-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.board-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}
