* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff4f8 0%, #fff9ed 54%, #f7fff9 100%);
  color: #6a2440;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  min-height: 190px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ff8fb3 0%, #ffc2d6 48%, #ffe4a8 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 24px 54px rgba(255, 143, 179, 0.28);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(106, 36, 64, 0.68);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 42px;
  line-height: 1.1;
}

.sub,
.hint {
  max-width: 620px;
  margin-top: 8px;
  color: rgba(106, 36, 64, 0.72);
  font-size: 15px;
}

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  margin-top: 22px;
}

.panel {
  border: 1px solid rgba(255, 180, 205, 0.48);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(255, 143, 179, 0.14);
}

.orders-panel {
  margin-top: 22px;
  padding: 24px;
}

.form-panel {
  padding: 24px;
  align-self: start;
}

.list-panel {
  padding: 24px;
  min-height: 520px;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

h2 {
  font-size: 22px;
}

.pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff0f6;
  color: #c04773;
  font-weight: 800;
}

label {
  display: block;
  margin-bottom: 16px;
  color: #8b5268;
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ffd6e5;
  border-radius: 16px;
  background: #fff8fb;
  color: #6a2440;
  outline: none;
}

input {
  height: 46px;
  padding: 0 14px;
}

textarea {
  padding: 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #ff8fb3;
  box-shadow: 0 0 0 4px rgba(255, 143, 179, 0.16);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 14px;
  align-items: end;
}

.toggle-row {
  height: 46px;
  margin-top: 28px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid #ffd6e5;
  border-radius: 16px;
  background: #fff8fb;
  display: flex;
  align-items: center;
  gap: 9px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.primary-button,
.ghost-button,
.text-button,
.danger-button,
.edit,
.delete,
.delete-order {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  height: 48px;
  background: #ff7fa8;
  color: white;
  box-shadow: 0 12px 24px rgba(255, 127, 168, 0.26);
}

.ghost-button {
  height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.62);
  color: #b83262;
}

.text-button {
  height: 36px;
  padding: 0 14px;
  background: #fff0f6;
  color: #c04773;
}

.danger-button {
  height: 36px;
  padding: 0 14px;
  background: #ffe6e6;
  color: #c0395b;
}

.message,
.empty-text {
  min-height: 22px;
  color: #c04773;
  font-size: 14px;
}

.message {
  margin-top: 12px;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.summary span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff0f6;
  color: #9b4968;
  font-size: 13px;
  font-weight: 800;
}

.items,
.orders {
  display: grid;
  gap: 12px;
}

.orders {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.item-card,
.order-card {
  padding: 16px;
  border: 1px solid #ffe1ec;
  border-radius: 20px;
  background: #fff;
}

.item-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
}

.item-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #ffeaf2;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.item-head,
.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item-head {
  justify-content: flex-start;
  align-items: center;
}

h3 {
  font-size: 17px;
}

.tag,
.status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ff7fa8;
  color: white;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tag {
  display: none;
}

.item-card.recommended .tag {
  display: inline-block;
}

.desc,
.order-time,
.note {
  margin-top: 6px;
  color: #9a7381;
  font-size: 14px;
}

.meta,
.order-total {
  margin-top: 7px;
  color: #c04773;
  font-size: 13px;
  font-weight: 800;
}

.actions {
  display: flex;
  gap: 8px;
}

.edit,
.delete,
.delete-order {
  height: 36px;
  padding: 0 13px;
}

.edit {
  background: #ffe4a8;
  color: #7b2442;
}

.delete {
  background: #fff0f6;
  color: #c04773;
}

.delete-order {
  background: #ffe6e6;
  color: #c0395b;
}

.order-lines {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ffe1ec;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  color: #7d5262;
  font-size: 14px;
}

.customer {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff0f6;
  color: #8b5268;
  font-size: 14px;
}

.order-total {
  text-align: right;
  font-size: 16px;
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.order-footer .order-total {
  margin-top: 0;
}

@media (max-width: 820px) {
  .hero,
  .layout {
    display: block;
  }

  .hero-actions {
    justify-content: flex-start;
    margin-top: 22px;
  }

  .list-panel {
    margin-top: 18px;
  }

  .item-card {
    grid-template-columns: 52px 1fr;
  }

  .actions {
    grid-column: 1 / -1;
  }
}
