.history-filters { display: grid; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.history-filters select { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #11161c; color: var(--text); }
.history-filters label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.history-filters input { accent-color: var(--lime); }
.history-selection-status { display: grid; gap: 3px; margin: 8px 8px 0; padding: 8px 9px; border: 1px solid #34412b; border-radius: 7px; background: #171e17; }
.history-selection-status span { color: #90a27b; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.history-selection-status strong { overflow: hidden; color: #d5e8b2; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.history-selection-status.is-empty { border-color: var(--line); background: #13181d; }
.history-selection-status.is-empty span, .history-selection-status.is-empty strong { color: var(--muted); }
.history-list { height: calc(100% - 174px); padding: 8px; overflow: auto; }
.history-card { position: relative; margin-bottom: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #14191f; transition: border-color .15s ease, box-shadow .15s ease; }
.history-card.is-canvas-selected { border-color: #9abb45; box-shadow: inset 3px 0 0 var(--lime), 0 0 0 1px rgba(217,255,85,.08); }
.history-card.is-canvas-selected::after { position: absolute; top: 36px; right: 9px; color: #cce77f; content: "画布中"; font-size: 9px; font-weight: 700; }
.history-card header { display: flex; align-items: center; gap: 6px; }
.history-card header strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.history-card header .history-status { flex: 0 0 auto; padding: 3px 5px; border-radius: 4px; background: #242c34; color: var(--muted); font-size: 10px; }
.history-card header .history-status.succeeded { background: #1d332d; color: #78d6ac; }
.history-card header .history-status.failed { background: #382326; color: #ff9696; }
.history-version-line { margin: 8px 0 4px; padding-right: 42px; color: #e2e7eb; font-size: 11px; font-weight: 650; line-height: 1.4; }
.history-output-line { margin: 0 0 5px; color: #aab3bd; font-size: 10px; line-height: 1.4; }
.history-card time { display: block; color: var(--muted); font-size: 9px; }
.history-primary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.history-primary-actions button, .history-restore-action { min-height: 30px; padding: 6px; border: 1px solid #647b31; border-radius: 6px; background: #263019; color: #ddf4a1; font-size: 10px; font-weight: 700; }
.history-primary-actions .history-annotate-action { border-color: #99b640; background: var(--lime); color: #11150b; }
.history-restore-action { width: 100%; margin-top: 10px; }
.history-more { margin-top: 7px; }
.history-more summary { width: max-content; color: var(--muted); cursor: pointer; font-size: 10px; list-style-position: inside; }
.history-secondary-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.history-secondary-actions button { padding: 5px 7px; border: 1px solid var(--line-2); border-radius: 5px; background: #1d242b; color: var(--text); font-size: 10px; }
.history-secondary-actions .danger { color: #ff9b9b; }
.empty-state { padding: 24px 10px; color: var(--muted); font-size: 12px; text-align: center; }
.asset-list .asset-row { position: relative; }
.asset-list .asset-row button { width: 100%; }
.asset-list .asset-row .asset-delete { position: absolute; right: 6px; top: 14px; width: 28px; height: 28px; padding: 0; color: #ff9b9b; }
.rail-tabs .rail-tab { padding-left: 9px; padding-right: 9px; }
