/* annotation.css
   Full-screen annotation viewer: toolbar, canvas wrap, zoom badge, bottom bar.
   Depends on: variables.css (--teal/--teal-m used for active states). */

.anno-viewer {
  position: fixed;
  inset: 0;
  background: #1a1a1a;
  z-index: 250;
  display: none;
  flex-direction: column;
}
.anno-viewer.open { display: flex; }

.anno-tb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #2a2826;
  border-bottom: 1px solid #3a3836;
  flex-shrink: 0;
  flex-wrap: wrap;
  z-index: 260;
}
.anno-tb .tg { display: flex; align-items: center; gap: 4px; }
.anno-tb .dv { width: 1px; height: 24px; background: #4a4846; margin: 0 4px; }
.anno-tb button {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  background: #3a3836;
  color: #ccc;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.anno-tb button:hover { background: #4a4846; color: #fff; }
.anno-tb button.active { background: var(--teal); color: #fff; border-color: var(--teal-m); }
.anno-tb label { font-size: 10px; color: #888; font-weight: 500; }
.anno-tb input[type="range"] { width: 70px; accent-color: var(--teal); height: 4px; cursor: pointer; }
.anno-tb .cs { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #555; cursor: pointer; flex-shrink: 0; }
.anno-tb .cs.active { border-color: #fff; box-shadow: 0 0 0 2px var(--teal); }

.anno-wrap { flex: 1; position: relative; overflow: hidden; }
.anno-wrap canvas { position: absolute; top: 0; left: 0; }

.anno-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: #2a2826;
  border-top: 1px solid #3a3836;
  flex-shrink: 0;
}
.anno-bottom .info { font-size: 11px; color: #888; }

.anno-zoom-badge {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 265;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.anno-zoom-badge.show { opacity: 1; }
