/* OptimizeGIF - GIF Metadata Viewer */
.md { display: grid; gap: 16px; }
.md__top { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.md__preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 12px; }
.md__preview .stage__canvas { min-height: 180px; }
.md__preview img { max-width: 100%; max-height: 260px; }
.md__file { font-weight: 600; margin-top: 10px; word-break: break-all; font-size: .92rem; }
.md__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.md__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: var(--surface); }
.md__stat { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.md__stat dt { font-size: .78rem; color: var(--muted); }
.md__stat dd { font-family: var(--font-mono); font-size: 1rem; color: var(--ink); margin-top: 2px; }
.md__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px; }
.md__panel h3 { font-size: 1.05rem; margin-bottom: 12px; }
.md__notes { list-style: none; display: grid; gap: 8px; }
.md__notes li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.md__notes svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
.md__notes .ok svg { color: var(--accent-ink); }
.md__notes .warn svg { color: var(--warn); }
.md__notes .info svg { color: var(--info); }
.tl { display: flex; height: 46px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.tl span { display: block; height: 100%; border-right: 1px solid var(--surface); background: var(--accent); opacity: .85; min-width: 1px; position: relative; }
.tl span:nth-child(even) { opacity: .6; }
.tl span.is-clamped { background: var(--warn); }
.tl span:hover { opacity: 1; }
.tl-cap { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); margin-top: 6px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 2px; }
.swatches span { aspect-ratio: 1; border-radius: 2px; border: 1px solid rgba(0,0,0,.08); }
.md__table { max-height: 460px; overflow: auto; }
.md__table .data-table { min-width: 640px; }
.md__table img { width: 44px; height: 44px; object-fit: contain; background: var(--surface-2); border-radius: 4px; }
@media (max-width: 760px) { .md__top { grid-template-columns: 1fr; } }
