:root {
  --orange: #e87511;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e2e2e2;
  --bg: #f5f5f4;
  --card: #fff;
  --warn: #8a4b00;
  --warn-bg: #fff4e5;
  --error: #b3261e;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: #fff; border-top: 6px solid var(--orange); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 17px; }
.mark { color: var(--orange); font-weight: 800; margin-right: 4px; }
.tag { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }
.who { color: var(--muted); font-size: 14px; }
.toplink { margin-right: 10px; color: #0a58ca; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; margin-bottom: 18px; }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 0 0 8px; }
h3 { font-size: 15px; margin: 22px 0 8px; }
p { margin: 0 0 12px; max-width: 72ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button { font: inherit; border-radius: 6px; padding: 8px 14px; cursor: pointer; border: 1px solid transparent; }
button:disabled { opacity: .55; cursor: progress; }
.primary { background: var(--orange); color: #fff; font-weight: 600; }
.secondary { background: #fff; border-color: #bbb; color: var(--ink); }
.link { background: none; border: none; color: #0a58ca; padding: 4px 6px; text-decoration: underline; }
label { display: block; margin: 0 0 10px; font-weight: 600; font-size: 14px; }
input[type=email], input[type=password] { display: block; width: 100%; max-width: 360px; padding: 8px 10px; font: inherit; border: 1px solid #bbb; border-radius: 6px; margin-top: 4px; }
input[type=file] { display: block; margin-top: 4px; font-weight: 400; }
details { margin-top: 16px; }
summary { cursor: pointer; font-weight: 600; }
.hint { color: var(--muted); font-size: 14px; margin-top: 8px; }
code { background: #f0f0ef; padding: 1px 4px; border-radius: 3px; font-size: 13px; }
.status { margin: 14px 0 0; min-height: 1.5em; color: var(--muted); }
.error { color: var(--error); }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.summary { color: var(--muted); }
table.pages { border-collapse: collapse; width: 100%; max-width: 620px; font-size: 14px; margin: 8px 0 12px; }
.pages th, .pages td { text-align: left; padding: 4px 10px 4px 0; border-bottom: 1px solid var(--line); }
.warnings { background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 10px 14px 10px 30px; font-size: 14px; margin: 8px 0; }
.warnings li { margin: 2px 0; }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #9a9a9a; }
.compare img { display: block; max-width: 100%; height: auto; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history .meta { color: var(--muted); }
select, input:not([type=file]):not([type=checkbox]), textarea { display: block; width: 100%; padding: 7px 9px; font: inherit; font-weight: 400; border: 1px solid #bbb; border-radius: 6px; margin-top: 4px; background: #fff; }
#feed-event { max-width: 560px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 16px; }
.req { color: var(--muted); font-weight: 400; }
.lot-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lot-tools input[type=search] { max-width: 320px; margin: 0; }
.lot-tools .meta { color: var(--muted); font-size: 14px; }
.lots { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.lots li { border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.lots li.on { border-color: var(--orange); background: #fff8f1; }
.lots label { display: flex; gap: 8px; align-items: center; margin: 0; padding: 6px; font-weight: 400; font-size: 13px; cursor: pointer; }
.lots img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; background: #eee; flex: none; }
.lots .t { display: block; font-weight: 600; }
.lots .c { display: block; color: var(--muted); }
.lots .role[hidden] { display: none; }
.lots .role { display: inline-block; margin-top: 2px; padding: 0 6px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 600; }
.lots a { font-size: 12px; color: #0a58ca; }
@media (max-width: 520px) { .bar { flex-wrap: wrap; } .lots { grid-template-columns: 1fr; } }
