* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; background: #1a1d24; color: #e6e8ec; }
a { color: #6cc1ff; }
button { background: #2c7be5; color: white; border: 0; padding: 8px 14px; border-radius: 4px; cursor: pointer; font-weight: 600; }
button.ghost { background: transparent; color: #aab; border: 1px solid #444; }
button.danger { background: #c0392b; }
button:hover { filter: brightness(1.1); }
input, select { background: #232730; border: 1px solid #333; color: #e6e8ec; padding: 6px 8px; border-radius: 3px; width: 100%; }
label { display: block; font-size: 12px; color: #aab; margin-bottom: 6px; }
label > input, label > select { margin-top: 3px; font-size: 14px; }

.subtle { color: #889; font-size: 13px; }
.err { color: #ff6b6b; min-height: 1em; margin-top: 8px; }
.msg { color: #6cc1ff; min-height: 1em; margin-top: 8px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.right { justify-content: flex-end; }
.spacer { flex: 1; }

.centered { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.card { background: #232730; padding: 28px; border-radius: 8px; min-width: 320px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.card h1 { margin: 0 0 4px 0; font-size: 22px; }
.card label { margin-top: 14px; }
.card button { width: 100%; margin-top: 18px; padding: 10px; }

header { background: #232730; padding: 12px 18px; border-bottom: 1px solid #333; }
header h1 { margin: 0 0 8px 0; font-size: 18px; }
header #search { max-width: 240px; }
header #category { max-width: 200px; width: auto; }
header label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #aab; font-size: 12px; }
header label.inline input { width: auto; margin: 0; }
header #shopFilter, header #adminFilter { width: auto; }
.list .ok { color: #6cc16c; font-weight: bold; }

.split { display: grid; grid-template-columns: 1fr 480px; height: calc(100vh - 84px); }
.list { overflow: auto; }
.list table { width: 100%; border-collapse: collapse; font-size: 13px; }
.list th, .list td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #2a2d35; }
.list th { background: #1f232b; position: sticky; top: 0; }
.list tr:hover { background: #232730; cursor: pointer; }
.list tr.selected { background: #2c3a55; }
.list img { width: 32px; height: 32px; object-fit: contain; background: #1a1d24; border: 1px solid #333; }

.editor { border-left: 1px solid #333; padding: 18px; overflow: auto; background: #1f222a; }
.editor h2 { margin-top: 0; }
.editor .img { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.editor .img img { width: 96px; height: 96px; object-fit: contain; background: #1a1d24; border: 1px solid #333; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid .span2 { grid-column: span 2; }
.hint { display: block; font-size: 11px; color: #6cc1ff; margin-top: 3px; }
.inline-orphan { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: #aab; font-size: 11px; }
.inline-orphan input { width: auto; margin: 0; }
.inline-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: #cdd; }
.inline-check input { width: auto; margin: 0; }
.elu-upload { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.elu-upload > span { color: #aab; font-size: 12px; min-width: 110px; }
.elu-upload select { width: auto; flex: 1; min-width: 160px; }
.elu-upload input[type=file] { width: auto; flex: 1; }
.elu-upload button { padding: 4px 10px; font-size: 12px; }
