/* inventory + gallery */
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; background: #f1f5f9; color: #0f172a; }
a { color: #1d4ed8; }
.inv-header, .gal-header { background: #1e3a5f; color: #fff; padding: 20px 24px 24px; }
.inv-header h1, .gal-header h1 { margin: 0 0 6px; font-size: 1.35rem; }
.inv-subtitle, .gal-meta { margin: 0; opacity: .9; font-size: .9rem; }
.inv-host { margin: 8px 0 16px; font-size: .85rem; }
.inv-host a { color: #93c5fd; }
.inv-search-wrap { display: block; max-width: 420px; margin-bottom: 12px; }
.inv-search-wrap span { display: block; font-size: .75rem; margin-bottom: 4px; opacity: .85; }
#inv-search { width: 100%; padding: 10px 12px; border: none; border-radius: 8px; font-size: 1rem; }
.inv-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.inv-filter { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .8rem; cursor: pointer; }
.inv-filter--active { background: #fff; color: #1e3a5f; font-weight: 600; }
.inv-count { margin: 0; font-size: .8rem; opacity: .8; }
.inv-main, .gal-main { padding: 16px 24px 40px; max-width: 1400px; margin: 0 auto; }
.inv-table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.inv-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.inv-table th, .inv-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.inv-table th { background: #f8fafc; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: #64748b; position: sticky; top: 0; }
.inv-id { font-weight: 700; white-space: nowrap; }
.inv-etalon { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #1e3a5f; color: #fff; vertical-align: middle; }
.inv-slug { display: block; font-size: .75rem; color: #64748b; font-family: monospace; margin-top: 2px; }
.inv-sub { display: block; font-size: .75rem; color: #94a3b8; margin-top: 2px; }
.inv-zone { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.inv-zone--classroom { background: #dbeafe; color: #1e40af; }
.inv-zone--restroom { background: #fee2e2; color: #991b1b; }
.inv-zone--corridor { background: #fef3c7; color: #92400e; }
.inv-zone--prep { background: #e0e7ff; color: #3730a3; }
.inv-zone--safety { background: #fce7f3; color: #9d174d; }
.inv-zone--rules { background: #d1fae5; color: #065f46; }
.inv-zone--general { background: #f1f5f9; color: #475569; }
.inv-links a { font-weight: 600; white-space: nowrap; }
.inv-fm details { font-size: .8rem; }
.inv-fm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.inv-copy { padding: 4px 10px; font-size: .75rem; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; cursor: pointer; }
.inv-copy:hover { background: #e2e8f0; }
.inv-copy.is-done { background: #dcfce7; border-color: #86efac; color: #166534; }
.inv-script { background: #0f172a; color: #e2e8f0; padding: 8px; border-radius: 6px; overflow-x: auto; font-size: .7rem; white-space: pre-wrap; word-break: break-all; max-width: 280px; }
.inv-url { margin: 6px 0 0; font-size: .7rem; word-break: break-all; }
.inv-row[hidden] { display: none; }
.gal-back { color: #93c5fd; text-decoration: none; font-size: .85rem; display: inline-block; margin-bottom: 8px; }
.group { margin: 28px 0 10px; font-weight: 700; font-size: .9rem; border-bottom: 2px solid #2563eb; padding-bottom: 4px; }
.group:first-child { margin-top: 0; }
.grid { display: grid; gap: 14px; }
.grid--scenes { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--thumbs { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.card { background: #fff; border-radius: 8px; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.08); text-align: center; }
.card img { border: 1px solid #e2e8f0; border-radius: 4px; background: #fafafa; }
.label { font-weight: 600; font-size: .8rem; margin: 8px 0 4px; }
.file { font-family: monospace; font-size: .7rem; color: #64748b; word-break: break-all; }
.empty { color: #64748b; }
