* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #FFF6D8;
  color: #2B2416;
  font-size: 14px;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
#toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #2B2416;
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 9;
}
#toast.on { opacity: 1; }
.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.panel {
  width: 420px;
  max-width: 100%;
  background: #fff;
  border-radius: 28px;
  padding: 36px 32px 28px;
  box-shadow: 0 18px 50px rgba(214, 164, 0, .18);
  text-align: center;
}
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: #FFD233;
}
h1 { margin: 12px 0 8px; font-size: 28px; }
.panel p, .hint { color: #8A7B62; line-height: 1.6; }
label { display: block; text-align: left; margin: 18px 0 8px; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 0;
  background: #FFF8E7;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 96px; resize: vertical; }
.panel button, .btn {
  border: 0;
  background: #FFD233;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
}
.panel button { width: 100%; margin-top: 16px; height: 46px; }
.shell { min-height: 100vh; display: flex; }
aside {
  width: 220px;
  flex: none;
  background: #2B2416;
  color: #FFF6D8;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px 16px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand strong, .brand span { display: block; }
.brand span { color: #CDB892; font-size: 12px; margin-top: 2px; }
aside button {
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 12px;
  padding: 11px 12px;
}
aside button.on { background: #FFD233; color: #2B2416; font-weight: 700; }
aside .ghost { margin-top: auto; color: #CDB892; }
.main { flex: 1; min-width: 0; padding: 22px 28px 40px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .mini {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
}
.chip.on { background: #FFD233; font-weight: 700; }
.who { color: #8A7B62; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat, .card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(214, 164, 0, .12);
}
.stat { border: 0; text-align: left; padding: 18px; }
.stat b { display: block; font-size: 32px; line-height: 1.1; }
.stat span, .muted { color: #8A7B62; }
.card { padding: 18px 20px; margin-top: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #F4E7C3; vertical-align: top; }
th { color: #8A7B62; font-weight: 600; font-size: 12px; }
.price { color: #FF5252; font-weight: 700; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 8px; background: #FFF3C4; color: #8A6200; font-size: 12px; }
.pill.open { background: #E7F6D4; color: #4E8C16; }
.pill.closed, .pill.no { background: #FFE4E4; color: #FF5252; }
.ops { display: flex; gap: 8px; justify-content: flex-end; }
.mini.ghost { background: #F4F4F4; }
.goods-price, .stockbox { display: flex; gap: 8px; align-items: center; }
.goods-price input, .stockbox input { width: 88px; padding: 8px 10px; }
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field { margin-bottom: 8px; }
.field span { display: block; color: #8A7B62; font-size: 12px; margin-bottom: 4px; }
.empty { padding: 28px 0; text-align: center; }
.danger { background: transparent; color: #FF5252; border: 0; padding: 0; font-weight: 700; }
@media (max-width: 980px) {
  .shell { display: block; }
  aside { width: auto; }
  .stats, .banner-grid { grid-template-columns: 1fr 1fr; }
}
