﻿.doc-status { display: flex; align-items: center; flex: none; color: #d5cfdf; }
.doc-history { display: flex; align-items: center; max-width: 0; opacity: 0; overflow: hidden; visibility: hidden; transition: max-width 160ms ease, opacity 120ms ease, visibility 0s linear 160ms; }
.doc-history.has-history { max-width: 81px; opacity: 1; visibility: visible; transition: max-width 160ms ease, opacity 120ms ease, visibility 0s; }
.doc-status .tb-btn { flex: none; width: 34px; min-height: 32px; padding: 0; border: 0; background: transparent; border-radius: 6px; }
.doc-status .tb-btn:hover:not(:disabled) { background: #312c3d; }
.doc-status .tb-btn:disabled { opacity: .38; background: transparent; }
.doc-status .tb-btn svg { width: 18px; height: 18px; stroke-width: 1.9; }
.doc-divider { width: 1px; height: 16px; margin: 0 6px; background: var(--c-line); flex: none; }
.save-state { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px; flex: none; }
.save-state svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.save-state .cloud-check, .save-state .cloud-saving, .save-state .cloud-error { display: none; }
.save-state[data-state="saved"] .cloud-check, .save-state[data-state="saving"] .cloud-saving, .save-state[data-state="error"] .cloud-error { display: block; }
.save-state[data-state="saving"] .cloud-saving { animation: cloud-upload 1s ease-in-out infinite; }
.save-state[data-state="error"] { color: #f19282; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes cloud-upload { 0%,100% { transform: translateY(.5px); opacity: .65; } 50% { transform: translateY(-.5px); opacity: 1; } }
@media (max-width: 640px) { .topbar { gap: 3px; } .doc-divider { margin: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .doc-history { transition: none; } .save-state[data-state="saving"] .cloud-saving { animation: none; } }
