/* Shared login + library */
:root { --text:#111; --muted:#5c5c5c; --line:#e8e8e8; --bg:#fff; --fill:#f6f6f6; }
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
}
a { color: inherit; }
.top {
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; min-height:52px; padding:0 24px;
  border-bottom:1px solid var(--line);
}
.brand { font-weight:600; letter-spacing:-0.03em; text-decoration:none; }
.top nav { display:flex; gap:16px; align-items:center; }
.top nav a, .top nav button {
  font: inherit; font-size:13px; color:var(--muted);
  background:none; border:0; cursor:pointer; text-decoration:none; padding:0;
}
.top nav a:hover, .top nav button:hover { color:var(--text); }
.wrap { width:min(1120px, calc(100% - 48px)); margin:0 auto; padding:40px 0 64px; }
h1 { font-size:28px; letter-spacing:-0.03em; font-weight:600; margin:0 0 8px; }
.sub { color:var(--muted); margin:0 0 28px; }
label { display:block; font-size:13px; margin:0 0 6px; }
input[type=text], input[type=password], input[type=file] {
  width:100%; font:inherit; padding:9px 11px; border:1px solid var(--line);
  border-radius:6px; background:#fff; color:var(--text);
}
.field { margin:0 0 16px; }
button[type=submit], .btn {
  font:inherit; font-size:14px; padding:8px 14px; border-radius:6px;
  border:1px solid #111; background:#111; color:#fff; cursor:pointer;
}
.btn.secondary { background:#fff; color:#111; }
.btn[disabled] { opacity:.5; cursor:default; }
.login-box { width:min(360px, calc(100% - 48px)); margin:12vh auto 0; }
.err { color:#9b2c2c; font-size:13px; min-height:1.3em; margin:0 0 12px; }
.ok { color:#1c6b3a; font-size:13px; margin:0 0 12px; }
.toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:0 0 28px; }
.toolbar .hint { color:var(--muted); font-size:13px; }
.series { margin:0 0 36px; }
.series h2 { font-size:16px; font-weight:600; margin:0 0 12px; letter-spacing:-0.02em; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { text-align:left; vertical-align:top; padding:10px 10px 10px 0; border-bottom:1px solid var(--line); }
th { color:var(--muted); font-weight:500; }
td.params { color:var(--muted); max-width:28em; white-space:pre-wrap; word-break:break-word; }
.thumbs { display:flex; gap:8px; }
.thumbs img { width:72px; height:72px; object-fit:contain; background:var(--fill); border:1px solid var(--line); border-radius:4px; }
.price { white-space:nowrap; }
.empty { color:var(--muted); padding:24px 0; }
@media (max-width: 800px) {
  .wrap { width:min(1120px, calc(100% - 32px)); }
  table, thead, tbody, th, td, tr { display:block; }
  thead { display:none; }
  tr { border-bottom:1px solid var(--line); margin:0 0 16px; padding:0 0 16px; }
  td { border:0; padding:4px 0; }
}
