:root { color: #16313d; background: #f4f2ec; font-family: system-ui, "Microsoft Yahei", sans-serif; line-height: 1.5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.frame { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.top { background: #14333f; color: #fff; }
.bar, .heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bar { min-height: 64px; }
.bar strong { font-size: 21px; margin-right: 14px; }
.bar span, .muted { font-size: 14px; }
.muted { color: #4d6672; }
main { padding-bottom: 45px !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; }
#workspace > .heading { margin: 26px 0 15px; }
.panel, .card { border: 1px solid #dbe2de; border-radius: 9px; background: #fff; padding: 16px; }
.panel { margin-top: 16px; }
.narrow { max-width: 440px; margin: 36px auto; }
.narrow form, #style-form { display: grid; gap: 14px; }
.narrow h1 { margin-bottom: 16px; }
button, input, select { border: 1px solid #bccbcf; background: #fff; color: #14333f; border-radius: 6px; min-height: 42px; padding: 8px 12px; font: inherit; }
button { cursor: pointer; font-weight: 600; }
button:disabled { opacity: .55; cursor: wait; }
.primary { border-color: #17684f; background: #17684f; color: #fff; }
label { display: grid; gap: 5px; font-size: 14px; }
label :is(input,select) { min-width: 0; width: 100%; }
.filters, .account-form { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 0 0 15px; }
.filters input { flex: 1; min-width: 150px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 12px; }
.card { min-width: 0; display: grid; gap: 9px; align-content: start; }
.card img { width: 100%; height: 180px; object-fit: contain; background: #f1eee8; border-radius: 5px; }
.card h2 { font-size: 18px; overflow-wrap: anywhere; }
.badge { font-size: 13px; border-radius: 5px; padding: 4px 8px; background: #e7efed; white-space: nowrap; }
.badge.live { color: #0d553c; background: #d9efe2; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.status { margin-top: 14px; padding: 10px 12px; border-radius: 6px; background: #d9efe2; }
.status.error, .error { background: #f8e6e2; color: #852b20; padding: 10px; border-radius: 5px; }
summary { cursor: pointer; font-weight: 700; }
#history p, #staff-list p { padding: 10px 0; border-bottom: 1px solid #e4e7e3; }
.account-form { margin-top: 12px; }
dialog { width: min(calc(100% - 24px), 620px); max-height: 91dvh; border: 1px solid #dbe2de; border-radius: 12px; color: #16313d; padding: 20px; }
dialog::backdrop { background: #0e242cb3; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.preview { max-width: 100%; height: 145px; object-fit: contain; }
.line { border-top: 1px solid #dbe2de; padding-top: 10px; }
.stock-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 10px; }
