* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: #fff; color: #111; }
[hidden] { display: none !important; }
.notice { margin: 0; padding: 12px 24px; background: #eee; font-size: 14px; }
a { color: inherit; }
header { padding: 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
nav { padding: 0 24px 16px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #ddd; }
nav a { padding: 10px 14px; text-decoration: none; border: 1px solid #ddd; border-radius: 6px; }
nav a[aria-current="page"] { color: #fff; background: #111; }
main { max-width: 1440px; margin: auto; padding: 24px; }
button, input, select { font: inherit; padding: 10px; border: 1px solid #aaa; border-radius: 5px; background: #fff; color: #111; }
button, summary { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:hover:not(:disabled) { background: #eee; }
:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status { min-height: 24px; white-space: pre-line; }
.error { color: #a00000; }
.ok { font-weight: 600; }
.model-list { display: grid; gap: 10px; }
.model-row { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px solid #ddd; border-radius: 6px; text-decoration: none; }
.model-row:hover { background: #f6f6f6; }
.model-info { min-width: 0; display: grid; gap: 4px; }
.thumb { width: 64px; height: 80px; object-fit: cover; background: #eee; flex-shrink: 0; }
code { overflow-wrap: anywhere; font-size: 12px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; padding: 0; list-style: none; }
.cs-card { border: 1px solid #ccc; border-radius: 8px; overflow: hidden; min-width: 0; }
.cs-card--derived { border-style: dashed; }
.cs-cover { height: 220px; display: grid; place-items: center; background: #eee; }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; }
.cs-meta, .cs-more { padding: 16px; }
.cs-meta { display: grid; gap: 12px; }
.cs-line { display: flex; gap: 12px; flex-wrap: wrap; }
.cs-stills { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.cs-still { position: relative; border: 1px solid #ddd; padding: 6px; min-width: 0; }
.cs-still img { width: 100%; height: 130px; object-fit: cover; }
.cs-still-id { display: block; overflow-wrap: anywhere; font-size: 11px; }
.cs-check { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; }
.cs-over { outline: 3px solid #111; }
.cs-loose { border-top: 1px solid #ddd; margin-top: 28px; padding-top: 12px; }
.cs-danger { border-color: #a00000; color: #a00000; }
@media (max-width: 600px) { main, header { padding: 16px; } .toolbar input, .toolbar select { max-width: 100%; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: 16px; }
