/* anno-store.css — right-side annotation store panel */
#drawerAnno{
  font-size: var(--panel-fs, 1rem);
  font-weight: var(--panel-fw, 500);
  line-height: 1.45;
  height: 100%;
  display: flex;
  flex-direction: column;
}
#drawerAnno .drawer-controls{ flex: 0 0 auto; display:flex; gap:12px; align-items:center; }
#drawerAnno .drawer-list{ flex: 1 1 auto; min-height:0; overflow:auto; padding-right:6px; }
#drawerAnno .drawer-item{ display:flex; align-items:flex-start; gap:8px; margin:6px 0; cursor:pointer; }
#drawerAnno .drawer-item:hover{ text-decoration: underline; }
#drawerAnno .drawer-item .content{ flex:1 1 auto; }
#drawerAnno .drawer-item .del{ border:none; background:none; color:var(--muted); border-radius:10px; width:24px; height:24px; display:grid; place-items:center; cursor:default; }
#drawerAnno .drawer-item .del:hover{ background:rgba(0,0,0,.06); }
:root[data-theme="dark"] #drawerAnno .drawer-item .del:hover{ background:rgba(255,255,255,.08); }
#drawerAnno .drawer-item .del svg{ width:16px; height:16px; }
#drawerAnno label{ display:inline-flex; gap:6px; align-items:center; user-select:none; cursor:pointer; }
#drawerAnno input[type="checkbox"]{ width:14px; height:14px; }

#drawerAnno .anno-dot{
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: #ccc;
}

#drawerAnno .anno-text{
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* --- Adaptive annotation preview width fix --- */
#drawerAnno .drawer-item {
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  max-width:100%;
  width:100%;
}

#drawerAnno .content {
  flex:1 1 auto;
  min-width:0;   /* required for ellipsis to work in flex */
}

#drawerAnno .anno-text {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;    /* adapt to drawer width */
}

#drawerAnno .anno-dot {
  flex:0 0 auto;
  width:10px;
  height:10px;
  border-radius:999px;
  margin-right:8px;
  margin-top:6px;
}
/* --- END fix --- */

