* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: #1c1c1c; background: #f6f6f4; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; color: #fff; background: #555; }
.top-prod { background: #b3261e; }
.top-stage { background: #1a56b0; }
.top form { display: flex; gap: 12px; align-items: center; margin: 0; }
main { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
footer { max-width: 720px; margin: 0 auto; padding: 16px; color: #777; font-size: 14px; border-top: 1px solid #ddd; }
.status { padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.ok { background: #e3f4e6; color: #17602a; }
.bad { background: #fde7e5; color: #8f1d15; }
.muted { color: #777; font-size: 14px; }
.login label { display: block; margin-bottom: 12px; }
.login input[type=text], .login input[type=password] { display: block; width: 100%; max-width: 320px; padding: 8px; font-size: 16px; }
button { padding: 8px 16px; font-size: 16px; cursor: pointer; }
main:has(table.list) { max-width: 1100px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.filter input[type=search] { flex: 1 1 260px; padding: 8px; font-size: 16px; }
.filter select { padding: 8px; font-size: 16px; max-width: 100%; }
table.list { width: 100%; border-collapse: collapse; background: #fff; }
table.list th, table.list td { padding: 6px 10px; border-bottom: 1px solid #e3e3e0; text-align: left; vertical-align: top; }
table.list .num { text-align: right; white-space: nowrap; }
tr.muted td { color: #999; }
.pages { display: flex; gap: 16px; align-items: center; }
h2 { font-size: 18px; margin-top: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tabs a.current { font-weight: 700; color: #1c1c1c; text-decoration: none; }
.state { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 14px; font-weight: 600; background: #e6e6e3; white-space: nowrap; }
.state-reserved { background: #fff1c2; }
.state-assembled { background: #d6e6ff; }
.state-shipped { background: #e3f4e6; color: #17602a; }
.state-cancelled { background: #eee; color: #888; }
.warn { color: #8f1d15; font-weight: 600; }
table.props th { text-align: left; font-weight: 400; color: #777; padding: 2px 16px 2px 0; vertical-align: top; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.actions form, .status form { margin: 0; }
.status form { margin-top: 8px; }
button.primary { background: #1a56b0; color: #fff; border: 0; border-radius: 6px; }
button.big { width: 100%; padding: 16px; font-size: 20px; }
.messages { list-style: none; padding: 0; }
.messages li { padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; background: #e3f4e6; color: #17602a; font-weight: 600; }
.messages li.error { background: #fde7e5; color: #8f1d15; }
.card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.card h2 { margin-top: 0; }
.pick { padding-left: 18px; font-size: 18px; }
.pick li { margin-bottom: 6px; }
main:has(table.props) { max-width: 1100px; }
.note { background: #fff1c2; border-left: 5px solid #d9a400; padding: 10px 12px; margin: 10px 0; font-size: 18px; }
.sold { border-top: 1px solid #ddd; padding-top: 8px; margin-top: 8px; }
.sold p { margin: 4px 0; }
.sold-title { font-size: 16px; }
.pick .role { display: inline-block; background: #1c1c1c; color: #fff; border-radius: 4px; padding: 0 8px; font-size: 15px; text-transform: uppercase; }
.pick .qty { white-space: nowrap; }
.pick .muted { display: block; }
.comment { margin: 16px 0; }
.comment textarea { display: block; width: 100%; max-width: 640px; padding: 8px; font: inherit; margin: 6px 0; }
