/* Vorschau „archive“ – Archivierung & Versionierung */
.xd-archive-panel { min-height: 470px; }
.xd-archive-doc .xd-btn { min-height: 34px; font-size: 13px; padding: 0 12px; flex: none; }
.xd-archive-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.xd-archive-v { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; transition: background .5s, border-color .4s, box-shadow .3s, opacity .5s, transform .5s; }
.xd-archive-n { font: 700 14px var(--display); }
.xd-archive-main { display: flex; flex-direction: column; min-width: 0; }
.xd-archive-main time { font-size: 13px; font-variant-numeric: tabular-nums; }
.xd-archive-main code { color: var(--muted); font-size: 11px; }
.xd-archive-v.is-current { border-color: #9FD3B8; background: #F4FBF7; }
.xd-archive-v.is-archived { background: var(--steel); }
.xd-archive-v.is-archived .xd-badge { background: #DDE2E6; color: var(--muted); }
.xd-archive-v.is-archived .xd-archive-n { color: var(--muted); }
.xd-archive-v.is-new { animation: xd-archive-in .6s ease both; }
@keyframes xd-archive-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.xd-archive-v.just-archived { animation: xd-archive-down .7s ease; }
@keyframes xd-archive-down { 0% { transform: translateY(0); } 40% { transform: translateY(6px); opacity: .7; } 100% { transform: none; opacity: 1; } }
.xd-archive-v.is-valid { box-shadow: 0 0 0 2px var(--amber); border-color: var(--amber); background: var(--amber-soft); }
.xd-archive-v.is-valid .xd-badge { background: #fff; color: var(--ink); }
.xd-archive-when input { width: 100%; accent-color: var(--amber); }
.xd-archive-ticks { position: relative; height: 22px; margin-top: -4px; }
.xd-archive-ticks span { position: absolute; top: 0; transform: translateX(-50%); font: 700 11px var(--display); color: var(--muted); text-align: center; }
.xd-archive-ticks span::before { content: ""; display: block; width: 2px; height: 6px; background: var(--muted); margin: 0 auto 1px; }
.xd-archive-result { font-size: 13px; min-height: 40px; margin: 0; }
.xd-archive-result b { font-family: var(--display); }
.xd-archive-note { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.xd-archive-qr { flex: none; width: 46px; height: 46px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px; display: block; }
.xd-archive-qr svg { display: block; width: 100%; height: 100%; }
.xd-archive-note small { font-size: 12.5px; }
@media (max-width: 480px) { .xd-archive-v { grid-template-columns: 26px 1fr auto; gap: 8px; padding: 8px 10px; } .xd-archive-doc { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .xd-archive-v, .xd-archive-v.is-new, .xd-archive-v.just-archived { animation: none; transition: none; } }
.xd-archive .xd-toast { bottom: auto; top: 52px; transform: translate(-50%, -8px); }
.xd-archive .xd-toast.on { transform: translate(-50%, 0); }
.xd-archive { contain: inline-size; }
